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);
55 WHERE char *HeaderCache;
56 #if defined(HAVE_GDBM) || defined(HAVE_DB4)
57 WHERE char *HeaderCachePageSize;
58 #endif /* HAVE_GDBM || HAVE_DB4 */
59 #endif /* USE_HCACHE */
60 WHERE char *MhFlagged;
61 WHERE char *MhReplied;
64 WHERE char *MsgIdFormat;
66 WHERE rx_t AttachRemindRegexp;
68 WHERE rx_t QuoteRegexp;
69 WHERE rx_t ReplyRegexp;
71 WHERE rx_t StripWasRegexp;
73 WHERE char *Preconnect INITVAL (NULL);
74 WHERE char *Tunnel INITVAL (NULL);
77 WHERE char *Mixmaster;
78 WHERE char *MixEntryFormat;
79 WHERE char *Muttrc INITVAL (NULL);
82 WHERE char *NewsCacheDir;
83 WHERE char *GroupFormat;
85 WHERE char *NewsServer;
95 WHERE char *PopAuthenticators INITVAL (NULL);
96 WHERE short PopCheckTimeout;
98 WHERE char *PopPass INITVAL (NULL);
99 WHERE char *PopUser INITVAL (NULL);
101 WHERE char *PostIndentString;
102 WHERE char *Postponed;
104 WHERE char *PrintCmd;
105 WHERE char *QueryCmd;
106 WHERE char *Realname;
107 WHERE char *SidebarDelim;
108 WHERE char *SidebarNumberFormat;
109 WHERE char *SidebarBoundary;
110 WHERE char *Signature;
111 WHERE char *SignOffString;
112 WHERE char *SimpleSearch;
114 #if defined(USE_LIBESMTP)
115 WHERE char *SmtpAuthUser;
116 WHERE char *SmtpAuthPass;
117 WHERE char *SmtpHost;
118 WHERE unsigned short SmtpPort;
119 WHERE char *SmtpUseTLS;
121 WHERE char *Spoolfile;
123 #if defined(USE_SSL) || defined(USE_GNUTLS)
124 WHERE char *SslCertFile INITVAL (NULL);
127 WHERE char *SslEntropyFile INITVAL (NULL);
130 WHERE char *SslClientCert INITVAL (NULL);
131 WHERE string_list_t *SslSessionCerts INITVAL (NULL);
134 WHERE short SslDHPrimeBits;
135 WHERE char *SslCACertFile INITVAL (NULL);
140 WHERE char *TrashPath;
141 WHERE char *XtermTitle;
142 WHERE char *XtermLeave;
143 WHERE char *XtermIcon;
145 WHERE char *CurrentFolder;
146 WHERE char *LastFolder;
148 WHERE string_list_t *AttachAllow INITVAL(0);
149 WHERE string_list_t *AttachExclude INITVAL(0);
150 WHERE string_list_t *InlineAllow INITVAL(0);
151 WHERE string_list_t *InlineExclude INITVAL(0);
152 WHERE string_list_t *HeaderOrderList INITVAL (0);
153 WHERE string_list_t *Ignore INITVAL (0);
154 WHERE string_list_t *UnIgnore INITVAL (0);
156 /* bit vector for boolean variables */
157 WHERE unsigned char Options[(OPTMAX + 7) / 8];
159 /* bit vector for the yes/no/ask variable type */
160 WHERE unsigned char QuadOptions[(OPT_MAX * 2 + 7) / 8];
163 WHERE short NewsPollTimeout;
164 WHERE short NntpContext;
167 WHERE short ConnectTimeout;
168 WHERE short HistSize;
169 WHERE short MenuContext;
170 WHERE short PagerContext;
171 WHERE short PagerIndexLines;
173 WHERE short SleepTime INITVAL (1);
175 WHERE short Umask INITVAL (0077);
176 WHERE short WrapMargin;
177 WHERE short WriteInc;
178 WHERE short MaxDispRecips;
179 WHERE short MaxLineLength;
181 WHERE short ScoreThresholdDelete;
182 WHERE short ScoreThresholdRead;
183 WHERE short ScoreThresholdFlag;
185 WHERE short DrawFullLine INITVAL (0);
186 WHERE short SidebarWidth;
188 WHERE short ImapKeepalive;
189 WHERE short ImapBuffyTimeout;
191 /* flags for received signals */
192 WHERE SIG_ATOMIC_VOLATILE_T SigAlrm INITVAL (0);
193 WHERE SIG_ATOMIC_VOLATILE_T SigInt INITVAL (0);
194 WHERE SIG_ATOMIC_VOLATILE_T SigWinch INITVAL (0);
196 WHERE int CurrentMenu;
198 WHERE string_list_t *UserHeader INITVAL (0);
200 /*-- formerly in pgp.h --*/
201 WHERE rx_t PgpGoodSign;
202 WHERE char *PgpSignAs;
203 WHERE short PgpTimeout;
204 WHERE char *PgpEntryFormat;
205 WHERE char *PgpClearSignCommand;
206 WHERE char *PgpDecodeCommand;
207 WHERE char *PgpVerifyCommand;
208 WHERE char *PgpDecryptCommand;
209 WHERE char *PgpSignCommand;
210 WHERE char *PgpEncryptSignCommand;
211 WHERE char *PgpEncryptOnlyCommand;
212 WHERE char *PgpImportCommand;
213 WHERE char *PgpExportCommand;
214 WHERE char *PgpVerifyKeyCommand;
215 WHERE char *PgpListSecringCommand;
216 WHERE char *PgpListPubringCommand;
217 WHERE char *PgpGetkeysCommand;
219 /*-- formerly in smime.h --*/
220 WHERE char *SmimeDefaultKey;
221 WHERE char *SmimeCryptAlg;
222 WHERE short SmimeTimeout;
223 WHERE char *SmimeCertificates;
224 WHERE char *SmimeKeys;
225 WHERE char *SmimeCALocation;
226 WHERE char *SmimeVerifyCommand;
227 WHERE char *SmimeVerifyOpaqueCommand;
228 WHERE char *SmimeDecryptCommand;
229 WHERE char *SmimeSignCommand;
230 WHERE char *SmimeSignOpaqueCommand;
231 WHERE char *SmimeEncryptCommand;
232 WHERE char *SmimeGetSignerCertCommand;
233 WHERE char *SmimePk7outCommand;
234 WHERE char *SmimeGetCertCommand;
235 WHERE char *SmimeImportCertCommand;
236 WHERE char *SmimeGetCertEmailCommand;
239 const char *Weekdays[] = { "Sun", "Mon", "Tue", "Wed", "Thu", "Fri", "Sat" };
240 const char *Months[] =
241 { "Jan", "Feb", "Mar", "Apr", "May", "Jun", "Jul", "Aug", "Sep", "Oct",
242 "Nov", "Dec", "ERR" };
244 extern const char *Weekdays[];
245 extern const char *Months[];
248 #endif /* !_GLOBALS_H */