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 WrapHeaders;
204 WHERE short WriteInc;
206 WHERE short ScoreThresholdDelete;
207 WHERE short ScoreThresholdRead;
208 WHERE short ScoreThresholdFlag;
211 WHERE short ImapKeepalive;
212 WHERE short ImapPipelineDepth;
215 /* flags for received signals */
216 WHERE SIG_ATOMIC_VOLATILE_T SigAlrm INITVAL (0);
217 WHERE SIG_ATOMIC_VOLATILE_T SigInt INITVAL (0);
218 WHERE SIG_ATOMIC_VOLATILE_T SigWinch INITVAL (0);
220 WHERE int CurrentMenu;
222 WHERE ALIAS *Aliases INITVAL (0);
223 WHERE LIST *UserHeader INITVAL (0);
225 /*-- formerly in pgp.h --*/
226 WHERE REGEXP PgpGoodSign;
227 WHERE char *PgpSignAs;
228 WHERE short PgpTimeout;
229 WHERE char *PgpEntryFormat;
230 WHERE char *PgpClearSignCommand;
231 WHERE char *PgpDecodeCommand;
232 WHERE char *PgpVerifyCommand;
233 WHERE char *PgpDecryptCommand;
234 WHERE char *PgpSignCommand;
235 WHERE char *PgpEncryptSignCommand;
236 WHERE char *PgpEncryptOnlyCommand;
237 WHERE char *PgpImportCommand;
238 WHERE char *PgpExportCommand;
239 WHERE char *PgpVerifyKeyCommand;
240 WHERE char *PgpListSecringCommand;
241 WHERE char *PgpListPubringCommand;
242 WHERE char *PgpGetkeysCommand;
244 /*-- formerly in smime.h --*/
245 WHERE char *SmimeDefaultKey;
246 WHERE char *SmimeCryptAlg;
247 WHERE short SmimeTimeout;
248 WHERE char *SmimeCertificates;
249 WHERE char *SmimeKeys;
250 WHERE char *SmimeCryptAlg;
251 WHERE char *SmimeCALocation;
252 WHERE char *SmimeVerifyCommand;
253 WHERE char *SmimeVerifyOpaqueCommand;
254 WHERE char *SmimeDecryptCommand;
255 WHERE char *SmimeSignCommand;
256 WHERE char *SmimeSignOpaqueCommand;
257 WHERE char *SmimeEncryptCommand;
258 WHERE char *SmimeGetSignerCertCommand;
259 WHERE char *SmimePk7outCommand;
260 WHERE char *SmimeGetCertCommand;
261 WHERE char *SmimeImportCertCommand;
262 WHERE char *SmimeGetCertEmailCommand;
268 const char *Weekdays[] = { "Sun", "Mon", "Tue", "Wed", "Thu", "Fri", "Sat" };
269 const char *Months[] = { "Jan", "Feb", "Mar", "Apr", "May", "Jun", "Jul", "Aug", "Sep", "Oct", "Nov", "Dec", "ERR" };
271 const char *BodyTypes[] = { "x-unknown", "audio", "application", "image", "message", "model", "multipart", "text", "video" };
272 const char *BodyEncodings[] = { "x-unknown", "7bit", "8bit", "quoted-printable", "base64", "binary", "x-uuencoded" };
274 extern const char *Weekdays[];
275 extern const char *Months[];
279 /* so that global vars get included */
281 #include "mutt_regex.h"
284 #include "mutt_crypt.h"