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
134 WHERE char *LastFolder;
135
136 WHERE LIST *AutoViewList INITVAL(0);
137 WHERE LIST *AlternativeOrderList INITVAL(0);
138 WHERE LIST *HeaderOrderList INITVAL(0);
139 WHERE LIST *Ignore INITVAL(0);
140 WHERE LIST *MimeLookupList INITVAL(0);
141 WHERE LIST *UnIgnore INITVAL(0);
142
143 WHERE RX_LIST *Alternates INITVAL(0);
144 WHERE RX_LIST *MailLists INITVAL(0);
145 WHERE RX_LIST *SubscribedLists INITVAL(0);
146
147 /* bit vector for boolean variables */
148 #ifdef MAIN_C
149 unsigned char Options[(OPTMAX + 7)/8];
150 #else
151 extern unsigned char Options[];
152 #endif
153
154 /* bit vector for the yes/no/ask variable type */
155 #ifdef MAIN_C
156 unsigned char QuadOptions[(OPT_MAX*2 + 7) / 8];
157 #else
158 extern unsigned char QuadOptions[];
159 #endif
160
161 WHERE unsigned short Counter INITVAL (0);
162
163 #ifdef USE_NNTP
164 WHERE short NewsPollTimeout;
165 WHERE short NntpContext;
166 #endif
167
168 WHERE short ConnectTimeout;
169 WHERE short HistSize;
170 WHERE short PagerContext;
171 WHERE short PagerIndexLines;
172 WHERE short ReadInc;
173 WHERE short SendmailWait;
174 WHERE short SleepTime INITVAL (1);
175 WHERE short Timeout;
176 WHERE short WrapMargin;
177 WHERE short WriteInc;
178
179 WHERE short ScoreThresholdDelete;
180 WHERE short ScoreThresholdRead;
181 WHERE short ScoreThresholdFlag;
182
183 WHERE struct buffy_t *CurBuffy INITVAL(0);
184 WHERE short DrawFullLine INITVAL(0);
185 WHERE short SidebarWidth;
186 #ifdef USE_IMAP
187 WHERE short ImapKeepalive;
188 #endif
189
190 /* flags for received signals */
191 WHERE SIG_ATOMIC_VOLATILE_T SigAlrm INITVAL (0);
192 WHERE SIG_ATOMIC_VOLATILE_T SigInt INITVAL (0);
193 WHERE SIG_ATOMIC_VOLATILE_T SigWinch INITVAL (0);
194
195 WHERE int CurrentMenu;
196
197 WHERE ALIAS *Aliases INITVAL (0);
198 WHERE LIST *UserHeader INITVAL (0);
199
200 /*-- formerly in pgp.h --*/
201 WHERE REGEXP 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 *SmimeCryptAlg;
226 WHERE char *SmimeCALocation;
227 WHERE char *SmimeVerifyCommand;
228 WHERE char *SmimeVerifyOpaqueCommand;
229 WHERE char *SmimeDecryptCommand;
230 WHERE char *SmimeSignCommand;
231 WHERE char *SmimeSignOpaqueCommand;
232 WHERE char *SmimeEncryptCommand;
233 WHERE char *SmimeGetSignerCertCommand;
234 WHERE char *SmimePk7outCommand;
235 WHERE char *SmimeGetCertCommand;
236 WHERE char *SmimeImportCertCommand;
237 WHERE char *SmimeGetCertEmailCommand;
238
239
240
241 #ifdef DEBUG
242 WHERE FILE *debugfile INITVAL (0);
243 WHERE int debuglevel INITVAL (0);
244 #endif
245
246 #ifdef MAIN_C
247 const char *Weekdays[] = { "Sun", "Mon", "Tue", "Wed", "Thu", "Fri", "Sat" };
248 const char *Months[] = { "Jan", "Feb", "Mar", "Apr", "May", "Jun", "Jul", "Aug", "Sep", "Oct", "Nov", "Dec", "ERR" };
249
250 const char *BodyTypes[] = { "x-unknown", "audio", "application", "image", "message", "model", "multipart", "text", "video" };
251 const char *BodyEncodings[] = { "x-unknown", "7bit", "8bit", "quoted-printable", "base64", "binary", "x-uuencoded" };
252 #else
253 extern const char *Weekdays[];
254 extern const char *Months[];
255 #endif
256
257 #ifdef MAIN_C
258 /* so that global vars get included */ 
259 #include "mx.h"
260 #include "mutt_regex.h"
261 #include "buffy.h"
262 #include "sort.h"
263 #include "mutt_crypt.h"
264 #endif /* MAIN_C */