0519dfbc442ee17876ec85530cae39573af37201
[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 *Pager;
89 WHERE char *PagerFmt;
90 WHERE char *PipeSep;
91
92 WHERE char *PopAuthenticators INITVAL (NULL);
93 WHERE short PopCheckTimeout;
94 WHERE char *PopHost;
95 WHERE char *PopPass INITVAL (NULL);
96 WHERE char *PopUser INITVAL (NULL);
97
98 WHERE char *PostIndentString;
99 WHERE char *Postponed;
100 WHERE char *Prefix;
101 WHERE char *PrintCmd;
102 WHERE char *QueryCmd;
103 WHERE char *Realname;
104 WHERE char *SidebarDelim;
105 WHERE char *SidebarNumberFormat;
106 WHERE char *SidebarBoundary;
107 WHERE char *SignOffString;
108 WHERE char *SimpleSearch;
109
110 #if defined(USE_LIBESMTP)
111 WHERE char *SmtpAuthUser;
112 WHERE char *SmtpAuthPass;
113 WHERE char *SmtpHost;
114 WHERE unsigned short SmtpPort;
115 WHERE char *SmtpUseTLS;
116 #endif
117 WHERE char *Spoolfile;
118
119 #if defined(USE_SSL) || defined(USE_GNUTLS)
120 WHERE char *SslCertFile INITVAL (NULL);
121 #endif
122 #if defined(USE_SSL)
123 WHERE char *SslEntropyFile INITVAL (NULL);
124 #endif
125 #ifdef USE_SSL
126 WHERE char *SslClientCert INITVAL (NULL);
127 WHERE string_list_t *SslSessionCerts INITVAL (NULL);
128 #endif
129 #ifdef USE_GNUTLS
130 WHERE short SslDHPrimeBits;
131 WHERE char *SslCACertFile INITVAL (NULL);
132 #endif
133 WHERE char *StChars;
134 WHERE char *Status;
135 WHERE char *Tochars;
136 WHERE char *TrashPath;
137 WHERE char *XtermTitle;
138 WHERE char *XtermLeave;
139 WHERE char *XtermIcon;
140
141 WHERE char *CurrentFolder;
142 WHERE char *LastFolder;
143
144 WHERE string_list_t *AttachAllow INITVAL(0);
145 WHERE string_list_t *AttachExclude INITVAL(0);
146 WHERE string_list_t *InlineAllow INITVAL(0);
147 WHERE string_list_t *InlineExclude INITVAL(0);
148
149 /* bit vector for boolean variables */
150 WHERE unsigned char Options[(OPTMAX + 7) / 8];
151
152 /* bit vector for the yes/no/ask variable type */
153 WHERE unsigned char QuadOptions[(OPT_MAX * 2 + 7) / 8];
154
155 #ifdef USE_NNTP
156 WHERE short NewsPollTimeout;
157 WHERE short NntpContext;
158 #endif
159
160 WHERE short ConnectTimeout;
161 WHERE short HistSize;
162 WHERE short MenuContext;
163 WHERE short PagerContext;
164 WHERE short PagerIndexLines;
165 WHERE short ReadInc;
166 WHERE short SleepTime INITVAL (1);
167 WHERE short Timeout;
168 WHERE short Umask INITVAL (0077);
169 WHERE short WrapMargin;
170 WHERE short WriteInc;
171 WHERE short MaxDispRecips;
172 WHERE short MaxLineLength;
173
174 WHERE short ScoreThresholdDelete;
175 WHERE short ScoreThresholdRead;
176 WHERE short ScoreThresholdFlag;
177
178 WHERE short DrawFullLine INITVAL (0);
179 WHERE short SidebarWidth;
180
181 WHERE short ImapKeepalive;
182 WHERE short ImapBuffyTimeout;
183
184 /* flags for received signals */
185 WHERE SIG_ATOMIC_VOLATILE_T SigAlrm INITVAL (0);
186 WHERE SIG_ATOMIC_VOLATILE_T SigInt INITVAL (0);
187 WHERE SIG_ATOMIC_VOLATILE_T SigWinch INITVAL (0);
188
189 WHERE int CurrentMenu;
190
191 WHERE string_list_t *UserHeader INITVAL (0);
192
193 /*-- formerly in pgp.h --*/
194 WHERE rx_t PgpGoodSign;
195 WHERE char *PgpSignAs;
196 WHERE short PgpTimeout;
197 WHERE char *PgpEntryFormat;
198 WHERE char *PgpClearSignCommand;
199 WHERE char *PgpDecodeCommand;
200 WHERE char *PgpVerifyCommand;
201 WHERE char *PgpDecryptCommand;
202 WHERE char *PgpSignCommand;
203 WHERE char *PgpEncryptSignCommand;
204 WHERE char *PgpEncryptOnlyCommand;
205 WHERE char *PgpImportCommand;
206 WHERE char *PgpExportCommand;
207 WHERE char *PgpVerifyKeyCommand;
208 WHERE char *PgpListSecringCommand;
209 WHERE char *PgpListPubringCommand;
210 WHERE char *PgpGetkeysCommand;
211
212 /*-- formerly in smime.h --*/
213 WHERE char *SmimeDefaultKey;
214 WHERE char *SmimeCryptAlg;
215 WHERE short SmimeTimeout;
216 WHERE char *SmimeCertificates;
217 WHERE char *SmimeKeys;
218 WHERE char *SmimeCALocation;
219 WHERE char *SmimeVerifyCommand;
220 WHERE char *SmimeVerifyOpaqueCommand;
221 WHERE char *SmimeDecryptCommand;
222 WHERE char *SmimeSignCommand;
223 WHERE char *SmimeSignOpaqueCommand;
224 WHERE char *SmimeEncryptCommand;
225 WHERE char *SmimeGetSignerCertCommand;
226 WHERE char *SmimePk7outCommand;
227 WHERE char *SmimeGetCertCommand;
228 WHERE char *SmimeImportCertCommand;
229 WHERE char *SmimeGetCertEmailCommand;
230
231 #ifdef MAIN_C
232 const char *Weekdays[] = { "Sun", "Mon", "Tue", "Wed", "Thu", "Fri", "Sat" };
233 const char *Months[] =
234   { "Jan", "Feb", "Mar", "Apr", "May", "Jun", "Jul", "Aug", "Sep", "Oct",
235 "Nov", "Dec", "ERR" };
236 #else
237 extern const char *Weekdays[];
238 extern const char *Months[];
239 #endif
240
241 #endif /* !_GLOBALS_H */