2 * Copyright notice from original mutt:
3 * Copyright (C) 1996-2002 Michael R. Elkins <me@mutt.org>
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.
18 WHERE void (*mutt_error) (const char *, ...);
19 WHERE void (*mutt_message) (const char *, ...);
21 WHERE CONTEXT *Context;
23 WHERE char Errorbuf[STRING];
24 WHERE char AttachmentMarker[STRING];
26 WHERE char Quotebuf[SHORT_STRING];
28 #if defined(DL_STANDALONE) && defined(USE_DOTLOCK)
29 WHERE char *MuttDotlock;
34 WHERE char *AliasFile;
36 WHERE char *AssumedCharset;
37 WHERE char *AttachSep;
38 WHERE char *Attribution;
39 WHERE char *AttachFormat;
41 WHERE char *ComposeFormat;
42 WHERE char *ConfigCharset;
43 WHERE char *ContentType;
44 WHERE char *DefaultHook;
46 WHERE char *DisplayFilter;
47 WHERE char *DsnNotify;
48 WHERE char *DsnReturn;
50 WHERE char *EditorHeaders;
52 WHERE char *FileCharset;
53 WHERE char *FolderFormat;
61 WHERE char *ImapAuthenticators INITVAL (NULL);
62 WHERE char *ImapDelimChars INITVAL (NULL);
63 WHERE char *ImapHeaders;
64 WHERE char *ImapHomeNamespace INITVAL (NULL);
65 WHERE char *ImapLogin INITVAL (NULL);
66 WHERE char *ImapPass INITVAL (NULL);
67 WHERE char *ImapUser INITVAL (NULL);
72 WHERE char *MailcapPath;
76 WHERE char *HeaderCache;
77 #if HAVE_GDBM || HAVE_DB4
78 WHERE char *HeaderCachePageSize;
79 #endif /* HAVE_GDBM || HAVE_DB4 */
80 #endif /* USE_HCACHE */
81 WHERE char *MhFlagged;
82 WHERE char *MhReplied;
85 WHERE char *MsgIdFormat;
87 WHERE rx_t AttachRemindRegexp;
89 WHERE rx_t QuoteRegexp;
90 WHERE rx_t ReplyRegexp;
93 WHERE rx_t StripWasRegexp;
96 WHERE char *Preconnect INITVAL (NULL);
97 WHERE char *Tunnel INITVAL (NULL);
99 #endif /* USE_SOCKET */
102 WHERE char *Mixmaster;
103 WHERE char *MixEntryFormat;
106 WHERE char *OperatingSystem INITVAL (NULL);
108 WHERE char *Muttrc INITVAL (NULL);
111 WHERE char *NewsCacheDir;
112 WHERE char *GroupFormat;
114 WHERE char *NewsServer;
115 WHERE char *NntpUser;
116 WHERE char *NntpPass;
121 WHERE char *PagerFmt;
125 WHERE char *PopAuthenticators INITVAL (NULL);
126 WHERE short PopCheckTimeout;
128 WHERE char *PopPass INITVAL (NULL);
129 WHERE char *PopUser INITVAL (NULL);
131 WHERE char *PostIndentString;
132 WHERE char *Postponed;
134 WHERE char *PrintCmd;
135 WHERE char *QueryCmd;
136 WHERE char *Realname;
137 WHERE char *SendCharset;
138 WHERE char *Sendmail;
140 WHERE char *SidebarDelim;
141 WHERE char *SidebarNumberFormat;
142 WHERE char *SidebarBoundary;
143 WHERE char *Signature;
144 WHERE char *SignOffString;
145 WHERE char *SimpleSearch;
147 #if defined(USE_LIBESMTP)
148 WHERE char *SmtpAuthUser;
149 WHERE char *SmtpAuthPass;
150 WHERE char *SmtpEnvFrom;
151 WHERE char *SmtpHost;
152 WHERE unsigned short SmtpPort;
153 WHERE char *SmtpUseTLS;
155 WHERE char *Spoolfile;
158 #if defined(USE_SSL) || defined(USE_GNUTLS)
159 WHERE char *SslCertFile INITVAL (NULL);
162 WHERE char *SslEntropyFile INITVAL (NULL);
165 WHERE char *SslClientCert INITVAL (NULL);
166 WHERE LIST *SslSessionCerts INITVAL (NULL);
169 WHERE short SslDHPrimeBits;
170 WHERE char *SslCACertFile INITVAL (NULL);
176 WHERE char *TrashPath;
177 WHERE char *Username;
179 WHERE char *XtermTitle;
180 WHERE char *XtermLeave;
181 WHERE char *XtermIcon;
183 WHERE char *CurrentFolder;
184 WHERE char *LastFolder;
186 WHERE LIST *AutoViewList INITVAL (0);
187 WHERE LIST *AlternativeOrderList INITVAL (0);
188 WHERE LIST *HeaderOrderList INITVAL (0);
189 WHERE LIST *Ignore INITVAL (0);
190 WHERE LIST *MimeLookupList INITVAL (0);
191 WHERE LIST *UnIgnore INITVAL (0);
193 WHERE list2_t *Alternates INITVAL (0);
194 WHERE list2_t *UnAlternates INITVAL (0);
195 WHERE list2_t *MailLists INITVAL (0);
196 WHERE list2_t *UnMailLists INITVAL (0);
197 WHERE list2_t *SubscribedLists INITVAL (0);
198 WHERE list2_t *UnSubscribedLists INITVAL (0);
199 WHERE SPAM_LIST *SpamList INITVAL (0);
200 WHERE list2_t *NoSpamList INITVAL (0);
202 /* bit vector for boolean variables */
204 unsigned char Options[(OPTMAX + 7) / 8];
206 extern unsigned char Options[];
209 /* bit vector for the yes/no/ask variable type */
211 unsigned char QuadOptions[(OPT_MAX * 2 + 7) / 8];
213 extern unsigned char QuadOptions[];
216 WHERE unsigned short Counter INITVAL (0);
219 WHERE short NewsPollTimeout;
220 WHERE short NntpContext;
223 WHERE short ConnectTimeout;
224 WHERE short HistSize;
225 WHERE short MenuContext;
226 WHERE short PagerContext;
227 WHERE short PagerIndexLines;
229 WHERE short SendmailWait;
230 WHERE short SleepTime INITVAL (1);
232 WHERE short Umask INITVAL (0077);
233 WHERE short WrapMargin;
234 WHERE short WriteInc;
235 WHERE short MaxDispRecips;
236 WHERE short MaxLineLength;
238 WHERE short ScoreThresholdDelete;
239 WHERE short ScoreThresholdRead;
240 WHERE short ScoreThresholdFlag;
242 WHERE short DrawFullLine INITVAL (0);
243 WHERE short SidebarWidth;
246 WHERE short ImapKeepalive;
247 WHERE short ImapBuffyTimeout;
250 /* flags for received signals */
251 WHERE SIG_ATOMIC_VOLATILE_T SigAlrm INITVAL (0);
252 WHERE SIG_ATOMIC_VOLATILE_T SigInt INITVAL (0);
253 WHERE SIG_ATOMIC_VOLATILE_T SigWinch INITVAL (0);
255 WHERE int CurrentMenu;
257 WHERE ALIAS *Aliases INITVAL (0);
258 WHERE LIST *UserHeader INITVAL (0);
260 /*-- formerly in pgp.h --*/
261 WHERE rx_t PgpGoodSign;
262 WHERE char *PgpSignAs;
263 WHERE short PgpTimeout;
264 WHERE char *PgpEntryFormat;
265 WHERE char *PgpClearSignCommand;
266 WHERE char *PgpDecodeCommand;
267 WHERE char *PgpVerifyCommand;
268 WHERE char *PgpDecryptCommand;
269 WHERE char *PgpSignCommand;
270 WHERE char *PgpEncryptSignCommand;
271 WHERE char *PgpEncryptOnlyCommand;
272 WHERE char *PgpImportCommand;
273 WHERE char *PgpExportCommand;
274 WHERE char *PgpVerifyKeyCommand;
275 WHERE char *PgpListSecringCommand;
276 WHERE char *PgpListPubringCommand;
277 WHERE char *PgpGetkeysCommand;
279 /*-- formerly in smime.h --*/
280 WHERE char *SmimeDefaultKey;
281 WHERE char *SmimeCryptAlg;
282 WHERE short SmimeTimeout;
283 WHERE char *SmimeCertificates;
284 WHERE char *SmimeKeys;
285 WHERE char *SmimeCryptAlg;
286 WHERE char *SmimeCALocation;
287 WHERE char *SmimeVerifyCommand;
288 WHERE char *SmimeVerifyOpaqueCommand;
289 WHERE char *SmimeDecryptCommand;
290 WHERE char *SmimeSignCommand;
291 WHERE char *SmimeSignOpaqueCommand;
292 WHERE char *SmimeEncryptCommand;
293 WHERE char *SmimeGetSignerCertCommand;
294 WHERE char *SmimePk7outCommand;
295 WHERE char *SmimeGetCertCommand;
296 WHERE char *SmimeImportCertCommand;
297 WHERE char *SmimeGetCertEmailCommand;
300 const char *Weekdays[] = { "Sun", "Mon", "Tue", "Wed", "Thu", "Fri", "Sat" };
301 const char *Months[] =
302 { "Jan", "Feb", "Mar", "Apr", "May", "Jun", "Jul", "Aug", "Sep", "Oct",
303 "Nov", "Dec", "ERR" };
305 const char *BodyTypes[] =
306 { "x-unknown", "audio", "application", "image", "message", "model",
307 "multipart", "text", "video" };
308 const char *BodyEncodings[] =
309 { "x-unknown", "7bit", "8bit", "quoted-printable", "base64", "binary",
312 extern const char *Weekdays[];
313 extern const char *Months[];
317 /* so that global vars get included
318 * FIXME WTF IS THIS?!?!???!?!??!?!??
323 #include "mutt_crypt.h"
326 #endif /* !_GLOBALS_H */