Andreas Krennmair:
[apps/madmutt.git] / globals.h
1 /*
2  * Copyright (C) 1996-2002 Michael R. Elkins <me@mutt.org>
3  * 
4  *     This program is free software; you can redistribute it and/or modify
5  *     it under the terms of the GNU General Public License as published by
6  *     the Free Software Foundation; either version 2 of the License, or
7  *     (at your option) any later version.
8  * 
9  *     This program is distributed in the hope that it will be useful,
10  *     but WITHOUT ANY WARRANTY; without even the implied warranty of
11  *     MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
12  *     GNU General Public License for more details.
13  * 
14  *     You should have received a copy of the GNU General Public License
15  *     along with this program; if not, write to the Free Software
16  *     Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111, USA.
17  */ 
18
19 WHERE void (*mutt_error) (const char *, ...);
20 WHERE void (*mutt_message) (const char *, ...);
21
22 WHERE CONTEXT *Context;
23
24 WHERE char Errorbuf[STRING];
25 WHERE char AttachmentMarker[STRING];
26
27 WHERE char Quotebuf[SHORT_STRING];
28
29 #if defined(DL_STANDALONE) && defined(USE_DOTLOCK)
30 WHERE char *MuttDotlock;
31 #endif
32
33 WHERE ADDRESS *From;
34
35 WHERE char *AliasFile;
36 WHERE char *AliasFmt;
37 WHERE char *AttachSep;
38 WHERE char *Attribution;
39 WHERE char *AttachFormat;
40 WHERE char *Charset;
41 WHERE char *ComposeFormat;
42 WHERE char *ContentType;
43 WHERE char *DefaultHook;
44 WHERE char *DateFmt;
45 WHERE char *DisplayFilter;
46 WHERE char *DsnNotify;
47 WHERE char *DsnReturn;
48 WHERE char *Editor;
49 WHERE char *EscChar;
50 WHERE char *FolderFormat;
51 WHERE char *ForwFmt;
52 WHERE char *Fqdn;
53 WHERE char *HdrFmt;
54 WHERE char *Homedir;
55 WHERE char *Hostname;
56 #ifdef USE_IMAP
57 WHERE char *ImapAuthenticators INITVAL (NULL);
58 WHERE char *ImapDelimChars INITVAL (NULL);
59 WHERE char *ImapHomeNamespace INITVAL (NULL);
60 WHERE char *ImapPass INITVAL (NULL);
61 WHERE char *ImapUser INITVAL (NULL);
62 #endif
63 WHERE char *Inbox;
64 WHERE char *Ispell;
65 WHERE char *Locale;
66 WHERE char *MailcapPath;
67 WHERE char *Maildir;
68 WHERE char *MhFlagged;
69 WHERE char *MhReplied;
70 WHERE char *MhUnseen;
71 WHERE char *MsgFmt;
72
73 #ifdef USE_SOCKET
74 WHERE char *Preconnect INITVAL (NULL);
75 WHERE char *Tunnel INITVAL (NULL);
76 #endif /* USE_SOCKET */
77
78 #ifdef MIXMASTER
79 WHERE char *Mixmaster;
80 WHERE char *MixEntryFormat;
81 #endif
82
83 WHERE char *Muttrc INITVAL (NULL);
84 #ifdef USE_NNTP
85 WHERE char *NewsCacheDir;
86 WHERE char *GroupFormat;
87 WHERE char *Inews;
88 WHERE char *NewsServer;
89 WHERE char *NntpUser;
90 WHERE char *NntpPass;
91 WHERE char *NewsRc;
92 #endif
93 WHERE char *Outbox;
94 WHERE char *Pager;
95 WHERE char *PagerFmt;
96 WHERE char *PipeSep;
97 #ifdef USE_POP
98 WHERE char *PopAuthenticators INITVAL (NULL);
99 WHERE short PopCheckTimeout;
100 WHERE char *PopHost;
101 WHERE char *PopPass INITVAL (NULL);
102 WHERE char *PopUser INITVAL (NULL);
103 #endif
104 WHERE char *PostIndentString;
105 WHERE char *Postponed;
106 WHERE char *Prefix;
107 WHERE char *PrintCmd;
108 WHERE char *QueryCmd;
109 WHERE char *Realname;
110 WHERE char *SendCharset;
111 WHERE char *Sendmail;
112 WHERE char *Shell;
113 WHERE char *Signature;
114 WHERE char *SimpleSearch;
115 #if defined(USE_LIBESMTP)
116 WHERE char *SmtpAuthUser;
117 WHERE char *SmtpAuthPass;
118 WHERE char *SmtpHost;
119 WHERE unsigned short SmtpPort;
120 #endif
121 WHERE char *Spoolfile;
122 #if defined(USE_SSL) || defined(USE_NSS)
123 WHERE char *SslCertFile INITVAL (NULL);
124 WHERE char *SslEntropyFile INITVAL (NULL);
125 #endif
126 WHERE char *StChars;
127 WHERE char *Status;
128 WHERE char *Tempdir;
129 WHERE char *Tochars;
130 WHERE char *TrashPath;
131 WHERE char *Username;
132 WHERE char *Visual;
133 WHERE char *XtermTitle;
134 WHERE char *XtermIcon;
135
136 WHERE char *LastFolder;
137
138 WHERE LIST *AutoViewList INITVAL(0);
139 WHERE LIST *AlternativeOrderList INITVAL(0);
140 WHERE LIST *HeaderOrderList INITVAL(0);
141 WHERE LIST *Ignore INITVAL(0);
142 WHERE LIST *MimeLookupList INITVAL(0);
143 WHERE LIST *UnIgnore INITVAL(0);
144
145 WHERE RX_LIST *Alternates INITVAL(0);
146 WHERE RX_LIST *MailLists INITVAL(0);
147 WHERE RX_LIST *SubscribedLists INITVAL(0);
148
149 /* bit vector for boolean variables */
150 #ifdef MAIN_C
151 unsigned char Options[(OPTMAX + 7)/8];
152 #else
153 extern unsigned char Options[];
154 #endif
155
156 /* bit vector for the yes/no/ask variable type */
157 #ifdef MAIN_C
158 unsigned char QuadOptions[(OPT_MAX*2 + 7) / 8];
159 #else
160 extern unsigned char QuadOptions[];
161 #endif
162
163 WHERE unsigned short Counter INITVAL (0);
164
165 #ifdef USE_NNTP
166 WHERE short NewsPollTimeout;
167 WHERE short NntpContext;
168 #endif
169
170 WHERE short ConnectTimeout;
171 WHERE short HistSize;
172 WHERE short PagerContext;
173 WHERE short PagerIndexLines;
174 WHERE short ReadInc;
175 WHERE short SendmailWait;
176 WHERE short SleepTime INITVAL (1);
177 WHERE short Timeout;
178 WHERE short WrapMargin;
179 WHERE short WriteInc;
180
181 WHERE short ScoreThresholdDelete;
182 WHERE short ScoreThresholdRead;
183 WHERE short ScoreThresholdFlag;
184
185 WHERE struct buffy_t *CurBuffy INITVAL(0);
186 WHERE short DrawFullLine INITVAL(0);
187 WHERE short SidebarWidth;
188 #ifdef USE_IMAP
189 WHERE short ImapKeepalive;
190 #endif
191
192 /* flags for received signals */
193 WHERE SIG_ATOMIC_VOLATILE_T SigAlrm INITVAL (0);
194 WHERE SIG_ATOMIC_VOLATILE_T SigInt INITVAL (0);
195 WHERE SIG_ATOMIC_VOLATILE_T SigWinch INITVAL (0);
196
197 WHERE int CurrentMenu;
198
199 WHERE ALIAS *Aliases INITVAL (0);
200 WHERE LIST *UserHeader INITVAL (0);
201
202 /*-- formerly in pgp.h --*/
203 WHERE REGEXP PgpGoodSign;
204 WHERE char *PgpSignAs;
205 WHERE short PgpTimeout;
206 WHERE char *PgpEntryFormat;
207 WHERE char *PgpClearSignCommand;
208 WHERE char *PgpDecodeCommand;
209 WHERE char *PgpVerifyCommand;
210 WHERE char *PgpDecryptCommand;
211 WHERE char *PgpSignCommand;
212 WHERE char *PgpEncryptSignCommand;
213 WHERE char *PgpEncryptOnlyCommand;
214 WHERE char *PgpImportCommand;
215 WHERE char *PgpExportCommand;
216 WHERE char *PgpVerifyKeyCommand;
217 WHERE char *PgpListSecringCommand;
218 WHERE char *PgpListPubringCommand;
219 WHERE char *PgpGetkeysCommand;
220
221 /*-- formerly in smime.h --*/
222 WHERE char *SmimeDefaultKey;
223 WHERE char *SmimeCryptAlg;
224 WHERE short SmimeTimeout;
225 WHERE char *SmimeCertificates;
226 WHERE char *SmimeKeys;
227 WHERE char *SmimeCryptAlg;
228 WHERE char *SmimeCALocation;
229 WHERE char *SmimeVerifyCommand;
230 WHERE char *SmimeVerifyOpaqueCommand;
231 WHERE char *SmimeDecryptCommand;
232 WHERE char *SmimeSignCommand;
233 WHERE char *SmimeSignOpaqueCommand;
234 WHERE char *SmimeEncryptCommand;
235 WHERE char *SmimeGetSignerCertCommand;
236 WHERE char *SmimePk7outCommand;
237 WHERE char *SmimeGetCertCommand;
238 WHERE char *SmimeImportCertCommand;
239 WHERE char *SmimeGetCertEmailCommand;
240
241
242
243 #ifdef DEBUG
244 WHERE FILE *debugfile INITVAL (0);
245 WHERE int debuglevel INITVAL (0);
246 #endif
247
248 #ifdef MAIN_C
249 const char *Weekdays[] = { "Sun", "Mon", "Tue", "Wed", "Thu", "Fri", "Sat" };
250 const char *Months[] = { "Jan", "Feb", "Mar", "Apr", "May", "Jun", "Jul", "Aug", "Sep", "Oct", "Nov", "Dec", "ERR" };
251
252 const char *BodyTypes[] = { "x-unknown", "audio", "application", "image", "message", "model", "multipart", "text", "video" };
253 const char *BodyEncodings[] = { "x-unknown", "7bit", "8bit", "quoted-printable", "base64", "binary", "x-uuencoded" };
254 #else
255 extern const char *Weekdays[];
256 extern const char *Months[];
257 #endif
258
259 #ifdef MAIN_C
260 /* so that global vars get included */ 
261 #include "mx.h"
262 #include "mutt_regex.h"
263 #include "buffy.h"
264 #include "sort.h"
265 #include "mutt_crypt.h"
266 #endif /* MAIN_C */