Move (un)?lists and (un)subscribe to MAlias.
[apps/madmutt.git] / globals.h
1 /*
2  * Copyright notice from original mutt:
3  * Copyright (C) 1996-2002 Michael R. Elkins <me@mutt.org>
4  *
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.
8  */
9 #ifndef _GLOBALS_H
10 #define _GLOBALS_H
11
12 #include <lib-lib/lib-lib.h>
13
14 WHERE void (*mutt_error) (const char *, ...) __attribute__((format(printf, 1, 2))) ;
15 WHERE void (*mutt_message) (const char *, ...) __attribute__((format(printf, 1, 2))) ;
16
17 WHERE CONTEXT *Context;
18
19 WHERE char Errorbuf[STRING];
20 WHERE char AttachmentMarker[STRING];
21
22 WHERE char Quotebuf[STRING];
23
24 WHERE address_t *From;
25
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;
33 WHERE char *DateFmt;
34 WHERE char *DisplayFilter;
35 WHERE char *EditorHeaders;
36 WHERE char *FileCharset;
37 WHERE char *FolderFormat;
38 WHERE char *ForwFmt;
39 WHERE char *Fqdn;
40 WHERE char *HdrFmt;
41
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);
49 WHERE char *Inbox;
50 WHERE char *Ispell;
51 WHERE char *Locale;
52 WHERE char *MailcapPath;
53 WHERE char *Maildir;
54
55 #ifdef USE_HCACHE
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;
63 WHERE char *MhUnseen;
64 WHERE char *MsgFmt;
65 WHERE char *MsgIdFormat;
66
67 WHERE rx_t AttachRemindRegexp;
68 WHERE rx_t Mask;
69 WHERE rx_t QuoteRegexp;
70 WHERE rx_t ReplyRegexp;
71 WHERE rx_t Smileys;
72 WHERE rx_t StripWasRegexp;
73
74 WHERE char *Preconnect INITVAL (NULL);
75 WHERE char *Tunnel INITVAL (NULL);
76 WHERE short NetInc;
77
78 WHERE char *Mixmaster;
79 WHERE char *MixEntryFormat;
80
81 WHERE char *OperatingSystem INITVAL (NULL);
82
83 WHERE char *Muttrc INITVAL (NULL);
84
85 #ifdef USE_NNTP
86 WHERE char *NewsCacheDir;
87 WHERE char *GroupFormat;
88 WHERE char *Inews;
89 WHERE char *NewsServer;
90 WHERE char *NntpUser;
91 WHERE char *NntpPass;
92 WHERE char *NewsRc;
93 #endif
94 WHERE char *Outbox;
95 WHERE char *Pager;
96 WHERE char *PagerFmt;
97 WHERE char *PipeSep;
98
99 WHERE char *PopAuthenticators INITVAL (NULL);
100 WHERE short PopCheckTimeout;
101 WHERE char *PopHost;
102 WHERE char *PopPass INITVAL (NULL);
103 WHERE char *PopUser INITVAL (NULL);
104
105 WHERE char *PostIndentString;
106 WHERE char *Postponed;
107 WHERE char *Prefix;
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;
117
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;
124 #endif
125 WHERE char *Spoolfile;
126
127 #if defined(USE_SSL) || defined(USE_GNUTLS)
128 WHERE char *SslCertFile INITVAL (NULL);
129 #endif
130 #if defined(USE_SSL)
131 WHERE char *SslEntropyFile INITVAL (NULL);
132 #endif
133 #ifdef USE_SSL
134 WHERE char *SslClientCert INITVAL (NULL);
135 WHERE string_list_t *SslSessionCerts INITVAL (NULL);
136 #endif
137 #ifdef USE_GNUTLS
138 WHERE short SslDHPrimeBits;
139 WHERE char *SslCACertFile INITVAL (NULL);
140 #endif
141 WHERE char *StChars;
142 WHERE char *Status;
143 WHERE char *Tochars;
144 WHERE char *TrashPath;
145 WHERE char *XtermTitle;
146 WHERE char *XtermLeave;
147 WHERE char *XtermIcon;
148
149 WHERE char *CurrentFolder;
150 WHERE char *LastFolder;
151
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);
162
163 /* bit vector for boolean variables */
164 #ifdef MAIN_C
165 unsigned char Options[(OPTMAX + 7) / 8];
166 #else
167 extern unsigned char Options[];
168 #endif
169
170 /* bit vector for the yes/no/ask variable type */
171 #ifdef MAIN_C
172 unsigned char QuadOptions[(OPT_MAX * 2 + 7) / 8];
173 #else
174 extern unsigned char QuadOptions[];
175 #endif
176
177 #ifdef USE_NNTP
178 WHERE short NewsPollTimeout;
179 WHERE short NntpContext;
180 #endif
181
182 WHERE short ConnectTimeout;
183 WHERE short HistSize;
184 WHERE short MenuContext;
185 WHERE short PagerContext;
186 WHERE short PagerIndexLines;
187 WHERE short ReadInc;
188 WHERE short SleepTime INITVAL (1);
189 WHERE short Timeout;
190 WHERE short Umask INITVAL (0077);
191 WHERE short WrapMargin;
192 WHERE short WriteInc;
193 WHERE short MaxDispRecips;
194 WHERE short MaxLineLength;
195
196 WHERE short ScoreThresholdDelete;
197 WHERE short ScoreThresholdRead;
198 WHERE short ScoreThresholdFlag;
199
200 WHERE short DrawFullLine INITVAL (0);
201 WHERE short SidebarWidth;
202
203 WHERE short ImapKeepalive;
204 WHERE short ImapBuffyTimeout;
205
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);
210
211 WHERE int CurrentMenu;
212
213 WHERE string_list_t *UserHeader INITVAL (0);
214
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;
233
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;
252
253 #ifdef MAIN_C
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" };
258 #else
259 extern const char *Weekdays[];
260 extern const char *Months[];
261 #endif
262
263 #endif /* !_GLOBALS_H */