More things to the Mime package.
[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 *Maildir;
53
54 #ifdef USE_HCACHE
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;
62 WHERE char *MhUnseen;
63 WHERE char *MsgFmt;
64 WHERE char *MsgIdFormat;
65
66 WHERE rx_t AttachRemindRegexp;
67 WHERE rx_t Mask;
68 WHERE rx_t QuoteRegexp;
69 WHERE rx_t ReplyRegexp;
70 WHERE rx_t Smileys;
71 WHERE rx_t StripWasRegexp;
72
73 WHERE char *Preconnect INITVAL (NULL);
74 WHERE char *Tunnel INITVAL (NULL);
75 WHERE short NetInc;
76
77 WHERE char *Mixmaster;
78 WHERE char *MixEntryFormat;
79 WHERE char *Muttrc INITVAL (NULL);
80
81 #ifdef USE_NNTP
82 WHERE char *NewsCacheDir;
83 WHERE char *GroupFormat;
84 WHERE char *Inews;
85 WHERE char *NewsServer;
86 WHERE char *NntpUser;
87 WHERE char *NntpPass;
88 WHERE char *NewsRc;
89 #endif
90 WHERE char *Outbox;
91 WHERE char *Pager;
92 WHERE char *PagerFmt;
93 WHERE char *PipeSep;
94
95 WHERE char *PopAuthenticators INITVAL (NULL);
96 WHERE short PopCheckTimeout;
97 WHERE char *PopHost;
98 WHERE char *PopPass INITVAL (NULL);
99 WHERE char *PopUser INITVAL (NULL);
100
101 WHERE char *PostIndentString;
102 WHERE char *Postponed;
103 WHERE char *Prefix;
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;
113
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;
120 #endif
121 WHERE char *Spoolfile;
122
123 #if defined(USE_SSL) || defined(USE_GNUTLS)
124 WHERE char *SslCertFile INITVAL (NULL);
125 #endif
126 #if defined(USE_SSL)
127 WHERE char *SslEntropyFile INITVAL (NULL);
128 #endif
129 #ifdef USE_SSL
130 WHERE char *SslClientCert INITVAL (NULL);
131 WHERE string_list_t *SslSessionCerts INITVAL (NULL);
132 #endif
133 #ifdef USE_GNUTLS
134 WHERE short SslDHPrimeBits;
135 WHERE char *SslCACertFile INITVAL (NULL);
136 #endif
137 WHERE char *StChars;
138 WHERE char *Status;
139 WHERE char *Tochars;
140 WHERE char *TrashPath;
141 WHERE char *XtermTitle;
142 WHERE char *XtermLeave;
143 WHERE char *XtermIcon;
144
145 WHERE char *CurrentFolder;
146 WHERE char *LastFolder;
147
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);
155
156 /* bit vector for boolean variables */
157 #ifdef MAIN_C
158 unsigned char Options[(OPTMAX + 7) / 8];
159 #else
160 extern unsigned char Options[];
161 #endif
162
163 /* bit vector for the yes/no/ask variable type */
164 #ifdef MAIN_C
165 unsigned char QuadOptions[(OPT_MAX * 2 + 7) / 8];
166 #else
167 extern unsigned char QuadOptions[];
168 #endif
169
170 #ifdef USE_NNTP
171 WHERE short NewsPollTimeout;
172 WHERE short NntpContext;
173 #endif
174
175 WHERE short ConnectTimeout;
176 WHERE short HistSize;
177 WHERE short MenuContext;
178 WHERE short PagerContext;
179 WHERE short PagerIndexLines;
180 WHERE short ReadInc;
181 WHERE short SleepTime INITVAL (1);
182 WHERE short Timeout;
183 WHERE short Umask INITVAL (0077);
184 WHERE short WrapMargin;
185 WHERE short WriteInc;
186 WHERE short MaxDispRecips;
187 WHERE short MaxLineLength;
188
189 WHERE short ScoreThresholdDelete;
190 WHERE short ScoreThresholdRead;
191 WHERE short ScoreThresholdFlag;
192
193 WHERE short DrawFullLine INITVAL (0);
194 WHERE short SidebarWidth;
195
196 WHERE short ImapKeepalive;
197 WHERE short ImapBuffyTimeout;
198
199 /* flags for received signals */
200 WHERE SIG_ATOMIC_VOLATILE_T SigAlrm INITVAL (0);
201 WHERE SIG_ATOMIC_VOLATILE_T SigInt INITVAL (0);
202 WHERE SIG_ATOMIC_VOLATILE_T SigWinch INITVAL (0);
203
204 WHERE int CurrentMenu;
205
206 WHERE string_list_t *UserHeader INITVAL (0);
207
208 /*-- formerly in pgp.h --*/
209 WHERE rx_t PgpGoodSign;
210 WHERE char *PgpSignAs;
211 WHERE short PgpTimeout;
212 WHERE char *PgpEntryFormat;
213 WHERE char *PgpClearSignCommand;
214 WHERE char *PgpDecodeCommand;
215 WHERE char *PgpVerifyCommand;
216 WHERE char *PgpDecryptCommand;
217 WHERE char *PgpSignCommand;
218 WHERE char *PgpEncryptSignCommand;
219 WHERE char *PgpEncryptOnlyCommand;
220 WHERE char *PgpImportCommand;
221 WHERE char *PgpExportCommand;
222 WHERE char *PgpVerifyKeyCommand;
223 WHERE char *PgpListSecringCommand;
224 WHERE char *PgpListPubringCommand;
225 WHERE char *PgpGetkeysCommand;
226
227 /*-- formerly in smime.h --*/
228 WHERE char *SmimeDefaultKey;
229 WHERE char *SmimeCryptAlg;
230 WHERE short SmimeTimeout;
231 WHERE char *SmimeCertificates;
232 WHERE char *SmimeKeys;
233 WHERE char *SmimeCALocation;
234 WHERE char *SmimeVerifyCommand;
235 WHERE char *SmimeVerifyOpaqueCommand;
236 WHERE char *SmimeDecryptCommand;
237 WHERE char *SmimeSignCommand;
238 WHERE char *SmimeSignOpaqueCommand;
239 WHERE char *SmimeEncryptCommand;
240 WHERE char *SmimeGetSignerCertCommand;
241 WHERE char *SmimePk7outCommand;
242 WHERE char *SmimeGetCertCommand;
243 WHERE char *SmimeImportCertCommand;
244 WHERE char *SmimeGetCertEmailCommand;
245
246 #ifdef MAIN_C
247 const char *Weekdays[] = { "Sun", "Mon", "Tue", "Wed", "Thu", "Fri", "Sat" };
248 const char *Months[] =
249   { "Jan", "Feb", "Mar", "Apr", "May", "Jun", "Jul", "Aug", "Sep", "Oct",
250 "Nov", "Dec", "ERR" };
251 #else
252 extern const char *Weekdays[];
253 extern const char *Months[];
254 #endif
255
256 #endif /* !_GLOBALS_H */