2 * Copyright (C) 1996-2002 Michael R. Elkins <me@mutt.org>
4 * This program is free software; you can redistribute it and/or modify
5 * it under the terms of the GNU General Public License as published by
6 * the Free Software Foundation; either version 2 of the License, or
7 * (at your option) any later version.
9 * This program is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 * GNU General Public License for more details.
14 * You should have received a copy of the GNU General Public License
15 * along with this program; if not, write to the Free Software
16 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
19 WHERE void (*mutt_error) (const char *, ...);
20 WHERE void (*mutt_message) (const char *, ...);
22 WHERE CONTEXT *Context;
24 WHERE char Errorbuf[STRING];
25 WHERE char AttachmentMarker[STRING];
27 #if defined(DL_STANDALONE) && defined(USE_DOTLOCK)
28 WHERE char *MuttDotlock;
31 WHERE ADDRESS *EnvFrom;
34 WHERE char *AliasFile;
36 WHERE char *AssumedCharset;
37 WHERE char *AttachSep;
38 WHERE char *Attribution;
39 WHERE char *AttachCharset;
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;
52 WHERE char *FolderFormat;
60 WHERE char *ImapAuthenticators INITVAL (NULL);
61 WHERE char *ImapDelimChars INITVAL (NULL);
62 WHERE char *ImapHeaders;
63 WHERE char *ImapLogin INITVAL (NULL);
64 WHERE char *ImapPass INITVAL (NULL);
65 WHERE char *ImapUser INITVAL (NULL);
70 WHERE char *MailcapPath;
72 #if defined(USE_IMAP) || defined(USE_POP)
73 WHERE char *MessageCachedir;
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;
87 WHERE char *Preconnect INITVAL (NULL);
88 WHERE char *Tunnel INITVAL (NULL);
90 #endif /* USE_SOCKET */
93 WHERE char *Mixmaster;
94 WHERE char *MixEntryFormat;
97 WHERE char *Muttrc INITVAL (NULL);
100 WHERE char *PagerFmt;
103 WHERE char *PopAuthenticators INITVAL (NULL);
104 WHERE short PopCheckTimeout;
106 WHERE char *PopPass INITVAL (NULL);
107 WHERE char *PopUser INITVAL (NULL);
109 WHERE char *PostIndentString;
110 WHERE char *Postponed;
112 WHERE char *PrintCmd;
113 WHERE char *QueryCmd;
114 WHERE char *QueryFormat;
115 WHERE char *Realname;
116 WHERE char *SendCharset;
117 WHERE char *Sendmail;
119 WHERE char *Signature;
120 WHERE char *SimpleSearch;
122 WHERE char *SmtpAuthenticators INITVAL (NULL);
123 WHERE char *SmtpPass INITVAL (NULL);
124 WHERE char *SmtpUrl INITVAL (NULL);
125 #endif /* USE_SMTP */
126 WHERE char *Spoolfile;
129 WHERE char *SslCertFile INITVAL (NULL);
130 WHERE char *SslClientCert INITVAL (NULL);
131 WHERE char *SslEntropyFile INITVAL (NULL);
132 #ifdef USE_SSL_GNUTLS
133 WHERE short SslDHPrimeBits;
134 WHERE char *SslCACertFile INITVAL (NULL);
141 WHERE char *Username;
144 WHERE char *CurrentFolder;
145 WHERE char *LastFolder;
148 WHERE const char *ReleaseDate;
151 WHERE HASH *ReverseAlias;
153 WHERE LIST *AutoViewList INITVAL(0);
154 WHERE LIST *AlternativeOrderList INITVAL(0);
155 WHERE LIST *AttachAllow INITVAL(0);
156 WHERE LIST *AttachExclude INITVAL(0);
157 WHERE LIST *InlineAllow INITVAL(0);
158 WHERE LIST *InlineExclude INITVAL(0);
159 WHERE LIST *HeaderOrderList INITVAL(0);
160 WHERE LIST *Ignore INITVAL(0);
161 WHERE LIST *MimeLookupList INITVAL(0);
162 WHERE LIST *UnIgnore INITVAL(0);
164 WHERE RX_LIST *Alternates INITVAL(0);
165 WHERE RX_LIST *UnAlternates INITVAL(0);
166 WHERE RX_LIST *MailLists INITVAL(0);
167 WHERE RX_LIST *UnMailLists INITVAL(0);
168 WHERE RX_LIST *SubscribedLists INITVAL(0);
169 WHERE RX_LIST *UnSubscribedLists INITVAL(0);
170 WHERE SPAM_LIST *SpamList INITVAL(0);
171 WHERE RX_LIST *NoSpamList INITVAL(0);
174 /* bit vector for boolean variables */
176 unsigned char Options[(OPTMAX + 7)/8];
178 extern unsigned char Options[];
181 /* bit vector for the yes/no/ask variable type */
183 unsigned char QuadOptions[(OPT_MAX*2 + 7) / 8];
185 extern unsigned char QuadOptions[];
188 WHERE unsigned short Counter INITVAL (0);
190 WHERE short ConnectTimeout;
191 WHERE short HistSize;
192 WHERE short MenuContext;
193 WHERE short PagerContext;
194 WHERE short PagerIndexLines;
196 WHERE short SaveHist;
197 WHERE short SendmailWait;
198 WHERE short SleepTime INITVAL (1);
202 WHERE short WriteInc;
204 WHERE short ScoreThresholdDelete;
205 WHERE short ScoreThresholdRead;
206 WHERE short ScoreThresholdFlag;
209 WHERE short ImapKeepalive;
210 WHERE short ImapPipelineDepth;
213 /* flags for received signals */
214 WHERE SIG_ATOMIC_VOLATILE_T SigAlrm INITVAL (0);
215 WHERE SIG_ATOMIC_VOLATILE_T SigInt INITVAL (0);
216 WHERE SIG_ATOMIC_VOLATILE_T SigWinch INITVAL (0);
218 WHERE int CurrentMenu;
220 WHERE ALIAS *Aliases INITVAL (0);
221 WHERE LIST *UserHeader INITVAL (0);
223 /*-- formerly in pgp.h --*/
224 WHERE REGEXP PgpGoodSign;
225 WHERE char *PgpSignAs;
226 WHERE short PgpTimeout;
227 WHERE char *PgpEntryFormat;
228 WHERE char *PgpClearSignCommand;
229 WHERE char *PgpDecodeCommand;
230 WHERE char *PgpVerifyCommand;
231 WHERE char *PgpDecryptCommand;
232 WHERE char *PgpSignCommand;
233 WHERE char *PgpEncryptSignCommand;
234 WHERE char *PgpEncryptOnlyCommand;
235 WHERE char *PgpImportCommand;
236 WHERE char *PgpExportCommand;
237 WHERE char *PgpVerifyKeyCommand;
238 WHERE char *PgpListSecringCommand;
239 WHERE char *PgpListPubringCommand;
240 WHERE char *PgpGetkeysCommand;
242 /*-- formerly in smime.h --*/
243 WHERE char *SmimeDefaultKey;
244 WHERE char *SmimeCryptAlg;
245 WHERE short SmimeTimeout;
246 WHERE char *SmimeCertificates;
247 WHERE char *SmimeKeys;
248 WHERE char *SmimeCryptAlg;
249 WHERE char *SmimeCALocation;
250 WHERE char *SmimeVerifyCommand;
251 WHERE char *SmimeVerifyOpaqueCommand;
252 WHERE char *SmimeDecryptCommand;
253 WHERE char *SmimeSignCommand;
254 WHERE char *SmimeSignOpaqueCommand;
255 WHERE char *SmimeEncryptCommand;
256 WHERE char *SmimeGetSignerCertCommand;
257 WHERE char *SmimePk7outCommand;
258 WHERE char *SmimeGetCertCommand;
259 WHERE char *SmimeImportCertCommand;
260 WHERE char *SmimeGetCertEmailCommand;
266 const char *Weekdays[] = { "Sun", "Mon", "Tue", "Wed", "Thu", "Fri", "Sat" };
267 const char *Months[] = { "Jan", "Feb", "Mar", "Apr", "May", "Jun", "Jul", "Aug", "Sep", "Oct", "Nov", "Dec", "ERR" };
269 const char *BodyTypes[] = { "x-unknown", "audio", "application", "image", "message", "model", "multipart", "text", "video" };
270 const char *BodyEncodings[] = { "x-unknown", "7bit", "8bit", "quoted-printable", "base64", "binary", "x-uuencoded" };
272 extern const char *Weekdays[];
273 extern const char *Months[];
277 /* so that global vars get included */
279 #include "mutt_regex.h"
282 #include "mutt_crypt.h"