]> granicus.if.org Git - mutt/blob - globals.h
Convert pgp_app_handler to use buffer pool.
[mutt] / globals.h
1 /*
2  * Copyright (C) 1996-2002,2010,2016 Michael R. Elkins <me@mutt.org>
3  *
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.
8  *
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.
13  *
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.
17  */
18
19 WHERE void (*mutt_error) (const char *, ...);
20 WHERE void (*mutt_message) (const char *, ...);
21
22 WHERE CONTEXT *Context;
23
24 WHERE char Errorbuf[STRING];
25 WHERE char AttachmentMarker[STRING];
26 WHERE char ProtectedHeaderMarker[STRING];
27
28 #if defined(DL_STANDALONE) && defined(USE_DOTLOCK)
29 WHERE char *MuttDotlock;
30 #endif
31
32 WHERE ADDRESS *EnvFrom;
33 WHERE ADDRESS *From;
34
35 WHERE char *AliasFile;
36 WHERE char *AliasFmt;
37 WHERE char *AssumedCharset;
38 WHERE char *AttachSep;
39 WHERE char *Attribution;
40 WHERE char *AttributionLocale;
41 WHERE char *AttachCharset;
42 WHERE char *AttachFormat;
43 #ifdef USE_AUTOCRYPT
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 */
48 #endif
49 WHERE char *Charset;
50 WHERE char *ComposeFormat;
51 WHERE char *ConfigCharset;
52 WHERE char *ContentType;
53 WHERE char *DefaultHook;
54 WHERE char *DateFmt;
55 WHERE char *DisplayFilter;
56 WHERE char *DsnNotify;
57 WHERE char *DsnReturn;
58 WHERE char *Editor;
59 WHERE char *EscChar;
60 WHERE char *FolderFormat;
61 WHERE char *ForwardAttrIntro;
62 WHERE char *ForwardAttrTrailer;
63 WHERE char *ForwFmt;
64 WHERE char *Fqdn;
65 WHERE char *HdrFmt;
66 WHERE char *HistFile;
67 WHERE char *Homedir;
68 WHERE char *Hostname;
69 #ifdef USE_IMAP
70 WHERE char *ImapAuthenticators;
71 WHERE char *ImapDelimChars;
72 WHERE char *ImapHeaders;
73 WHERE char *ImapLogin;
74 WHERE char *ImapOauthRefreshCmd;
75 WHERE char *ImapPass;
76 WHERE char *ImapUser;
77 #endif
78 WHERE char *Inbox;
79 WHERE char *Ispell;
80 WHERE char *MailcapPath;
81 WHERE char *Maildir;
82 #if defined(USE_IMAP) || defined(USE_POP)
83 WHERE char *MessageCachedir;
84 #endif
85 #if USE_HCACHE
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;
94 WHERE char *MhUnseen;
95 WHERE char *MimeTypeQueryCmd;
96 WHERE char *MsgFmt;
97
98 #ifdef USE_SOCKET
99 WHERE char *Preconnect;
100 WHERE char *Tunnel;
101 WHERE short NetInc;
102 #endif /* USE_SOCKET */
103
104 #ifdef MIXMASTER
105 WHERE char *Mixmaster;
106 WHERE char *MixEntryFormat;
107 #endif
108
109 WHERE char *Muttrc;
110 WHERE char *Outbox;
111 WHERE char *Pager;
112 WHERE char *PagerFmt;
113 WHERE char *PipeSep;
114 #ifdef USE_POP
115 WHERE char *PopAuthenticators;
116 WHERE short PopCheckTimeout;
117 WHERE char *PopHost;
118 WHERE char *PopOauthRefreshCmd;
119 WHERE char *PopPass;
120 WHERE char *PopUser;
121 #endif
122 WHERE char *PostIndentString;
123 WHERE char *Postponed;
124 WHERE char *PostponeEncryptAs;
125 WHERE char *Prefix;
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;
135 WHERE char *Shell;
136 #ifdef USE_SIDEBAR
137 WHERE char *SidebarDelimChars;
138 WHERE char *SidebarDividerChar;
139 WHERE char *SidebarFormat;
140 WHERE char *SidebarIndentString;
141 #endif
142 WHERE char *Signature;
143 WHERE char *SimpleSearch;
144 #if USE_SMTP
145 WHERE char *SmtpAuthenticators;
146 WHERE char *SmtpPass;
147 WHERE char *SmtpOauthRefreshCmd;
148 WHERE char *SmtpUrl;
149 #endif /* USE_SMTP */
150 WHERE char *Spoolfile;
151 WHERE char *SpamSep;
152 #if defined(USE_SSL)
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;
160 #endif
161 #endif
162 WHERE mbchar_table *StChars;
163 WHERE char *Status;
164 WHERE char *Tempdir;
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;
171 WHERE char *Visual;
172
173 WHERE char *CurrentFolder;
174 WHERE char *LastFolder;
175
176
177 WHERE const char *ReleaseDate;
178
179 WHERE HASH *Groups;
180 WHERE HASH *ReverseAlias;
181 WHERE HASH *AutoSubscribeCache;
182
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;
190 WHERE LIST *Ignore;
191 WHERE LIST *MailtoAllow;
192 WHERE LIST *MimeLookupList;
193 WHERE LIST *UnIgnore;
194
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;
204
205
206 /* bit vector for boolean variables */
207 #ifdef MAIN_C
208 unsigned char Options[(OPTMAX + 7)/8];
209 #else
210 extern unsigned char Options[];
211 #endif
212
213 /* bit vector for the yes/no/ask variable type */
214 #ifdef MAIN_C
215 unsigned char QuadOptions[(OPT_MAX*2 + 7) / 8];
216 #else
217 extern unsigned char QuadOptions[];
218 #endif
219
220 WHERE unsigned short Counter;
221
222 WHERE short ConnectTimeout;
223 WHERE short ErrorHistSize;
224 WHERE short HistSize;
225 WHERE short MenuContext;
226 WHERE short PagerContext;
227 WHERE short PagerIndexLines;
228 WHERE short ReadInc;
229 WHERE short ReflowWrap;
230 WHERE short SaveHist;
231 WHERE short SendmailWait;
232 WHERE short SleepTime INITVAL (1);
233 WHERE short TimeInc;
234 WHERE short Timeout;
235 WHERE short Wrap;
236 WHERE short WrapHeaders;
237 WHERE short WriteInc;
238
239 WHERE short ScoreThresholdDelete;
240 WHERE short ScoreThresholdRead;
241 WHERE short ScoreThresholdFlag;
242
243 #ifdef USE_SIDEBAR
244 WHERE short SidebarWidth;
245 WHERE LIST *SidebarWhitelist;
246 #endif
247
248 #ifdef USE_IMAP
249 WHERE long  ImapFetchChunkSize;
250 WHERE short ImapKeepalive;
251 WHERE short ImapPipelineDepth;
252 WHERE short ImapPollTimeout;
253 #endif
254
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;
259
260 WHERE int CurrentMenu;
261
262 WHERE ALIAS *Aliases;
263 WHERE LIST *UserHeader;
264
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;
285
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;
306
307
308
309
310 #ifdef MAIN_C
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" };
313
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" };
316 #else
317 extern const char * const Weekdays[];
318 extern const char * const Months[];
319 #endif
320
321 #ifdef MAIN_C
322 /* so that global vars get included */
323 #include "mx.h"
324 #include "mutt_regex.h"
325 #include "buffy.h"
326 #include "sort.h"
327 #include "mutt_crypt.h"
328 #include "reldate.h"
329 #endif /* MAIN_C */