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 *ContentType;
43 WHERE char *DefaultHook;
45 WHERE char *DisplayFilter;
46 WHERE char *DsnNotify;
47 WHERE char *DsnReturn;
50 WHERE char *FolderFormat;
57 WHERE char *ImapAuthenticators INITVAL (NULL);
58 WHERE char *ImapDelimChars INITVAL (NULL);
59 WHERE char *ImapHomeNamespace INITVAL (NULL);
60 WHERE char *ImapPass INITVAL (NULL);
61 WHERE char *ImapUser INITVAL (NULL);
66 WHERE char *MailcapPath;
68 WHERE char *MhFlagged;
69 WHERE char *MhReplied;
74 WHERE char *Preconnect INITVAL (NULL);
75 WHERE char *Tunnel INITVAL (NULL);
76 #endif /* USE_SOCKET */
79 WHERE char *Mixmaster;
80 WHERE char *MixEntryFormat;
83 WHERE char *OperatingSystem INITVAL (NULL);
85 WHERE char *Muttrc INITVAL (NULL);
87 WHERE char *NewsCacheDir;
88 WHERE char *GroupFormat;
90 WHERE char *NewsServer;
100 WHERE char *PopAuthenticators INITVAL (NULL);
101 WHERE short PopCheckTimeout;
103 WHERE char *PopPass INITVAL (NULL);
104 WHERE char *PopUser INITVAL (NULL);
106 WHERE char *PostIndentString;
107 WHERE char *Postponed;
109 WHERE char *PrintCmd;
110 WHERE char *QueryCmd;
111 WHERE char *Realname;
112 WHERE char *SendCharset;
113 WHERE char *Sendmail;
115 WHERE char *Signature;
116 WHERE char *SimpleSearch;
117 #if defined(USE_LIBESMTP)
118 WHERE char *SmtpAuthUser;
119 WHERE char *SmtpAuthPass;
120 WHERE char *SmtpHost;
121 WHERE unsigned short SmtpPort;
123 WHERE char *Spoolfile;
124 #if defined(USE_SSL) || defined(USE_NSS) || defined(USE_GNUTLS)
125 WHERE char *SslCertFile INITVAL (NULL);
127 #if defined(USE_SSL) || defined(USE_NSS)
128 WHERE char *SslEntropyFile INITVAL (NULL);
131 WHERE short SslDHPrimeBits;
132 WHERE char *SslCACertFile INITVAL (NULL);
138 WHERE char *TrashPath;
139 WHERE char *Username;
141 WHERE char *XtermTitle;
142 WHERE char *XtermIcon;
144 WHERE char *LastFolder;
146 WHERE LIST *AutoViewList INITVAL(0);
147 WHERE LIST *AlternativeOrderList INITVAL(0);
148 WHERE LIST *HeaderOrderList INITVAL(0);
149 WHERE LIST *Ignore INITVAL(0);
150 WHERE LIST *MimeLookupList INITVAL(0);
151 WHERE LIST *UnIgnore INITVAL(0);
153 WHERE RX_LIST *Alternates INITVAL(0);
154 WHERE RX_LIST *MailLists INITVAL(0);
155 WHERE RX_LIST *SubscribedLists INITVAL(0);
157 /* bit vector for boolean variables */
159 unsigned char Options[(OPTMAX + 7)/8];
161 extern unsigned char Options[];
164 /* bit vector for the yes/no/ask variable type */
166 unsigned char QuadOptions[(OPT_MAX*2 + 7) / 8];
168 extern unsigned char QuadOptions[];
171 WHERE unsigned short Counter INITVAL (0);
174 WHERE short NewsPollTimeout;
175 WHERE short NntpContext;
178 WHERE short ConnectTimeout;
179 WHERE short HistSize;
180 WHERE short PagerContext;
181 WHERE short PagerIndexLines;
183 WHERE short SendmailWait;
184 WHERE short SleepTime INITVAL (1);
186 WHERE short WrapMargin;
187 WHERE short WriteInc;
189 WHERE short ScoreThresholdDelete;
190 WHERE short ScoreThresholdRead;
191 WHERE short ScoreThresholdFlag;
193 WHERE struct buffy_t *CurBuffy INITVAL(0);
194 WHERE short DrawFullLine INITVAL(0);
195 WHERE short SidebarWidth;
197 WHERE short ImapKeepalive;
200 /* flags for received signals */
201 WHERE SIG_ATOMIC_VOLATILE_T SigAlrm INITVAL (0);
202 WHERE SIG_ATOMIC_VOLATILE_T SigInt INITVAL (0);
203 WHERE SIG_ATOMIC_VOLATILE_T SigWinch INITVAL (0);
205 WHERE int CurrentMenu;
207 WHERE ALIAS *Aliases INITVAL (0);
208 WHERE LIST *UserHeader INITVAL (0);
210 /*-- formerly in pgp.h --*/
211 WHERE REGEXP PgpGoodSign;
212 WHERE char *PgpSignAs;
213 WHERE short PgpTimeout;
214 WHERE char *PgpEntryFormat;
215 WHERE char *PgpClearSignCommand;
216 WHERE char *PgpDecodeCommand;
217 WHERE char *PgpVerifyCommand;
218 WHERE char *PgpDecryptCommand;
219 WHERE char *PgpSignCommand;
220 WHERE char *PgpEncryptSignCommand;
221 WHERE char *PgpEncryptOnlyCommand;
222 WHERE char *PgpImportCommand;
223 WHERE char *PgpExportCommand;
224 WHERE char *PgpVerifyKeyCommand;
225 WHERE char *PgpListSecringCommand;
226 WHERE char *PgpListPubringCommand;
227 WHERE char *PgpGetkeysCommand;
229 /*-- formerly in smime.h --*/
230 WHERE char *SmimeDefaultKey;
231 WHERE char *SmimeCryptAlg;
232 WHERE short SmimeTimeout;
233 WHERE char *SmimeCertificates;
234 WHERE char *SmimeKeys;
235 WHERE char *SmimeCryptAlg;
236 WHERE char *SmimeCALocation;
237 WHERE char *SmimeVerifyCommand;
238 WHERE char *SmimeVerifyOpaqueCommand;
239 WHERE char *SmimeDecryptCommand;
240 WHERE char *SmimeSignCommand;
241 WHERE char *SmimeSignOpaqueCommand;
242 WHERE char *SmimeEncryptCommand;
243 WHERE char *SmimeGetSignerCertCommand;
244 WHERE char *SmimePk7outCommand;
245 WHERE char *SmimeGetCertCommand;
246 WHERE char *SmimeImportCertCommand;
247 WHERE char *SmimeGetCertEmailCommand;
252 WHERE FILE *debugfile INITVAL (0);
253 WHERE int debuglevel INITVAL (0);
257 const char *Weekdays[] = { "Sun", "Mon", "Tue", "Wed", "Thu", "Fri", "Sat" };
258 const char *Months[] = { "Jan", "Feb", "Mar", "Apr", "May", "Jun", "Jul", "Aug", "Sep", "Oct", "Nov", "Dec", "ERR" };
260 const char *BodyTypes[] = { "x-unknown", "audio", "application", "image", "message", "model", "multipart", "text", "video" };
261 const char *BodyEncodings[] = { "x-unknown", "7bit", "8bit", "quoted-printable", "base64", "binary", "x-uuencoded" };
263 extern const char *Weekdays[];
264 extern const char *Months[];
268 /* so that global vars get included */
270 #include "mutt_regex.h"
273 #include "mutt_crypt.h"