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 *From;
26 WHERE char *AttachSep;
27 WHERE char *Attribution;
28 WHERE char *AttachFormat;
29 WHERE char *ComposeFormat;
30 WHERE char *ConfigCharset;
31 WHERE char *ContentType;
32 WHERE char *DefaultHook;
34 WHERE char *DisplayFilter;
35 WHERE char *EditorHeaders;
36 WHERE char *FileCharset;
37 WHERE char *FolderFormat;
42 WHERE char *ImapAuthenticators INITVAL (NULL);
43 WHERE char *ImapDelimChars INITVAL (NULL);
44 WHERE char *ImapHeaders;
45 WHERE char *ImapHomeNamespace INITVAL (NULL);
46 WHERE char *ImapLogin INITVAL (NULL);
47 WHERE char *ImapPass INITVAL (NULL);
48 WHERE char *ImapUser INITVAL (NULL);
52 WHERE char *MailcapPath;
56 WHERE char *HeaderCache;
57 #if defined(HAVE_GDBM) || defined(HAVE_DB4)
58 WHERE char *HeaderCachePageSize;
59 #endif /* HAVE_GDBM || HAVE_DB4 */
60 #endif /* USE_HCACHE */
61 WHERE char *MhFlagged;
62 WHERE char *MhReplied;
65 WHERE char *MsgIdFormat;
67 WHERE rx_t AttachRemindRegexp;
69 WHERE rx_t QuoteRegexp;
70 WHERE rx_t ReplyRegexp;
72 WHERE rx_t StripWasRegexp;
74 WHERE char *Preconnect INITVAL (NULL);
75 WHERE char *Tunnel INITVAL (NULL);
78 WHERE char *Mixmaster;
79 WHERE char *MixEntryFormat;
81 WHERE char *OperatingSystem INITVAL (NULL);
83 WHERE char *Muttrc INITVAL (NULL);
86 WHERE char *NewsCacheDir;
87 WHERE char *GroupFormat;
89 WHERE char *NewsServer;
99 WHERE char *PopAuthenticators INITVAL (NULL);
100 WHERE short PopCheckTimeout;
102 WHERE char *PopPass INITVAL (NULL);
103 WHERE char *PopUser INITVAL (NULL);
105 WHERE char *PostIndentString;
106 WHERE char *Postponed;
108 WHERE char *PrintCmd;
109 WHERE char *QueryCmd;
110 WHERE char *Realname;
111 WHERE char *SidebarDelim;
112 WHERE char *SidebarNumberFormat;
113 WHERE char *SidebarBoundary;
114 WHERE char *Signature;
115 WHERE char *SignOffString;
116 WHERE char *SimpleSearch;
118 #if defined(USE_LIBESMTP)
119 WHERE char *SmtpAuthUser;
120 WHERE char *SmtpAuthPass;
121 WHERE char *SmtpHost;
122 WHERE unsigned short SmtpPort;
123 WHERE char *SmtpUseTLS;
125 WHERE char *Spoolfile;
127 #if defined(USE_SSL) || defined(USE_GNUTLS)
128 WHERE char *SslCertFile INITVAL (NULL);
131 WHERE char *SslEntropyFile INITVAL (NULL);
134 WHERE char *SslClientCert INITVAL (NULL);
135 WHERE string_list_t *SslSessionCerts INITVAL (NULL);
138 WHERE short SslDHPrimeBits;
139 WHERE char *SslCACertFile INITVAL (NULL);
144 WHERE char *TrashPath;
145 WHERE char *XtermTitle;
146 WHERE char *XtermLeave;
147 WHERE char *XtermIcon;
149 WHERE char *CurrentFolder;
150 WHERE char *LastFolder;
152 WHERE string_list_t *AutoViewList INITVAL (0);
153 WHERE string_list_t *AlternativeOrderList INITVAL (0);
154 WHERE string_list_t *AttachAllow INITVAL(0);
155 WHERE string_list_t *AttachExclude INITVAL(0);
156 WHERE string_list_t *InlineAllow INITVAL(0);
157 WHERE string_list_t *InlineExclude INITVAL(0);
158 WHERE string_list_t *HeaderOrderList INITVAL (0);
159 WHERE string_list_t *Ignore INITVAL (0);
160 WHERE string_list_t *MimeLookupList INITVAL (0);
161 WHERE string_list_t *UnIgnore INITVAL (0);
163 WHERE rx_t *Alternates INITVAL (0);
164 WHERE rx_t *UnAlternates INITVAL (0);
165 WHERE rx_t *MailLists INITVAL (0);
166 WHERE rx_t *UnMailLists INITVAL (0);
167 WHERE rx_t *SubscribedLists INITVAL (0);
168 WHERE rx_t *UnSubscribedLists INITVAL (0);
170 /* bit vector for boolean variables */
172 unsigned char Options[(OPTMAX + 7) / 8];
174 extern unsigned char Options[];
177 /* bit vector for the yes/no/ask variable type */
179 unsigned char QuadOptions[(OPT_MAX * 2 + 7) / 8];
181 extern unsigned char QuadOptions[];
185 WHERE short NewsPollTimeout;
186 WHERE short NntpContext;
189 WHERE short ConnectTimeout;
190 WHERE short HistSize;
191 WHERE short MenuContext;
192 WHERE short PagerContext;
193 WHERE short PagerIndexLines;
195 WHERE short SleepTime INITVAL (1);
197 WHERE short Umask INITVAL (0077);
198 WHERE short WrapMargin;
199 WHERE short WriteInc;
200 WHERE short MaxDispRecips;
201 WHERE short MaxLineLength;
203 WHERE short ScoreThresholdDelete;
204 WHERE short ScoreThresholdRead;
205 WHERE short ScoreThresholdFlag;
207 WHERE short DrawFullLine INITVAL (0);
208 WHERE short SidebarWidth;
210 WHERE short ImapKeepalive;
211 WHERE short ImapBuffyTimeout;
213 /* flags for received signals */
214 WHERE SIG_ATOMIC_VOLATILE_T SigAlrm INITVAL (0);
215 WHERE SIG_ATOMIC_VOLATILE_T SigInt INITVAL (0);
216 WHERE SIG_ATOMIC_VOLATILE_T SigWinch INITVAL (0);
218 WHERE int CurrentMenu;
220 WHERE string_list_t *UserHeader INITVAL (0);
222 /*-- formerly in pgp.h --*/
223 WHERE rx_t PgpGoodSign;
224 WHERE char *PgpSignAs;
225 WHERE short PgpTimeout;
226 WHERE char *PgpEntryFormat;
227 WHERE char *PgpClearSignCommand;
228 WHERE char *PgpDecodeCommand;
229 WHERE char *PgpVerifyCommand;
230 WHERE char *PgpDecryptCommand;
231 WHERE char *PgpSignCommand;
232 WHERE char *PgpEncryptSignCommand;
233 WHERE char *PgpEncryptOnlyCommand;
234 WHERE char *PgpImportCommand;
235 WHERE char *PgpExportCommand;
236 WHERE char *PgpVerifyKeyCommand;
237 WHERE char *PgpListSecringCommand;
238 WHERE char *PgpListPubringCommand;
239 WHERE char *PgpGetkeysCommand;
241 /*-- formerly in smime.h --*/
242 WHERE char *SmimeDefaultKey;
243 WHERE char *SmimeCryptAlg;
244 WHERE short SmimeTimeout;
245 WHERE char *SmimeCertificates;
246 WHERE char *SmimeKeys;
247 WHERE char *SmimeCALocation;
248 WHERE char *SmimeVerifyCommand;
249 WHERE char *SmimeVerifyOpaqueCommand;
250 WHERE char *SmimeDecryptCommand;
251 WHERE char *SmimeSignCommand;
252 WHERE char *SmimeSignOpaqueCommand;
253 WHERE char *SmimeEncryptCommand;
254 WHERE char *SmimeGetSignerCertCommand;
255 WHERE char *SmimePk7outCommand;
256 WHERE char *SmimeGetCertCommand;
257 WHERE char *SmimeImportCertCommand;
258 WHERE char *SmimeGetCertEmailCommand;
261 const char *Weekdays[] = { "Sun", "Mon", "Tue", "Wed", "Thu", "Fri", "Sat" };
262 const char *Months[] =
263 { "Jan", "Feb", "Mar", "Apr", "May", "Jun", "Jul", "Aug", "Sep", "Oct",
264 "Nov", "Dec", "ERR" };
266 extern const char *Weekdays[];
267 extern const char *Months[];
270 #endif /* !_GLOBALS_H */