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 *Muttrc INITVAL (NULL);
85 WHERE char *NewsCacheDir;
86 WHERE char *GroupFormat;
88 WHERE char *NewsServer;
98 WHERE char *PopAuthenticators INITVAL (NULL);
99 WHERE short PopCheckTimeout;
101 WHERE char *PopPass INITVAL (NULL);
102 WHERE char *PopUser INITVAL (NULL);
104 WHERE char *PostIndentString;
105 WHERE char *Postponed;
107 WHERE char *PrintCmd;
108 WHERE char *QueryCmd;
109 WHERE char *Realname;
110 WHERE char *SendCharset;
111 WHERE char *Sendmail;
113 WHERE char *Signature;
114 WHERE char *SimpleSearch;
115 #if defined(USE_LIBESMTP)
116 WHERE char *SmtpAuthUser;
117 WHERE char *SmtpAuthPass;
118 WHERE char *SmtpHost;
119 WHERE unsigned short SmtpPort;
121 WHERE char *Spoolfile;
122 #if defined(USE_SSL) || defined(USE_NSS)
123 WHERE char *SslCertFile INITVAL (NULL);
124 WHERE char *SslEntropyFile INITVAL (NULL);
130 WHERE char *TrashPath;
131 WHERE char *Username;
134 WHERE char *LastFolder;
136 WHERE LIST *AutoViewList INITVAL(0);
137 WHERE LIST *AlternativeOrderList INITVAL(0);
138 WHERE LIST *HeaderOrderList INITVAL(0);
139 WHERE LIST *Ignore INITVAL(0);
140 WHERE LIST *MimeLookupList INITVAL(0);
141 WHERE LIST *UnIgnore INITVAL(0);
143 WHERE RX_LIST *Alternates INITVAL(0);
144 WHERE RX_LIST *MailLists INITVAL(0);
145 WHERE RX_LIST *SubscribedLists INITVAL(0);
147 /* bit vector for boolean variables */
149 unsigned char Options[(OPTMAX + 7)/8];
151 extern unsigned char Options[];
154 /* bit vector for the yes/no/ask variable type */
156 unsigned char QuadOptions[(OPT_MAX*2 + 7) / 8];
158 extern unsigned char QuadOptions[];
161 WHERE unsigned short Counter INITVAL (0);
164 WHERE short NewsPollTimeout;
165 WHERE short NntpContext;
168 WHERE short ConnectTimeout;
169 WHERE short HistSize;
170 WHERE short PagerContext;
171 WHERE short PagerIndexLines;
173 WHERE short SendmailWait;
174 WHERE short SleepTime INITVAL (1);
176 WHERE short WrapMargin;
177 WHERE short WriteInc;
179 WHERE short ScoreThresholdDelete;
180 WHERE short ScoreThresholdRead;
181 WHERE short ScoreThresholdFlag;
183 WHERE struct buffy_t *CurBuffy INITVAL(0);
184 WHERE short DrawFullLine INITVAL(0);
185 WHERE short SidebarWidth;
187 WHERE short ImapKeepalive;
190 /* flags for received signals */
191 WHERE SIG_ATOMIC_VOLATILE_T SigAlrm INITVAL (0);
192 WHERE SIG_ATOMIC_VOLATILE_T SigInt INITVAL (0);
193 WHERE SIG_ATOMIC_VOLATILE_T SigWinch INITVAL (0);
195 WHERE int CurrentMenu;
197 WHERE ALIAS *Aliases INITVAL (0);
198 WHERE LIST *UserHeader INITVAL (0);
200 /*-- formerly in pgp.h --*/
201 WHERE REGEXP PgpGoodSign;
202 WHERE char *PgpSignAs;
203 WHERE short PgpTimeout;
204 WHERE char *PgpEntryFormat;
205 WHERE char *PgpClearSignCommand;
206 WHERE char *PgpDecodeCommand;
207 WHERE char *PgpVerifyCommand;
208 WHERE char *PgpDecryptCommand;
209 WHERE char *PgpSignCommand;
210 WHERE char *PgpEncryptSignCommand;
211 WHERE char *PgpEncryptOnlyCommand;
212 WHERE char *PgpImportCommand;
213 WHERE char *PgpExportCommand;
214 WHERE char *PgpVerifyKeyCommand;
215 WHERE char *PgpListSecringCommand;
216 WHERE char *PgpListPubringCommand;
217 WHERE char *PgpGetkeysCommand;
219 /*-- formerly in smime.h --*/
220 WHERE char *SmimeDefaultKey;
221 WHERE char *SmimeCryptAlg;
222 WHERE short SmimeTimeout;
223 WHERE char *SmimeCertificates;
224 WHERE char *SmimeKeys;
225 WHERE char *SmimeCryptAlg;
226 WHERE char *SmimeCALocation;
227 WHERE char *SmimeVerifyCommand;
228 WHERE char *SmimeVerifyOpaqueCommand;
229 WHERE char *SmimeDecryptCommand;
230 WHERE char *SmimeSignCommand;
231 WHERE char *SmimeSignOpaqueCommand;
232 WHERE char *SmimeEncryptCommand;
233 WHERE char *SmimeGetSignerCertCommand;
234 WHERE char *SmimePk7outCommand;
235 WHERE char *SmimeGetCertCommand;
236 WHERE char *SmimeImportCertCommand;
237 WHERE char *SmimeGetCertEmailCommand;
242 WHERE FILE *debugfile INITVAL (0);
243 WHERE int debuglevel INITVAL (0);
247 const char *Weekdays[] = { "Sun", "Mon", "Tue", "Wed", "Thu", "Fri", "Sat" };
248 const char *Months[] = { "Jan", "Feb", "Mar", "Apr", "May", "Jun", "Jul", "Aug", "Sep", "Oct", "Nov", "Dec", "ERR" };
250 const char *BodyTypes[] = { "x-unknown", "audio", "application", "image", "message", "model", "multipart", "text", "video" };
251 const char *BodyEncodings[] = { "x-unknown", "7bit", "8bit", "quoted-printable", "base64", "binary", "x-uuencoded" };
253 extern const char *Weekdays[];
254 extern const char *Months[];
258 /* so that global vars get included */
260 #include "mutt_regex.h"
263 #include "mutt_crypt.h"