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.
10 WHERE void (*mutt_error) (const char *, ...);
11 WHERE void (*mutt_message) (const char *, ...);
13 WHERE CONTEXT *Context;
15 WHERE char Errorbuf[STRING];
16 WHERE char AttachmentMarker[STRING];
18 WHERE char Quotebuf[SHORT_STRING];
20 #if defined(DL_STANDALONE) && defined(USE_DOTLOCK)
21 WHERE char *MuttDotlock;
26 WHERE char *AliasFile;
28 WHERE char *AssumedCharset;
29 WHERE char *AttachSep;
30 WHERE char *Attribution;
31 WHERE char *AttachFormat;
33 WHERE char *ComposeFormat;
34 WHERE char *ConfigCharset;
35 WHERE char *ContentType;
36 WHERE char *DefaultHook;
38 WHERE char *DisplayFilter;
39 WHERE char *DsnNotify;
40 WHERE char *DsnReturn;
43 WHERE char *FileCharset;
44 WHERE char *FolderFormat;
52 WHERE char *ImapAuthenticators INITVAL (NULL);
53 WHERE char *ImapDelimChars INITVAL (NULL);
54 WHERE char *ImapHeaders;
55 WHERE char *ImapHomeNamespace INITVAL (NULL);
56 WHERE char *ImapPass INITVAL (NULL);
57 WHERE char *ImapUser INITVAL (NULL);
62 WHERE char *MailcapPath;
66 WHERE char *HeaderCache;
67 WHERE char *HeaderCachePageSize;
69 WHERE char *MhFlagged;
70 WHERE char *MhReplied;
73 WHERE char *MsgIdFormat;
76 WHERE char *Preconnect INITVAL (NULL);
77 WHERE char *Tunnel INITVAL (NULL);
78 #endif /* USE_SOCKET */
81 WHERE char *Mixmaster;
82 WHERE char *MixEntryFormat;
85 WHERE char *OperatingSystem INITVAL (NULL);
87 WHERE char *Muttrc INITVAL (NULL);
90 WHERE char *NewsCacheDir;
91 WHERE char *GroupFormat;
93 WHERE char *NewsServer;
100 WHERE char *PagerFmt;
104 WHERE char *PopAuthenticators INITVAL (NULL);
105 WHERE short PopCheckTimeout;
107 WHERE char *PopPass INITVAL (NULL);
108 WHERE char *PopUser INITVAL (NULL);
110 WHERE char *PostIndentString;
111 WHERE char *Postponed;
113 WHERE char *PrintCmd;
114 WHERE char *QueryCmd;
115 WHERE char *Realname;
116 WHERE char *SendCharset;
117 WHERE char *Sendmail;
119 WHERE char *SidebarDelim;
120 WHERE char *Signature;
121 WHERE char *SignOffString;
122 WHERE char *SimpleSearch;
124 #if defined(USE_LIBESMTP)
125 WHERE char *SmtpAuthUser;
126 WHERE char *SmtpAuthPass;
127 WHERE char *SmtpHost;
128 WHERE unsigned short SmtpPort;
130 WHERE char *Spoolfile;
133 #if defined(USE_SSL) || defined(USE_NSS) || defined(USE_GNUTLS)
134 WHERE char *SslCertFile INITVAL (NULL);
136 #if defined(USE_SSL) || defined(USE_NSS)
137 WHERE char *SslEntropyFile INITVAL (NULL);
140 WHERE char *SslClientCert INITVAL (NULL);
143 WHERE short SslDHPrimeBits;
144 WHERE char *SslCACertFile INITVAL (NULL);
150 WHERE char *TrashPath;
151 WHERE char *Username;
153 WHERE char *XtermTitle;
154 WHERE char *XtermIcon;
156 WHERE char *CurrentFolder;
157 WHERE char *LastFolder;
159 WHERE LIST *AutoViewList INITVAL (0);
160 WHERE LIST *AlternativeOrderList INITVAL (0);
161 WHERE LIST *HeaderOrderList INITVAL (0);
162 WHERE LIST *Ignore INITVAL (0);
163 WHERE LIST *MimeLookupList INITVAL (0);
164 WHERE LIST *UnIgnore INITVAL (0);
166 WHERE RX_LIST *Alternates INITVAL (0);
167 WHERE RX_LIST *UnAlternates INITVAL (0);
168 WHERE RX_LIST *MailLists INITVAL (0);
169 WHERE RX_LIST *UnMailLists INITVAL (0);
170 WHERE RX_LIST *SubscribedLists INITVAL (0);
171 WHERE RX_LIST *UnSubscribedLists INITVAL (0);
172 WHERE SPAM_LIST *SpamList INITVAL (0);
173 WHERE RX_LIST *NoSpamList INITVAL (0);
175 /* bit vector for boolean variables */
177 unsigned char Options[(OPTMAX + 7) / 8];
179 extern unsigned char Options[];
182 /* bit vector for the yes/no/ask variable type */
184 unsigned char QuadOptions[(OPT_MAX * 2 + 7) / 8];
186 extern unsigned char QuadOptions[];
189 WHERE unsigned short Counter INITVAL (0);
192 WHERE short NewsPollTimeout;
193 WHERE short NntpContext;
196 WHERE short ConnectTimeout;
197 WHERE short HistSize;
198 WHERE short MenuContext;
199 WHERE short PagerContext;
200 WHERE short PagerIndexLines;
202 WHERE short SendmailWait;
203 WHERE short SleepTime INITVAL (1);
205 WHERE short Umask INITVAL (0077);
206 WHERE short WrapMargin;
207 WHERE short WriteInc;
208 WHERE short MaxLineLength;
210 WHERE short ScoreThresholdDelete;
211 WHERE short ScoreThresholdRead;
212 WHERE short ScoreThresholdFlag;
214 WHERE short DrawFullLine INITVAL (0);
215 WHERE short SidebarWidth;
218 WHERE short ImapKeepalive;
219 WHERE short ImapBuffyTimeout;
222 /* flags for received signals */
223 WHERE SIG_ATOMIC_VOLATILE_T SigAlrm INITVAL (0);
224 WHERE SIG_ATOMIC_VOLATILE_T SigInt INITVAL (0);
225 WHERE SIG_ATOMIC_VOLATILE_T SigWinch INITVAL (0);
227 WHERE int CurrentMenu;
229 WHERE ALIAS *Aliases INITVAL (0);
230 WHERE LIST *UserHeader INITVAL (0);
232 /*-- formerly in pgp.h --*/
233 WHERE REGEXP PgpGoodSign;
234 WHERE char *PgpSignAs;
235 WHERE short PgpTimeout;
236 WHERE char *PgpEntryFormat;
237 WHERE char *PgpClearSignCommand;
238 WHERE char *PgpDecodeCommand;
239 WHERE char *PgpVerifyCommand;
240 WHERE char *PgpDecryptCommand;
241 WHERE char *PgpSignCommand;
242 WHERE char *PgpEncryptSignCommand;
243 WHERE char *PgpEncryptOnlyCommand;
244 WHERE char *PgpImportCommand;
245 WHERE char *PgpExportCommand;
246 WHERE char *PgpVerifyKeyCommand;
247 WHERE char *PgpListSecringCommand;
248 WHERE char *PgpListPubringCommand;
249 WHERE char *PgpGetkeysCommand;
251 /*-- formerly in smime.h --*/
252 WHERE char *SmimeDefaultKey;
253 WHERE char *SmimeCryptAlg;
254 WHERE short SmimeTimeout;
255 WHERE char *SmimeCertificates;
256 WHERE char *SmimeKeys;
257 WHERE char *SmimeCryptAlg;
258 WHERE char *SmimeCALocation;
259 WHERE char *SmimeVerifyCommand;
260 WHERE char *SmimeVerifyOpaqueCommand;
261 WHERE char *SmimeDecryptCommand;
262 WHERE char *SmimeSignCommand;
263 WHERE char *SmimeSignOpaqueCommand;
264 WHERE char *SmimeEncryptCommand;
265 WHERE char *SmimeGetSignerCertCommand;
266 WHERE char *SmimePk7outCommand;
267 WHERE char *SmimeGetCertCommand;
268 WHERE char *SmimeImportCertCommand;
269 WHERE char *SmimeGetCertEmailCommand;
274 WHERE FILE *debugfile INITVAL (0);
275 WHERE int debuglevel INITVAL (0);
279 const char *Weekdays[] = { "Sun", "Mon", "Tue", "Wed", "Thu", "Fri", "Sat" };
280 const char *Months[] =
281 { "Jan", "Feb", "Mar", "Apr", "May", "Jun", "Jul", "Aug", "Sep", "Oct",
282 "Nov", "Dec", "ERR" };
284 const char *BodyTypes[] =
285 { "x-unknown", "audio", "application", "image", "message", "model",
286 "multipart", "text", "video" };
287 const char *BodyEncodings[] =
288 { "x-unknown", "7bit", "8bit", "quoted-printable", "base64", "binary",
291 extern const char *Weekdays[];
292 extern const char *Months[];
296 /* so that global vars get included */
298 #include "mutt_regex.h"
301 #include "mutt_crypt.h"