wibble
[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 WHERE unsigned char Options[(OPTMAX + 7) / 8];
158
159 /* bit vector for the yes/no/ask variable type */
160 WHERE unsigned char QuadOptions[(OPT_MAX * 2 + 7) / 8];
161
162 #ifdef USE_NNTP
163 WHERE short NewsPollTimeout;
164 WHERE short NntpContext;
165 #endif
166
167 WHERE short ConnectTimeout;
168 WHERE short HistSize;
169 WHERE short MenuContext;
170 WHERE short PagerContext;
171 WHERE short PagerIndexLines;
172 WHERE short ReadInc;
173 WHERE short SleepTime INITVAL (1);
174 WHERE short Timeout;
175 WHERE short Umask INITVAL (0077);
176 WHERE short WrapMargin;
177 WHERE short WriteInc;
178 WHERE short MaxDispRecips;
179 WHERE short MaxLineLength;
180
181 WHERE short ScoreThresholdDelete;
182 WHERE short ScoreThresholdRead;
183 WHERE short ScoreThresholdFlag;
184
185 WHERE short DrawFullLine INITVAL (0);
186 WHERE short SidebarWidth;
187
188 WHERE short ImapKeepalive;
189 WHERE short ImapBuffyTimeout;
190
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);
195
196 WHERE int CurrentMenu;
197
198 WHERE string_list_t *UserHeader INITVAL (0);
199
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;
218
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;
237
238 #ifdef MAIN_C
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" };
243 #else
244 extern const char *Weekdays[];
245 extern const char *Months[];
246 #endif
247
248 #endif /* !_GLOBALS_H */