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