2 * Copyright notice from original mutt:
3 * Copyright (C) 1996-2002 Michael R. Elkins <me@mutt.org>
5 * This file is part of mutt-ng, see http://www.muttng.org/.
6 * It's licensed under the GNU General Public License,
7 * please see the file GPL in the top level source directory.
12 #include <lib-lib/lib-lib.h>
14 WHERE void (*mutt_error) (const char *, ...) __attribute__((format(printf, 1, 2))) ;
15 WHERE void (*mutt_message) (const char *, ...) __attribute__((format(printf, 1, 2))) ;
17 WHERE CONTEXT *Context;
19 WHERE char Errorbuf[STRING];
20 WHERE char AttachmentMarker[STRING];
22 WHERE char Quotebuf[STRING];
24 WHERE address_t *EnvFrom;
25 WHERE address_t *From;
27 WHERE char *AssumedCharset;
28 WHERE char *AttachSep;
29 WHERE char *Attribution;
30 WHERE char *AttachFormat;
31 WHERE char *ComposeFormat;
32 WHERE char *ConfigCharset;
33 WHERE char *ContentType;
34 WHERE char *DefaultHook;
36 WHERE char *DisplayFilter;
37 WHERE char *EditorHeaders;
38 WHERE char *FileCharset;
39 WHERE char *FolderFormat;
45 WHERE char *ImapAuthenticators INITVAL (NULL);
46 WHERE char *ImapDelimChars INITVAL (NULL);
47 WHERE char *ImapHeaders;
48 WHERE char *ImapHomeNamespace INITVAL (NULL);
49 WHERE char *ImapLogin INITVAL (NULL);
50 WHERE char *ImapPass INITVAL (NULL);
51 WHERE char *ImapUser INITVAL (NULL);
55 WHERE char *MailcapPath;
59 WHERE char *HeaderCache;
60 #if defined(HAVE_GDBM) || defined(HAVE_DB4)
61 WHERE char *HeaderCachePageSize;
62 #endif /* HAVE_GDBM || HAVE_DB4 */
63 #endif /* USE_HCACHE */
64 WHERE char *MhFlagged;
65 WHERE char *MhReplied;
68 WHERE char *MsgIdFormat;
70 WHERE rx_t AttachRemindRegexp;
72 WHERE rx_t QuoteRegexp;
73 WHERE rx_t ReplyRegexp;
75 WHERE rx_t StripWasRegexp;
77 WHERE char *Preconnect INITVAL (NULL);
78 WHERE char *Tunnel INITVAL (NULL);
81 WHERE char *Mixmaster;
82 WHERE char *MixEntryFormat;
84 WHERE char *OperatingSystem INITVAL (NULL);
86 WHERE char *Muttrc INITVAL (NULL);
89 WHERE char *NewsCacheDir;
90 WHERE char *GroupFormat;
92 WHERE char *NewsServer;
102 WHERE char *PopAuthenticators INITVAL (NULL);
103 WHERE short PopCheckTimeout;
105 WHERE char *PopPass INITVAL (NULL);
106 WHERE char *PopUser INITVAL (NULL);
108 WHERE char *PostIndentString;
109 WHERE char *Postponed;
111 WHERE char *PrintCmd;
112 WHERE char *QueryCmd;
113 WHERE char *Realname;
114 WHERE char *SendCharset;
115 WHERE char *SidebarDelim;
116 WHERE char *SidebarNumberFormat;
117 WHERE char *SidebarBoundary;
118 WHERE char *Signature;
119 WHERE char *SignOffString;
120 WHERE char *SimpleSearch;
122 #if defined(USE_LIBESMTP)
123 WHERE char *SmtpAuthUser;
124 WHERE char *SmtpAuthPass;
125 WHERE char *SmtpHost;
126 WHERE unsigned short SmtpPort;
127 WHERE char *SmtpUseTLS;
129 WHERE char *Spoolfile;
132 #if defined(USE_SSL) || defined(USE_GNUTLS)
133 WHERE char *SslCertFile INITVAL (NULL);
136 WHERE char *SslEntropyFile INITVAL (NULL);
139 WHERE char *SslClientCert INITVAL (NULL);
140 WHERE string_list_t *SslSessionCerts INITVAL (NULL);
143 WHERE short SslDHPrimeBits;
144 WHERE char *SslCACertFile INITVAL (NULL);
149 WHERE char *TrashPath;
150 WHERE char *XtermTitle;
151 WHERE char *XtermLeave;
152 WHERE char *XtermIcon;
154 WHERE char *CurrentFolder;
155 WHERE char *LastFolder;
157 WHERE string_list_t *AutoViewList INITVAL (0);
158 WHERE string_list_t *AlternativeOrderList INITVAL (0);
159 WHERE string_list_t *AttachAllow INITVAL(0);
160 WHERE string_list_t *AttachExclude INITVAL(0);
161 WHERE string_list_t *InlineAllow INITVAL(0);
162 WHERE string_list_t *InlineExclude INITVAL(0);
163 WHERE string_list_t *HeaderOrderList INITVAL (0);
164 WHERE string_list_t *Ignore INITVAL (0);
165 WHERE string_list_t *MimeLookupList INITVAL (0);
166 WHERE string_list_t *UnIgnore INITVAL (0);
168 WHERE rx_t *Alternates INITVAL (0);
169 WHERE rx_t *UnAlternates INITVAL (0);
170 WHERE rx_t *MailLists INITVAL (0);
171 WHERE rx_t *UnMailLists INITVAL (0);
172 WHERE rx_t *SubscribedLists INITVAL (0);
173 WHERE rx_t *UnSubscribedLists INITVAL (0);
174 WHERE rx_t *SpamList INITVAL (0);
175 WHERE rx_t *NoSpamList INITVAL (0);
177 /* bit vector for boolean variables */
179 unsigned char Options[(OPTMAX + 7) / 8];
181 extern unsigned char Options[];
184 /* bit vector for the yes/no/ask variable type */
186 unsigned char QuadOptions[(OPT_MAX * 2 + 7) / 8];
188 extern unsigned char QuadOptions[];
192 WHERE short NewsPollTimeout;
193 WHERE short NntpContext;
196 WHERE short ConnectTimeout;
197 WHERE short HistSize;
198 WHERE short MenuContext;
199 WHERE short PagerContext;
200 WHERE short PagerIndexLines;
202 WHERE short SendmailWait;
203 WHERE short SleepTime INITVAL (1);
205 WHERE short Umask INITVAL (0077);
206 WHERE short WrapMargin;
207 WHERE short WriteInc;
208 WHERE short MaxDispRecips;
209 WHERE short MaxLineLength;
211 WHERE short ScoreThresholdDelete;
212 WHERE short ScoreThresholdRead;
213 WHERE short ScoreThresholdFlag;
215 WHERE short DrawFullLine INITVAL (0);
216 WHERE short SidebarWidth;
218 WHERE short ImapKeepalive;
219 WHERE short ImapBuffyTimeout;
221 /* flags for received signals */
222 WHERE SIG_ATOMIC_VOLATILE_T SigAlrm INITVAL (0);
223 WHERE SIG_ATOMIC_VOLATILE_T SigInt INITVAL (0);
224 WHERE SIG_ATOMIC_VOLATILE_T SigWinch INITVAL (0);
226 WHERE int CurrentMenu;
228 WHERE string_list_t *UserHeader INITVAL (0);
230 /*-- formerly in pgp.h --*/
231 WHERE rx_t PgpGoodSign;
232 WHERE char *PgpSignAs;
233 WHERE short PgpTimeout;
234 WHERE char *PgpEntryFormat;
235 WHERE char *PgpClearSignCommand;
236 WHERE char *PgpDecodeCommand;
237 WHERE char *PgpVerifyCommand;
238 WHERE char *PgpDecryptCommand;
239 WHERE char *PgpSignCommand;
240 WHERE char *PgpEncryptSignCommand;
241 WHERE char *PgpEncryptOnlyCommand;
242 WHERE char *PgpImportCommand;
243 WHERE char *PgpExportCommand;
244 WHERE char *PgpVerifyKeyCommand;
245 WHERE char *PgpListSecringCommand;
246 WHERE char *PgpListPubringCommand;
247 WHERE char *PgpGetkeysCommand;
249 /*-- formerly in smime.h --*/
250 WHERE char *SmimeDefaultKey;
251 WHERE char *SmimeCryptAlg;
252 WHERE short SmimeTimeout;
253 WHERE char *SmimeCertificates;
254 WHERE char *SmimeKeys;
255 WHERE char *SmimeCALocation;
256 WHERE char *SmimeVerifyCommand;
257 WHERE char *SmimeVerifyOpaqueCommand;
258 WHERE char *SmimeDecryptCommand;
259 WHERE char *SmimeSignCommand;
260 WHERE char *SmimeSignOpaqueCommand;
261 WHERE char *SmimeEncryptCommand;
262 WHERE char *SmimeGetSignerCertCommand;
263 WHERE char *SmimePk7outCommand;
264 WHERE char *SmimeGetCertCommand;
265 WHERE char *SmimeImportCertCommand;
266 WHERE char *SmimeGetCertEmailCommand;
269 const char *Weekdays[] = { "Sun", "Mon", "Tue", "Wed", "Thu", "Fri", "Sat" };
270 const char *Months[] =
271 { "Jan", "Feb", "Mar", "Apr", "May", "Jun", "Jul", "Aug", "Sep", "Oct",
272 "Nov", "Dec", "ERR" };
274 extern const char *Weekdays[];
275 extern const char *Months[];
278 #endif /* !_GLOBALS_H */