cruft--
[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 char *AttachSep;
25 WHERE char *Attribution;
26 WHERE char *AttachFormat;
27 WHERE char *ComposeFormat;
28 WHERE char *ConfigCharset;
29 WHERE char *ContentType;
30 WHERE char *DefaultHook;
31 WHERE char *DateFmt;
32 WHERE char *DisplayFilter;
33 WHERE char *EditorHeaders;
34 WHERE char *FileCharset;
35 WHERE char *FolderFormat;
36 WHERE char *ForwFmt;
37 WHERE char *HdrFmt;
38
39 WHERE char *ImapAuthenticators INITVAL (NULL);
40 WHERE char *ImapDelimChars INITVAL (NULL);
41 WHERE char *ImapHeaders;
42 WHERE char *ImapHomeNamespace INITVAL (NULL);
43 WHERE char *ImapLogin INITVAL (NULL);
44 WHERE char *ImapPass INITVAL (NULL);
45 WHERE char *ImapUser INITVAL (NULL);
46 WHERE char *Inbox;
47 WHERE char *Locale;
48 WHERE char *Maildir;
49
50 #ifdef USE_HCACHE
51 WHERE char *HeaderCache;
52 #if defined(HAVE_GDBM) || defined(HAVE_DB4)
53 WHERE char *HeaderCachePageSize;
54 #endif /* HAVE_GDBM || HAVE_DB4 */
55 #endif /* USE_HCACHE */
56 WHERE char *MhFlagged;
57 WHERE char *MhReplied;
58 WHERE char *MhUnseen;
59 WHERE char *MsgFmt;
60 WHERE char *MsgIdFormat;
61
62 WHERE rx_t AttachRemindRegexp;
63 WHERE rx_t Mask;
64 WHERE rx_t QuoteRegexp;
65 WHERE rx_t ReplyRegexp;
66 WHERE rx_t Smileys;
67 WHERE rx_t StripWasRegexp;
68
69 WHERE char *Preconnect INITVAL (NULL);
70 WHERE char *Tunnel INITVAL (NULL);
71 WHERE short NetInc;
72
73 WHERE char *Mixmaster;
74 WHERE char *MixEntryFormat;
75 WHERE char *Muttrc INITVAL (NULL);
76
77 #ifdef USE_NNTP
78 WHERE char *NewsCacheDir;
79 WHERE char *GroupFormat;
80 WHERE char *Inews;
81 WHERE char *NewsServer;
82 WHERE char *NntpUser;
83 WHERE char *NntpPass;
84 WHERE char *NewsRc;
85 #endif
86 WHERE char *Pager;
87 WHERE char *PagerFmt;
88 WHERE char *PipeSep;
89
90 WHERE char *PopAuthenticators INITVAL (NULL);
91 WHERE short PopCheckTimeout;
92 WHERE char *PopHost;
93 WHERE char *PopPass INITVAL (NULL);
94 WHERE char *PopUser INITVAL (NULL);
95
96 WHERE char *PostIndentString;
97 WHERE char *Postponed;
98 WHERE char *Prefix;
99 WHERE char *PrintCmd;
100 WHERE char *QueryCmd;
101 WHERE char *Realname;
102 WHERE char *SidebarDelim;
103 WHERE char *SidebarNumberFormat;
104 WHERE char *SidebarBoundary;
105 WHERE char *SignOffString;
106 WHERE char *SimpleSearch;
107
108 #if defined(USE_LIBESMTP)
109 WHERE char *SmtpAuthUser;
110 WHERE char *SmtpAuthPass;
111 WHERE char *SmtpHost;
112 WHERE unsigned short SmtpPort;
113 WHERE char *SmtpUseTLS;
114 #endif
115 WHERE char *Spoolfile;
116
117 #if defined(USE_SSL) || defined(USE_GNUTLS)
118 WHERE char *SslCertFile INITVAL (NULL);
119 #endif
120 #if defined(USE_SSL)
121 WHERE char *SslEntropyFile INITVAL (NULL);
122 #endif
123 #ifdef USE_SSL
124 WHERE char *SslClientCert INITVAL (NULL);
125 WHERE string_list_t *SslSessionCerts INITVAL (NULL);
126 #endif
127 #ifdef USE_GNUTLS
128 WHERE short SslDHPrimeBits;
129 WHERE char *SslCACertFile INITVAL (NULL);
130 #endif
131 WHERE char *StChars;
132 WHERE char *Status;
133 WHERE char *Tochars;
134 WHERE char *TrashPath;
135 WHERE char *XtermTitle;
136 WHERE char *XtermLeave;
137 WHERE char *XtermIcon;
138
139 WHERE char *CurrentFolder;
140 WHERE char *LastFolder;
141
142 WHERE string_list_t *AttachAllow INITVAL(0);
143 WHERE string_list_t *AttachExclude INITVAL(0);
144 WHERE string_list_t *InlineAllow INITVAL(0);
145 WHERE string_list_t *InlineExclude INITVAL(0);
146
147 /* bit vector for boolean variables */
148 WHERE unsigned char Options[(OPTMAX + 7) / 8];
149
150 /* bit vector for the yes/no/ask variable type */
151 WHERE unsigned char QuadOptions[(OPT_MAX * 2 + 7) / 8];
152
153 #ifdef USE_NNTP
154 WHERE short NewsPollTimeout;
155 WHERE short NntpContext;
156 #endif
157
158 WHERE short ConnectTimeout;
159 WHERE short HistSize;
160 WHERE short MenuContext;
161 WHERE short PagerContext;
162 WHERE short PagerIndexLines;
163 WHERE short ReadInc;
164 WHERE short SleepTime INITVAL (1);
165 WHERE short Timeout;
166 WHERE short Umask INITVAL (0077);
167 WHERE short WrapMargin;
168 WHERE short WriteInc;
169 WHERE short MaxDispRecips;
170 WHERE short MaxLineLength;
171
172 WHERE short ScoreThresholdDelete;
173 WHERE short ScoreThresholdRead;
174 WHERE short ScoreThresholdFlag;
175
176 WHERE short DrawFullLine INITVAL (0);
177 WHERE short SidebarWidth;
178
179 WHERE short ImapKeepalive;
180 WHERE short ImapBuffyTimeout;
181
182 /* flags for received signals */
183 WHERE SIG_ATOMIC_VOLATILE_T SigAlrm INITVAL (0);
184 WHERE SIG_ATOMIC_VOLATILE_T SigInt INITVAL (0);
185 WHERE SIG_ATOMIC_VOLATILE_T SigWinch INITVAL (0);
186
187 WHERE int CurrentMenu;
188
189 WHERE string_list_t *UserHeader INITVAL (0);
190
191 /*-- formerly in pgp.h --*/
192 WHERE rx_t PgpGoodSign;
193 WHERE char *PgpSignAs;
194 WHERE short PgpTimeout;
195 WHERE char *PgpEntryFormat;
196 WHERE char *PgpClearSignCommand;
197 WHERE char *PgpDecodeCommand;
198 WHERE char *PgpVerifyCommand;
199 WHERE char *PgpDecryptCommand;
200 WHERE char *PgpSignCommand;
201 WHERE char *PgpEncryptSignCommand;
202 WHERE char *PgpEncryptOnlyCommand;
203 WHERE char *PgpImportCommand;
204 WHERE char *PgpExportCommand;
205 WHERE char *PgpVerifyKeyCommand;
206 WHERE char *PgpListSecringCommand;
207 WHERE char *PgpListPubringCommand;
208 WHERE char *PgpGetkeysCommand;
209
210 /*-- formerly in smime.h --*/
211 WHERE char *SmimeDefaultKey;
212 WHERE char *SmimeCryptAlg;
213 WHERE short SmimeTimeout;
214 WHERE char *SmimeCertificates;
215 WHERE char *SmimeKeys;
216 WHERE char *SmimeCALocation;
217 WHERE char *SmimeVerifyCommand;
218 WHERE char *SmimeVerifyOpaqueCommand;
219 WHERE char *SmimeDecryptCommand;
220 WHERE char *SmimeSignCommand;
221 WHERE char *SmimeSignOpaqueCommand;
222 WHERE char *SmimeEncryptCommand;
223 WHERE char *SmimeGetSignerCertCommand;
224 WHERE char *SmimePk7outCommand;
225 WHERE char *SmimeGetCertCommand;
226 WHERE char *SmimeImportCertCommand;
227 WHERE char *SmimeGetCertEmailCommand;
228
229 #ifdef MAIN_C
230 const char *Weekdays[] = { "Sun", "Mon", "Tue", "Wed", "Thu", "Fri", "Sat" };
231 const char *Months[] =
232   { "Jan", "Feb", "Mar", "Apr", "May", "Jun", "Jul", "Aug", "Sep", "Oct",
233 "Nov", "Dec", "ERR" };
234 #else
235 extern const char *Weekdays[];
236 extern const char *Months[];
237 #endif
238
239 #endif /* !_GLOBALS_H */