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;
32 WHERE ADDRESS *EnvFrom;
35 WHERE char *AliasFile;
37 WHERE char *AssumedCharset;
38 WHERE char *AttachSep;
39 WHERE char *Attribution;
40 WHERE char *AttachFormat;
42 WHERE char *ComposeFormat;
43 WHERE char *ConfigCharset;
44 WHERE char *ContentType;
45 WHERE char *DefaultHook;
47 WHERE char *DisplayFilter;
48 WHERE char *DsnNotify;
49 WHERE char *DsnReturn;
51 WHERE char *EditorHeaders;
53 WHERE char *FileCharset;
54 WHERE char *FolderFormat;
62 WHERE char *ImapAuthenticators INITVAL (NULL);
63 WHERE char *ImapDelimChars INITVAL (NULL);
64 WHERE char *ImapHeaders;
65 WHERE char *ImapHomeNamespace INITVAL (NULL);
66 WHERE char *ImapLogin INITVAL (NULL);
67 WHERE char *ImapPass INITVAL (NULL);
68 WHERE char *ImapUser INITVAL (NULL);
73 WHERE char *MailcapPath;
77 WHERE char *HeaderCache;
78 #if HAVE_GDBM || HAVE_DB4
79 WHERE char *HeaderCachePageSize;
80 #endif /* HAVE_GDBM || HAVE_DB4 */
81 #endif /* USE_HCACHE */
82 WHERE char *MhFlagged;
83 WHERE char *MhReplied;
86 WHERE char *MsgIdFormat;
88 WHERE rx_t AttachRemindRegexp;
90 WHERE rx_t QuoteRegexp;
91 WHERE rx_t ReplyRegexp;
94 WHERE rx_t StripWasRegexp;
97 WHERE char *Preconnect INITVAL (NULL);
98 WHERE char *Tunnel INITVAL (NULL);
100 #endif /* USE_SOCKET */
103 WHERE char *Mixmaster;
104 WHERE char *MixEntryFormat;
107 WHERE char *OperatingSystem INITVAL (NULL);
109 WHERE char *Muttrc INITVAL (NULL);
112 WHERE char *NewsCacheDir;
113 WHERE char *GroupFormat;
115 WHERE char *NewsServer;
116 WHERE char *NntpUser;
117 WHERE char *NntpPass;
122 WHERE char *PagerFmt;
126 WHERE char *PopAuthenticators INITVAL (NULL);
127 WHERE short PopCheckTimeout;
129 WHERE char *PopPass INITVAL (NULL);
130 WHERE char *PopUser INITVAL (NULL);
132 WHERE char *PostIndentString;
133 WHERE char *Postponed;
135 WHERE char *PrintCmd;
136 WHERE char *QueryCmd;
137 WHERE char *Realname;
138 WHERE char *SendCharset;
139 WHERE char *Sendmail;
141 WHERE char *SidebarDelim;
142 WHERE char *SidebarNumberFormat;
143 WHERE char *SidebarBoundary;
144 WHERE char *Signature;
145 WHERE char *SignOffString;
146 WHERE char *SimpleSearch;
148 #if defined(USE_LIBESMTP)
149 WHERE char *SmtpAuthUser;
150 WHERE char *SmtpAuthPass;
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 */