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.
16 WHERE void (*mutt_error) (const char *, ...);
17 WHERE void (*mutt_message) (const char *, ...);
19 WHERE CONTEXT *Context;
21 WHERE char Errorbuf[STRING];
22 WHERE char AttachmentMarker[STRING];
24 WHERE char Quotebuf[SHORT_STRING];
26 #if defined(DL_STANDALONE) && defined(USE_DOTLOCK)
27 WHERE char *MuttDotlock;
32 WHERE char *AliasFile;
34 WHERE char *AssumedCharset;
35 WHERE char *AttachSep;
36 WHERE char *Attribution;
37 WHERE char *AttachFormat;
39 WHERE char *ComposeFormat;
40 WHERE char *ConfigCharset;
41 WHERE char *ContentType;
42 WHERE char *DefaultHook;
44 WHERE char *DisplayFilter;
45 WHERE char *DsnNotify;
46 WHERE char *DsnReturn;
49 WHERE char *FileCharset;
50 WHERE char *FolderFormat;
58 WHERE char *ImapAuthenticators INITVAL (NULL);
59 WHERE char *ImapDelimChars INITVAL (NULL);
60 WHERE char *ImapHeaders;
61 WHERE char *ImapHomeNamespace INITVAL (NULL);
62 WHERE char *ImapPass INITVAL (NULL);
63 WHERE char *ImapUser INITVAL (NULL);
68 WHERE char *MailcapPath;
72 WHERE char *HeaderCache;
73 WHERE char *HeaderCachePageSize;
75 WHERE char *MhFlagged;
76 WHERE char *MhReplied;
79 WHERE char *MsgIdFormat;
82 WHERE rx_t QuoteRegexp;
83 WHERE rx_t ReplyRegexp;
86 WHERE rx_t StripWasRegexp;
89 WHERE char *Preconnect INITVAL (NULL);
90 WHERE char *Tunnel INITVAL (NULL);
91 #endif /* USE_SOCKET */
94 WHERE char *Mixmaster;
95 WHERE char *MixEntryFormat;
98 WHERE char *OperatingSystem INITVAL (NULL);
100 WHERE char *Muttrc INITVAL (NULL);
103 WHERE char *NewsCacheDir;
104 WHERE char *GroupFormat;
106 WHERE char *NewsServer;
107 WHERE char *NntpUser;
108 WHERE char *NntpPass;
113 WHERE char *PagerFmt;
117 WHERE char *PopAuthenticators INITVAL (NULL);
118 WHERE short PopCheckTimeout;
120 WHERE char *PopPass INITVAL (NULL);
121 WHERE char *PopUser INITVAL (NULL);
123 WHERE char *PostIndentString;
124 WHERE char *Postponed;
126 WHERE char *PrintCmd;
127 WHERE char *QueryCmd;
128 WHERE char *Realname;
129 WHERE char *SendCharset;
130 WHERE char *Sendmail;
132 WHERE char *SidebarDelim;
133 WHERE char *Signature;
134 WHERE char *SignOffString;
135 WHERE char *SimpleSearch;
137 #if defined(USE_LIBESMTP)
138 WHERE char *SmtpAuthUser;
139 WHERE char *SmtpAuthPass;
140 WHERE char *SmtpHost;
141 WHERE unsigned short SmtpPort;
143 WHERE char *Spoolfile;
146 #if defined(USE_SSL) || defined(USE_NSS) || defined(USE_GNUTLS)
147 WHERE char *SslCertFile INITVAL (NULL);
149 #if defined(USE_SSL) || defined(USE_NSS)
150 WHERE char *SslEntropyFile INITVAL (NULL);
153 WHERE char *SslClientCert INITVAL (NULL);
156 WHERE short SslDHPrimeBits;
157 WHERE char *SslCACertFile INITVAL (NULL);
163 WHERE char *TrashPath;
164 WHERE char *Username;
166 WHERE char *XtermTitle;
167 WHERE char *XtermIcon;
169 WHERE char *CurrentFolder;
170 WHERE char *LastFolder;
172 WHERE LIST *AutoViewList INITVAL (0);
173 WHERE LIST *AlternativeOrderList INITVAL (0);
174 WHERE LIST *HeaderOrderList INITVAL (0);
175 WHERE LIST *Ignore INITVAL (0);
176 WHERE LIST *MimeLookupList INITVAL (0);
177 WHERE LIST *UnIgnore INITVAL (0);
179 WHERE list2_t *Alternates INITVAL (0);
180 WHERE list2_t *UnAlternates INITVAL (0);
181 WHERE list2_t *MailLists INITVAL (0);
182 WHERE list2_t *UnMailLists INITVAL (0);
183 WHERE list2_t *SubscribedLists INITVAL (0);
184 WHERE list2_t *UnSubscribedLists INITVAL (0);
185 WHERE SPAM_LIST *SpamList INITVAL (0);
186 WHERE list2_t *NoSpamList INITVAL (0);
188 /* bit vector for boolean variables */
190 unsigned char Options[(OPTMAX + 7) / 8];
192 extern unsigned char Options[];
195 /* bit vector for the yes/no/ask variable type */
197 unsigned char QuadOptions[(OPT_MAX * 2 + 7) / 8];
199 extern unsigned char QuadOptions[];
202 WHERE unsigned short Counter INITVAL (0);
205 WHERE short NewsPollTimeout;
206 WHERE short NntpContext;
209 WHERE short ConnectTimeout;
210 WHERE short HistSize;
211 WHERE short MenuContext;
212 WHERE short PagerContext;
213 WHERE short PagerIndexLines;
215 WHERE short SendmailWait;
216 WHERE short SleepTime INITVAL (1);
218 WHERE short Umask INITVAL (0077);
219 WHERE short WrapMargin;
220 WHERE short WriteInc;
221 WHERE short MaxLineLength;
223 WHERE short ScoreThresholdDelete;
224 WHERE short ScoreThresholdRead;
225 WHERE short ScoreThresholdFlag;
227 WHERE short DrawFullLine INITVAL (0);
228 WHERE short SidebarWidth;
231 WHERE short ImapKeepalive;
232 WHERE short ImapBuffyTimeout;
235 /* flags for received signals */
236 WHERE SIG_ATOMIC_VOLATILE_T SigAlrm INITVAL (0);
237 WHERE SIG_ATOMIC_VOLATILE_T SigInt INITVAL (0);
238 WHERE SIG_ATOMIC_VOLATILE_T SigWinch INITVAL (0);
240 WHERE int CurrentMenu;
242 WHERE ALIAS *Aliases INITVAL (0);
243 WHERE LIST *UserHeader INITVAL (0);
245 /*-- formerly in pgp.h --*/
246 WHERE rx_t PgpGoodSign;
247 WHERE char *PgpSignAs;
248 WHERE short PgpTimeout;
249 WHERE char *PgpEntryFormat;
250 WHERE char *PgpClearSignCommand;
251 WHERE char *PgpDecodeCommand;
252 WHERE char *PgpVerifyCommand;
253 WHERE char *PgpDecryptCommand;
254 WHERE char *PgpSignCommand;
255 WHERE char *PgpEncryptSignCommand;
256 WHERE char *PgpEncryptOnlyCommand;
257 WHERE char *PgpImportCommand;
258 WHERE char *PgpExportCommand;
259 WHERE char *PgpVerifyKeyCommand;
260 WHERE char *PgpListSecringCommand;
261 WHERE char *PgpListPubringCommand;
262 WHERE char *PgpGetkeysCommand;
264 /*-- formerly in smime.h --*/
265 WHERE char *SmimeDefaultKey;
266 WHERE char *SmimeCryptAlg;
267 WHERE short SmimeTimeout;
268 WHERE char *SmimeCertificates;
269 WHERE char *SmimeKeys;
270 WHERE char *SmimeCryptAlg;
271 WHERE char *SmimeCALocation;
272 WHERE char *SmimeVerifyCommand;
273 WHERE char *SmimeVerifyOpaqueCommand;
274 WHERE char *SmimeDecryptCommand;
275 WHERE char *SmimeSignCommand;
276 WHERE char *SmimeSignOpaqueCommand;
277 WHERE char *SmimeEncryptCommand;
278 WHERE char *SmimeGetSignerCertCommand;
279 WHERE char *SmimePk7outCommand;
280 WHERE char *SmimeGetCertCommand;
281 WHERE char *SmimeImportCertCommand;
282 WHERE char *SmimeGetCertEmailCommand;
287 WHERE FILE *debugfile INITVAL (0);
288 WHERE int debuglevel INITVAL (0);
292 const char *Weekdays[] = { "Sun", "Mon", "Tue", "Wed", "Thu", "Fri", "Sat" };
293 const char *Months[] =
294 { "Jan", "Feb", "Mar", "Apr", "May", "Jun", "Jul", "Aug", "Sep", "Oct",
295 "Nov", "Dec", "ERR" };
297 const char *BodyTypes[] =
298 { "x-unknown", "audio", "application", "image", "message", "model",
299 "multipart", "text", "video" };
300 const char *BodyEncodings[] =
301 { "x-unknown", "7bit", "8bit", "quoted-printable", "base64", "binary",
304 extern const char *Weekdays[];
305 extern const char *Months[];
309 /* so that global vars get included
310 * FIXME WTF IS THIS?!?!???!?!??!?!??
315 #include "mutt_crypt.h"
318 #endif /* !_GLOBALS_H */