2 * Copyright (C) 1996-2002,2010,2016 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];
26 WHERE char ProtectedHeaderMarker[STRING];
28 #if defined(DL_STANDALONE) && defined(USE_DOTLOCK)
29 WHERE char *MuttDotlock;
32 WHERE ADDRESS *EnvFrom;
35 WHERE char *AliasFile;
37 WHERE char *AssumedCharset;
38 WHERE char *AttachSep;
39 WHERE char *Attribution;
40 WHERE char *AttributionLocale;
41 WHERE char *AttachCharset;
42 WHERE char *AttachFormat;
44 WHERE char *AutocryptAcctFormat;
45 WHERE char *AutocryptDir;
46 WHERE char *AutocryptSignAs; /* This is used in crypt-gpgme.c */
47 WHERE char *AutocryptDefaultKey; /* Used for postponing messages */
50 WHERE char *ComposeFormat;
51 WHERE char *ConfigCharset;
52 WHERE char *ContentType;
53 WHERE char *DefaultHook;
55 WHERE char *DisplayFilter;
56 WHERE char *DsnNotify;
57 WHERE char *DsnReturn;
60 WHERE char *FolderFormat;
61 WHERE char *ForwardAttrIntro;
62 WHERE char *ForwardAttrTrailer;
70 WHERE char *ImapAuthenticators;
71 WHERE char *ImapDelimChars;
72 WHERE char *ImapHeaders;
73 WHERE char *ImapLogin;
74 WHERE char *ImapOauthRefreshCmd;
80 WHERE char *MailcapPath;
82 #if defined(USE_IMAP) || defined(USE_POP)
83 WHERE char *MessageCachedir;
86 WHERE char *HeaderCache;
87 #if HAVE_GDBM || HAVE_DB4
88 WHERE long HeaderCachePageSize;
89 #endif /* HAVE_GDBM || HAVE_DB4 */
90 #endif /* USE_HCACHE */
91 WHERE char *MarkMacroPrefix;
92 WHERE char *MhFlagged;
93 WHERE char *MhReplied;
95 WHERE char *MimeTypeQueryCmd;
99 WHERE char *Preconnect;
102 #endif /* USE_SOCKET */
105 WHERE char *Mixmaster;
106 WHERE char *MixEntryFormat;
112 WHERE char *PagerFmt;
115 WHERE char *PopAuthenticators;
116 WHERE short PopCheckTimeout;
118 WHERE char *PopOauthRefreshCmd;
122 WHERE char *PostIndentString;
123 WHERE char *Postponed;
124 WHERE char *PostponeEncryptAs;
126 WHERE char *PrintCmd;
127 WHERE char *ProtHdrSubject;
128 WHERE char *NewMailCmd;
129 WHERE char *QueryCmd;
130 WHERE char *QueryFormat;
131 WHERE char *Realname;
132 WHERE short SearchContext;
133 WHERE char *SendCharset;
134 WHERE char *Sendmail;
137 WHERE char *SidebarDelimChars;
138 WHERE char *SidebarDividerChar;
139 WHERE char *SidebarFormat;
140 WHERE char *SidebarIndentString;
142 WHERE char *Signature;
143 WHERE char *SimpleSearch;
145 WHERE char *SmtpAuthenticators;
146 WHERE char *SmtpPass;
147 WHERE char *SmtpOauthRefreshCmd;
149 #endif /* USE_SMTP */
150 WHERE char *Spoolfile;
153 WHERE char *SslCertFile;
154 WHERE char *SslClientCert;
155 WHERE char *SslEntropyFile;
156 WHERE char *SslCiphers;
157 #ifdef USE_SSL_GNUTLS
158 WHERE short SslDHPrimeBits;
159 WHERE char *SslCACertFile;
162 WHERE mbchar_table *StChars;
165 WHERE mbchar_table *Tochars;
166 WHERE char *TrashPath;
167 WHERE char *TSStatusFormat;
168 WHERE char *TSIconFormat;
169 WHERE short TSSupported;
170 WHERE char *Username;
173 WHERE char *CurrentFolder;
174 WHERE char *LastFolder;
177 WHERE const char *ReleaseDate;
180 WHERE HASH *ReverseAlias;
181 WHERE HASH *AutoSubscribeCache;
183 WHERE LIST *AutoViewList;
184 WHERE LIST *AlternativeOrderList;
185 WHERE LIST *AttachAllow;
186 WHERE LIST *AttachExclude;
187 WHERE LIST *InlineAllow;
188 WHERE LIST *InlineExclude;
189 WHERE LIST *HeaderOrderList;
191 WHERE LIST *MailtoAllow;
192 WHERE LIST *MimeLookupList;
193 WHERE LIST *UnIgnore;
195 WHERE RX_LIST *Alternates;
196 WHERE RX_LIST *UnAlternates;
197 WHERE RX_LIST *MailLists;
198 WHERE RX_LIST *UnMailLists;
199 WHERE RX_LIST *SubscribedLists;
200 WHERE RX_LIST *UnSubscribedLists;
201 WHERE REPLACE_LIST *SpamList;
202 WHERE RX_LIST *NoSpamList;
203 WHERE REPLACE_LIST *SubjectRxList;
206 /* bit vector for boolean variables */
208 unsigned char Options[(OPTMAX + 7)/8];
210 extern unsigned char Options[];
213 /* bit vector for the yes/no/ask variable type */
215 unsigned char QuadOptions[(OPT_MAX*2 + 7) / 8];
217 extern unsigned char QuadOptions[];
220 WHERE unsigned short Counter;
222 WHERE short ConnectTimeout;
223 WHERE short ErrorHistSize;
224 WHERE short HistSize;
225 WHERE short MenuContext;
226 WHERE short PagerContext;
227 WHERE short PagerIndexLines;
229 WHERE short ReflowWrap;
230 WHERE short SaveHist;
231 WHERE short SendmailWait;
232 WHERE short SleepTime INITVAL (1);
236 WHERE short WrapHeaders;
237 WHERE short WriteInc;
239 WHERE short ScoreThresholdDelete;
240 WHERE short ScoreThresholdRead;
241 WHERE short ScoreThresholdFlag;
244 WHERE short SidebarWidth;
245 WHERE LIST *SidebarWhitelist;
249 WHERE long ImapFetchChunkSize;
250 WHERE short ImapKeepalive;
251 WHERE short ImapPipelineDepth;
252 WHERE short ImapPollTimeout;
255 /* flags for received signals */
256 WHERE SIG_ATOMIC_VOLATILE_T SigAlrm;
257 WHERE SIG_ATOMIC_VOLATILE_T SigInt;
258 WHERE SIG_ATOMIC_VOLATILE_T SigWinch;
260 WHERE int CurrentMenu;
262 WHERE ALIAS *Aliases;
263 WHERE LIST *UserHeader;
265 /*-- formerly in pgp.h --*/
266 WHERE REGEXP PgpGoodSign;
267 WHERE REGEXP PgpDecryptionOkay;
268 WHERE char *PgpDefaultKey;
269 WHERE char *PgpSignAs;
270 WHERE long PgpTimeout;
271 WHERE char *PgpEntryFormat;
272 WHERE char *PgpClearSignCommand;
273 WHERE char *PgpDecodeCommand;
274 WHERE char *PgpVerifyCommand;
275 WHERE char *PgpDecryptCommand;
276 WHERE char *PgpSignCommand;
277 WHERE char *PgpEncryptSignCommand;
278 WHERE char *PgpEncryptOnlyCommand;
279 WHERE char *PgpImportCommand;
280 WHERE char *PgpExportCommand;
281 WHERE char *PgpVerifyKeyCommand;
282 WHERE char *PgpListSecringCommand;
283 WHERE char *PgpListPubringCommand;
284 WHERE char *PgpGetkeysCommand;
286 /*-- formerly in smime.h --*/
287 WHERE char *SmimeDefaultKey;
288 WHERE char *SmimeSignAs;
289 WHERE long SmimeTimeout;
290 WHERE char *SmimeCertificates;
291 WHERE char *SmimeKeys;
292 WHERE char *SmimeCryptAlg;
293 WHERE char *SmimeCALocation;
294 WHERE char *SmimeVerifyCommand;
295 WHERE char *SmimeVerifyOpaqueCommand;
296 WHERE char *SmimeDecryptCommand;
297 WHERE char *SmimeSignCommand;
298 WHERE char *SmimeDigestAlg;
299 WHERE char *SmimeSignOpaqueCommand;
300 WHERE char *SmimeEncryptCommand;
301 WHERE char *SmimeGetSignerCertCommand;
302 WHERE char *SmimePk7outCommand;
303 WHERE char *SmimeGetCertCommand;
304 WHERE char *SmimeImportCertCommand;
305 WHERE char *SmimeGetCertEmailCommand;
311 const char * const Weekdays[] = { "Sun", "Mon", "Tue", "Wed", "Thu", "Fri", "Sat" };
312 const char * const Months[] = { "Jan", "Feb", "Mar", "Apr", "May", "Jun", "Jul", "Aug", "Sep", "Oct", "Nov", "Dec", "ERR" };
314 const char * const BodyTypes[] = { "x-unknown", "audio", "application", "image", "message", "model", "multipart", "text", "video" };
315 const char * const BodyEncodings[] = { "x-unknown", "7bit", "8bit", "quoted-printable", "base64", "binary", "x-uuencoded" };
317 extern const char * const Weekdays[];
318 extern const char * const Months[];
322 /* so that global vars get included */
324 #include "mutt_regex.h"
327 #include "mutt_crypt.h"