remove cruft (Synonyms)
[apps/madmutt.git] / globals.h
1 /*
2  * Copyright notice from original mutt:
3  * Copyright (C) 1996-2002 Michael R. Elkins <me@mutt.org>
4  *
5  * This file is part of mutt-ng, see http://www.muttng.org/.
6  * It's licensed under the GNU General Public License,
7  * please see the file GPL in the top level source directory.
8  */
9 #ifndef _GLOBALS_H
10 #define _GLOBALS_H
11
12 #include <lib-lib/lib-lib.h>
13
14 WHERE void (*mutt_error) (const char *, ...) __attribute__((format(printf, 1, 2))) ;
15 WHERE void (*mutt_message) (const char *, ...) __attribute__((format(printf, 1, 2))) ;
16
17 WHERE CONTEXT *Context;
18
19 WHERE char Errorbuf[STRING];
20 WHERE char AttachmentMarker[STRING];
21
22 WHERE char Quotebuf[STRING];
23
24 WHERE address_t *From;
25
26 WHERE char *AttachSep;
27 WHERE char *Attribution;
28 WHERE char *AttachFormat;
29 WHERE char *ComposeFormat;
30 WHERE char *ConfigCharset;
31 WHERE char *ContentType;
32 WHERE char *DefaultHook;
33 WHERE char *DateFmt;
34 WHERE char *DisplayFilter;
35 WHERE char *EditorHeaders;
36 WHERE char *FileCharset;
37 WHERE char *FolderFormat;
38 WHERE char *ForwFmt;
39 WHERE char *Fqdn;
40 WHERE char *HdrFmt;
41
42 WHERE char *ImapAuthenticators INITVAL (NULL);
43 WHERE char *ImapDelimChars INITVAL (NULL);
44 WHERE char *ImapHeaders;
45 WHERE char *ImapHomeNamespace INITVAL (NULL);
46 WHERE char *ImapLogin INITVAL (NULL);
47 WHERE char *ImapPass INITVAL (NULL);
48 WHERE char *ImapUser INITVAL (NULL);
49 WHERE char *Inbox;
50 WHERE char *Locale;
51 WHERE char *Maildir;
52
53 #ifdef USE_HCACHE
54 WHERE char *HeaderCache;
55 #if defined(HAVE_GDBM) || defined(HAVE_DB4)
56 WHERE char *HeaderCachePageSize;
57 #endif /* HAVE_GDBM || HAVE_DB4 */
58 #endif /* USE_HCACHE */
59 WHERE char *MhFlagged;
60 WHERE char *MhReplied;
61 WHERE char *MhUnseen;
62 WHERE char *MsgFmt;
63 WHERE char *MsgIdFormat;
64
65 WHERE rx_t AttachRemindRegexp;
66 WHERE rx_t Mask;
67 WHERE rx_t QuoteRegexp;
68 WHERE rx_t ReplyRegexp;
69 WHERE rx_t Smileys;
70 WHERE rx_t StripWasRegexp;
71
72 WHERE char *Preconnect INITVAL (NULL);
73 WHERE char *Tunnel INITVAL (NULL);
74 WHERE short NetInc;
75
76 WHERE char *Mixmaster;
77 WHERE char *MixEntryFormat;
78 WHERE char *Muttrc INITVAL (NULL);
79
80 #ifdef USE_NNTP
81 WHERE char *NewsCacheDir;
82 WHERE char *GroupFormat;
83 WHERE char *Inews;
84 WHERE char *NewsServer;
85 WHERE char *NntpUser;
86 WHERE char *NntpPass;
87 WHERE char *NewsRc;
88 #endif
89 WHERE char *Outbox;
90 WHERE char *Pager;
91 WHERE char *PagerFmt;
92 WHERE char *PipeSep;
93
94 WHERE char *PopAuthenticators INITVAL (NULL);
95 WHERE short PopCheckTimeout;
96 WHERE char *PopHost;
97 WHERE char *PopPass INITVAL (NULL);
98 WHERE char *PopUser INITVAL (NULL);
99
100 WHERE char *PostIndentString;
101 WHERE char *Postponed;
102 WHERE char *Prefix;
103 WHERE char *PrintCmd;
104 WHERE char *QueryCmd;
105 WHERE char *Realname;
106 WHERE char *SidebarDelim;
107 WHERE char *SidebarNumberFormat;
108 WHERE char *SidebarBoundary;
109 WHERE char *Signature;
110 WHERE char *SignOffString;
111 WHERE char *SimpleSearch;
112
113 #if defined(USE_LIBESMTP)
114 WHERE char *SmtpAuthUser;
115 WHERE char *SmtpAuthPass;
116 WHERE char *SmtpHost;
117 WHERE unsigned short SmtpPort;
118 WHERE char *SmtpUseTLS;
119 #endif
120 WHERE char *Spoolfile;
121
122 #if defined(USE_SSL) || defined(USE_GNUTLS)
123 WHERE char *SslCertFile INITVAL (NULL);
124 #endif
125 #if defined(USE_SSL)
126 WHERE char *SslEntropyFile INITVAL (NULL);
127 #endif
128 #ifdef USE_SSL
129 WHERE char *SslClientCert INITVAL (NULL);
130 WHERE string_list_t *SslSessionCerts INITVAL (NULL);
131 #endif
132 #ifdef USE_GNUTLS
133 WHERE short SslDHPrimeBits;
134 WHERE char *SslCACertFile INITVAL (NULL);
135 #endif
136 WHERE char *StChars;
137 WHERE char *Status;
138 WHERE char *Tochars;
139 WHERE char *TrashPath;
140 WHERE char *XtermTitle;
141 WHERE char *XtermLeave;
142 WHERE char *XtermIcon;
143
144 WHERE char *CurrentFolder;
145 WHERE char *LastFolder;
146
147 WHERE string_list_t *AttachAllow INITVAL(0);
148 WHERE string_list_t *AttachExclude INITVAL(0);
149 WHERE string_list_t *InlineAllow INITVAL(0);
150 WHERE string_list_t *InlineExclude INITVAL(0);
151
152 /* bit vector for boolean variables */
153 WHERE unsigned char Options[(OPTMAX + 7) / 8];
154
155 /* bit vector for the yes/no/ask variable type */
156 WHERE unsigned char QuadOptions[(OPT_MAX * 2 + 7) / 8];
157
158 #ifdef USE_NNTP
159 WHERE short NewsPollTimeout;
160 WHERE short NntpContext;
161 #endif
162
163 WHERE short ConnectTimeout;
164 WHERE short HistSize;
165 WHERE short MenuContext;
166 WHERE short PagerContext;
167 WHERE short PagerIndexLines;
168 WHERE short ReadInc;
169 WHERE short SleepTime INITVAL (1);
170 WHERE short Timeout;
171 WHERE short Umask INITVAL (0077);
172 WHERE short WrapMargin;
173 WHERE short WriteInc;
174 WHERE short MaxDispRecips;
175 WHERE short MaxLineLength;
176
177 WHERE short ScoreThresholdDelete;
178 WHERE short ScoreThresholdRead;
179 WHERE short ScoreThresholdFlag;
180
181 WHERE short DrawFullLine INITVAL (0);
182 WHERE short SidebarWidth;
183
184 WHERE short ImapKeepalive;
185 WHERE short ImapBuffyTimeout;
186
187 /* flags for received signals */
188 WHERE SIG_ATOMIC_VOLATILE_T SigAlrm INITVAL (0);
189 WHERE SIG_ATOMIC_VOLATILE_T SigInt INITVAL (0);
190 WHERE SIG_ATOMIC_VOLATILE_T SigWinch INITVAL (0);
191
192 WHERE int CurrentMenu;
193
194 WHERE string_list_t *UserHeader INITVAL (0);
195
196 /*-- formerly in pgp.h --*/
197 WHERE rx_t PgpGoodSign;
198 WHERE char *PgpSignAs;
199 WHERE short PgpTimeout;
200 WHERE char *PgpEntryFormat;
201 WHERE char *PgpClearSignCommand;
202 WHERE char *PgpDecodeCommand;
203 WHERE char *PgpVerifyCommand;
204 WHERE char *PgpDecryptCommand;
205 WHERE char *PgpSignCommand;
206 WHERE char *PgpEncryptSignCommand;
207 WHERE char *PgpEncryptOnlyCommand;
208 WHERE char *PgpImportCommand;
209 WHERE char *PgpExportCommand;
210 WHERE char *PgpVerifyKeyCommand;
211 WHERE char *PgpListSecringCommand;
212 WHERE char *PgpListPubringCommand;
213 WHERE char *PgpGetkeysCommand;
214
215 /*-- formerly in smime.h --*/
216 WHERE char *SmimeDefaultKey;
217 WHERE char *SmimeCryptAlg;
218 WHERE short SmimeTimeout;
219 WHERE char *SmimeCertificates;
220 WHERE char *SmimeKeys;
221 WHERE char *SmimeCALocation;
222 WHERE char *SmimeVerifyCommand;
223 WHERE char *SmimeVerifyOpaqueCommand;
224 WHERE char *SmimeDecryptCommand;
225 WHERE char *SmimeSignCommand;
226 WHERE char *SmimeSignOpaqueCommand;
227 WHERE char *SmimeEncryptCommand;
228 WHERE char *SmimeGetSignerCertCommand;
229 WHERE char *SmimePk7outCommand;
230 WHERE char *SmimeGetCertCommand;
231 WHERE char *SmimeImportCertCommand;
232 WHERE char *SmimeGetCertEmailCommand;
233
234 #ifdef MAIN_C
235 const char *Weekdays[] = { "Sun", "Mon", "Tue", "Wed", "Thu", "Fri", "Sat" };
236 const char *Months[] =
237   { "Jan", "Feb", "Mar", "Apr", "May", "Jun", "Jul", "Aug", "Sep", "Oct",
238 "Nov", "Dec", "ERR" };
239 #else
240 extern const char *Weekdays[];
241 extern const char *Months[];
242 #endif
243
244 #endif /* !_GLOBALS_H */