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 /* bit vector for boolean variables */
165 unsigned char Options[(OPTMAX + 7) / 8];
167 extern unsigned char Options[];
170 /* bit vector for the yes/no/ask variable type */
172 unsigned char QuadOptions[(OPT_MAX * 2 + 7) / 8];
174 extern unsigned char QuadOptions[];
178 WHERE short NewsPollTimeout;
179 WHERE short NntpContext;
182 WHERE short ConnectTimeout;
183 WHERE short HistSize;
184 WHERE short MenuContext;
185 WHERE short PagerContext;
186 WHERE short PagerIndexLines;
188 WHERE short SleepTime INITVAL (1);
190 WHERE short Umask INITVAL (0077);
191 WHERE short WrapMargin;
192 WHERE short WriteInc;
193 WHERE short MaxDispRecips;
194 WHERE short MaxLineLength;
196 WHERE short ScoreThresholdDelete;
197 WHERE short ScoreThresholdRead;
198 WHERE short ScoreThresholdFlag;
200 WHERE short DrawFullLine INITVAL (0);
201 WHERE short SidebarWidth;
203 WHERE short ImapKeepalive;
204 WHERE short ImapBuffyTimeout;
206 /* flags for received signals */
207 WHERE SIG_ATOMIC_VOLATILE_T SigAlrm INITVAL (0);
208 WHERE SIG_ATOMIC_VOLATILE_T SigInt INITVAL (0);
209 WHERE SIG_ATOMIC_VOLATILE_T SigWinch INITVAL (0);
211 WHERE int CurrentMenu;
213 WHERE string_list_t *UserHeader INITVAL (0);
215 /*-- formerly in pgp.h --*/
216 WHERE rx_t PgpGoodSign;
217 WHERE char *PgpSignAs;
218 WHERE short PgpTimeout;
219 WHERE char *PgpEntryFormat;
220 WHERE char *PgpClearSignCommand;
221 WHERE char *PgpDecodeCommand;
222 WHERE char *PgpVerifyCommand;
223 WHERE char *PgpDecryptCommand;
224 WHERE char *PgpSignCommand;
225 WHERE char *PgpEncryptSignCommand;
226 WHERE char *PgpEncryptOnlyCommand;
227 WHERE char *PgpImportCommand;
228 WHERE char *PgpExportCommand;
229 WHERE char *PgpVerifyKeyCommand;
230 WHERE char *PgpListSecringCommand;
231 WHERE char *PgpListPubringCommand;
232 WHERE char *PgpGetkeysCommand;
234 /*-- formerly in smime.h --*/
235 WHERE char *SmimeDefaultKey;
236 WHERE char *SmimeCryptAlg;
237 WHERE short SmimeTimeout;
238 WHERE char *SmimeCertificates;
239 WHERE char *SmimeKeys;
240 WHERE char *SmimeCALocation;
241 WHERE char *SmimeVerifyCommand;
242 WHERE char *SmimeVerifyOpaqueCommand;
243 WHERE char *SmimeDecryptCommand;
244 WHERE char *SmimeSignCommand;
245 WHERE char *SmimeSignOpaqueCommand;
246 WHERE char *SmimeEncryptCommand;
247 WHERE char *SmimeGetSignerCertCommand;
248 WHERE char *SmimePk7outCommand;
249 WHERE char *SmimeGetCertCommand;
250 WHERE char *SmimeImportCertCommand;
251 WHERE char *SmimeGetCertEmailCommand;
254 const char *Weekdays[] = { "Sun", "Mon", "Tue", "Wed", "Thu", "Fri", "Sat" };
255 const char *Months[] =
256 { "Jan", "Feb", "Mar", "Apr", "May", "Jun", "Jul", "Aug", "Sep", "Oct",
257 "Nov", "Dec", "ERR" };
259 extern const char *Weekdays[];
260 extern const char *Months[];
263 #endif /* !_GLOBALS_H */