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 short SearchContext;
117 WHERE char *SendCharset;
118 WHERE char *Sendmail;
120 WHERE char *Signature;
121 WHERE char *SimpleSearch;
123 WHERE char *SmtpAuthenticators INITVAL (NULL);
124 WHERE char *SmtpPass INITVAL (NULL);
125 WHERE char *SmtpUrl INITVAL (NULL);
126 #endif /* USE_SMTP */
127 WHERE char *Spoolfile;
130 WHERE char *SslCertFile INITVAL (NULL);
131 WHERE char *SslClientCert INITVAL (NULL);
132 WHERE char *SslEntropyFile INITVAL (NULL);
133 #ifdef USE_SSL_GNUTLS
134 WHERE short SslDHPrimeBits;
135 WHERE char *SslCACertFile INITVAL (NULL);
142 WHERE char *Username;
145 WHERE char *CurrentFolder;
146 WHERE char *LastFolder;
149 WHERE const char *ReleaseDate;
152 WHERE HASH *ReverseAlias;
154 WHERE LIST *AutoViewList INITVAL(0);
155 WHERE LIST *AlternativeOrderList INITVAL(0);
156 WHERE LIST *AttachAllow INITVAL(0);
157 WHERE LIST *AttachExclude INITVAL(0);
158 WHERE LIST *InlineAllow INITVAL(0);
159 WHERE LIST *InlineExclude INITVAL(0);
160 WHERE LIST *HeaderOrderList INITVAL(0);
161 WHERE LIST *Ignore INITVAL(0);
162 WHERE LIST *MimeLookupList INITVAL(0);
163 WHERE LIST *UnIgnore INITVAL(0);
165 WHERE RX_LIST *Alternates INITVAL(0);
166 WHERE RX_LIST *UnAlternates INITVAL(0);
167 WHERE RX_LIST *MailLists INITVAL(0);
168 WHERE RX_LIST *UnMailLists INITVAL(0);
169 WHERE RX_LIST *SubscribedLists INITVAL(0);
170 WHERE RX_LIST *UnSubscribedLists INITVAL(0);
171 WHERE SPAM_LIST *SpamList INITVAL(0);
172 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);
191 WHERE short ConnectTimeout;
192 WHERE short HistSize;
193 WHERE short MenuContext;
194 WHERE short PagerContext;
195 WHERE short PagerIndexLines;
197 WHERE short SaveHist;
198 WHERE short SendmailWait;
199 WHERE short SleepTime INITVAL (1);
203 WHERE short WriteInc;
205 WHERE short ScoreThresholdDelete;
206 WHERE short ScoreThresholdRead;
207 WHERE short ScoreThresholdFlag;
210 WHERE short ImapKeepalive;
211 WHERE short ImapPipelineDepth;
214 /* flags for received signals */
215 WHERE SIG_ATOMIC_VOLATILE_T SigAlrm INITVAL (0);
216 WHERE SIG_ATOMIC_VOLATILE_T SigInt INITVAL (0);
217 WHERE SIG_ATOMIC_VOLATILE_T SigWinch INITVAL (0);
219 WHERE int CurrentMenu;
221 WHERE ALIAS *Aliases INITVAL (0);
222 WHERE LIST *UserHeader INITVAL (0);
224 /*-- formerly in pgp.h --*/
225 WHERE REGEXP PgpGoodSign;
226 WHERE char *PgpSignAs;
227 WHERE short PgpTimeout;
228 WHERE char *PgpEntryFormat;
229 WHERE char *PgpClearSignCommand;
230 WHERE char *PgpDecodeCommand;
231 WHERE char *PgpVerifyCommand;
232 WHERE char *PgpDecryptCommand;
233 WHERE char *PgpSignCommand;
234 WHERE char *PgpEncryptSignCommand;
235 WHERE char *PgpEncryptOnlyCommand;
236 WHERE char *PgpImportCommand;
237 WHERE char *PgpExportCommand;
238 WHERE char *PgpVerifyKeyCommand;
239 WHERE char *PgpListSecringCommand;
240 WHERE char *PgpListPubringCommand;
241 WHERE char *PgpGetkeysCommand;
243 /*-- formerly in smime.h --*/
244 WHERE char *SmimeDefaultKey;
245 WHERE char *SmimeCryptAlg;
246 WHERE short SmimeTimeout;
247 WHERE char *SmimeCertificates;
248 WHERE char *SmimeKeys;
249 WHERE char *SmimeCryptAlg;
250 WHERE char *SmimeCALocation;
251 WHERE char *SmimeVerifyCommand;
252 WHERE char *SmimeVerifyOpaqueCommand;
253 WHERE char *SmimeDecryptCommand;
254 WHERE char *SmimeSignCommand;
255 WHERE char *SmimeSignOpaqueCommand;
256 WHERE char *SmimeEncryptCommand;
257 WHERE char *SmimeGetSignerCertCommand;
258 WHERE char *SmimePk7outCommand;
259 WHERE char *SmimeGetCertCommand;
260 WHERE char *SmimeImportCertCommand;
261 WHERE char *SmimeGetCertEmailCommand;
267 const char *Weekdays[] = { "Sun", "Mon", "Tue", "Wed", "Thu", "Fri", "Sat" };
268 const char *Months[] = { "Jan", "Feb", "Mar", "Apr", "May", "Jun", "Jul", "Aug", "Sep", "Oct", "Nov", "Dec", "ERR" };
270 const char *BodyTypes[] = { "x-unknown", "audio", "application", "image", "message", "model", "multipart", "text", "video" };
271 const char *BodyEncodings[] = { "x-unknown", "7bit", "8bit", "quoted-printable", "base64", "binary", "x-uuencoded" };
273 extern const char *Weekdays[];
274 extern const char *Months[];
278 /* so that global vars get included */
280 #include "mutt_regex.h"
283 #include "mutt_crypt.h"