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., 59 Temple Place - Suite 330, Boston, MA 02111, 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 WHERE char Quotebuf[SHORT_STRING];
29 #if defined(DL_STANDALONE) && defined(USE_DOTLOCK)
30 WHERE char *MuttDotlock;
35 WHERE char *AliasFile;
37 WHERE char *AttachSep;
38 WHERE char *Attribution;
39 WHERE char *AttachFormat;
41 WHERE char *ComposeFormat;
42 WHERE char *ConfigCharset;
43 WHERE char *ContentType;
44 WHERE char *DefaultHook;
46 WHERE char *DisplayFilter;
47 WHERE char *DsnNotify;
48 WHERE char *DsnReturn;
51 WHERE char *FolderFormat;
58 WHERE char *ImapAuthenticators INITVAL (NULL);
59 WHERE char *ImapDelimChars INITVAL (NULL);
60 WHERE char *ImapHeaders;
61 WHERE char *ImapHomeNamespace INITVAL (NULL);
62 WHERE char *ImapPass INITVAL (NULL);
63 WHERE char *ImapUser INITVAL (NULL);
68 WHERE char *MailcapPath;
71 WHERE char *HeaderCache;
72 WHERE char *HeaderCachePageSize;
74 WHERE char *MhFlagged;
75 WHERE char *MhReplied;
80 WHERE char *Preconnect INITVAL (NULL);
81 WHERE char *Tunnel INITVAL (NULL);
82 #endif /* USE_SOCKET */
85 WHERE char *Mixmaster;
86 WHERE char *MixEntryFormat;
89 WHERE char *OperatingSystem INITVAL (NULL);
91 WHERE char *Muttrc INITVAL (NULL);
93 WHERE char *NewsCacheDir;
94 WHERE char *GroupFormat;
96 WHERE char *NewsServer;
103 WHERE char *PagerFmt;
106 WHERE char *PopAuthenticators INITVAL (NULL);
107 WHERE short PopCheckTimeout;
109 WHERE char *PopPass INITVAL (NULL);
110 WHERE char *PopUser INITVAL (NULL);
112 WHERE char *PostIndentString;
113 WHERE char *Postponed;
115 WHERE char *PrintCmd;
116 WHERE char *QueryCmd;
117 WHERE char *Realname;
118 WHERE char *SendCharset;
119 WHERE char *Sendmail;
121 WHERE char *Signature;
122 WHERE char *SimpleSearch;
123 #if defined(USE_LIBESMTP)
124 WHERE char *SmtpAuthUser;
125 WHERE char *SmtpAuthPass;
126 WHERE char *SmtpHost;
127 WHERE unsigned short SmtpPort;
129 WHERE char *Spoolfile;
131 #if defined(USE_SSL) || defined(USE_NSS) || defined(USE_GNUTLS)
132 WHERE char *SslCertFile INITVAL (NULL);
134 #if defined(USE_SSL) || defined(USE_NSS)
135 WHERE char *SslEntropyFile INITVAL (NULL);
137 WHERE char *SslClientCert INITVAL (NULL);
139 WHERE short SslDHPrimeBits;
140 WHERE char *SslCACertFile INITVAL (NULL);
146 WHERE char *TrashPath;
147 WHERE char *Username;
149 WHERE char *XtermTitle;
150 WHERE char *XtermIcon;
152 WHERE char *LastFolder;
154 WHERE LIST *AutoViewList INITVAL(0);
155 WHERE LIST *AlternativeOrderList INITVAL(0);
156 WHERE LIST *HeaderOrderList INITVAL(0);
157 WHERE LIST *Ignore INITVAL(0);
158 WHERE LIST *MimeLookupList INITVAL(0);
159 WHERE LIST *UnIgnore INITVAL(0);
161 WHERE RX_LIST *Alternates INITVAL(0);
162 WHERE RX_LIST *MailLists INITVAL(0);
163 WHERE RX_LIST *SubscribedLists INITVAL(0);
164 WHERE SPAM_LIST *SpamList INITVAL(0);
165 WHERE RX_LIST *NoSpamList INITVAL(0);
167 /* bit vector for boolean variables */
169 unsigned char Options[(OPTMAX + 7)/8];
171 extern unsigned char Options[];
174 /* bit vector for the yes/no/ask variable type */
176 unsigned char QuadOptions[(OPT_MAX*2 + 7) / 8];
178 extern unsigned char QuadOptions[];
181 WHERE unsigned short Counter INITVAL (0);
184 WHERE short NewsPollTimeout;
185 WHERE short NntpContext;
188 WHERE short ConnectTimeout;
189 WHERE short HistSize;
190 WHERE short PagerContext;
191 WHERE short PagerIndexLines;
193 WHERE short SendmailWait;
194 WHERE short SleepTime INITVAL (1);
196 WHERE short Umask INITVAL(0077);
197 WHERE short WrapMargin;
198 WHERE short WriteInc;
200 WHERE short ScoreThresholdDelete;
201 WHERE short ScoreThresholdRead;
202 WHERE short ScoreThresholdFlag;
204 WHERE struct buffy_t *CurBuffy INITVAL(0);
205 WHERE short DrawFullLine INITVAL(0);
206 WHERE short SidebarWidth;
208 WHERE short ImapKeepalive;
211 /* flags for received signals */
212 WHERE SIG_ATOMIC_VOLATILE_T SigAlrm INITVAL (0);
213 WHERE SIG_ATOMIC_VOLATILE_T SigInt INITVAL (0);
214 WHERE SIG_ATOMIC_VOLATILE_T SigWinch INITVAL (0);
216 WHERE int CurrentMenu;
218 WHERE ALIAS *Aliases INITVAL (0);
219 WHERE LIST *UserHeader INITVAL (0);
221 /*-- formerly in pgp.h --*/
222 WHERE REGEXP PgpGoodSign;
223 WHERE char *PgpSignAs;
224 WHERE short PgpTimeout;
225 WHERE char *PgpEntryFormat;
226 WHERE char *PgpClearSignCommand;
227 WHERE char *PgpDecodeCommand;
228 WHERE char *PgpVerifyCommand;
229 WHERE char *PgpDecryptCommand;
230 WHERE char *PgpSignCommand;
231 WHERE char *PgpEncryptSignCommand;
232 WHERE char *PgpEncryptOnlyCommand;
233 WHERE char *PgpImportCommand;
234 WHERE char *PgpExportCommand;
235 WHERE char *PgpVerifyKeyCommand;
236 WHERE char *PgpListSecringCommand;
237 WHERE char *PgpListPubringCommand;
238 WHERE char *PgpGetkeysCommand;
240 /*-- formerly in smime.h --*/
241 WHERE char *SmimeDefaultKey;
242 WHERE char *SmimeCryptAlg;
243 WHERE short SmimeTimeout;
244 WHERE char *SmimeCertificates;
245 WHERE char *SmimeKeys;
246 WHERE char *SmimeCryptAlg;
247 WHERE char *SmimeCALocation;
248 WHERE char *SmimeVerifyCommand;
249 WHERE char *SmimeVerifyOpaqueCommand;
250 WHERE char *SmimeDecryptCommand;
251 WHERE char *SmimeSignCommand;
252 WHERE char *SmimeSignOpaqueCommand;
253 WHERE char *SmimeEncryptCommand;
254 WHERE char *SmimeGetSignerCertCommand;
255 WHERE char *SmimePk7outCommand;
256 WHERE char *SmimeGetCertCommand;
257 WHERE char *SmimeImportCertCommand;
258 WHERE char *SmimeGetCertEmailCommand;
263 WHERE FILE *debugfile INITVAL (0);
264 WHERE int debuglevel INITVAL (0);
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"