makedoc won't work anymore.
[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 *PagerFmt;
87 WHERE char *PipeSep;
88
89 WHERE char *PopAuthenticators INITVAL (NULL);
90 WHERE short PopCheckTimeout;
91 WHERE char *PopHost;
92 WHERE char *PopPass INITVAL (NULL);
93 WHERE char *PopUser INITVAL (NULL);
94
95 WHERE char *PostIndentString;
96 WHERE char *Postponed;
97 WHERE char *Prefix;
98 WHERE char *PrintCmd;
99 WHERE char *QueryCmd;
100 WHERE char *Realname;
101 WHERE char *SidebarDelim;
102 WHERE char *SidebarNumberFormat;
103 WHERE char *SidebarBoundary;
104 WHERE char *SignOffString;
105 WHERE char *SimpleSearch;
106
107 #if defined(USE_LIBESMTP)
108 WHERE char *SmtpAuthUser;
109 WHERE char *SmtpAuthPass;
110 WHERE char *SmtpHost;
111 WHERE unsigned short SmtpPort;
112 WHERE char *SmtpUseTLS;
113 #endif
114 WHERE char *Spoolfile;
115
116 #if defined(USE_SSL) || defined(USE_GNUTLS)
117 WHERE char *SslCertFile INITVAL (NULL);
118 #endif
119 #if defined(USE_SSL)
120 WHERE char *SslEntropyFile INITVAL (NULL);
121 #endif
122 #ifdef USE_SSL
123 WHERE char *SslClientCert INITVAL (NULL);
124 WHERE string_list_t *SslSessionCerts INITVAL (NULL);
125 #endif
126 #ifdef USE_GNUTLS
127 WHERE short SslDHPrimeBits;
128 WHERE char *SslCACertFile INITVAL (NULL);
129 #endif
130 WHERE char *StChars;
131 WHERE char *Status;
132 WHERE char *Tochars;
133 WHERE char *TrashPath;
134 WHERE char *XtermTitle;
135 WHERE char *XtermLeave;
136 WHERE char *XtermIcon;
137
138 WHERE char *CurrentFolder;
139 WHERE char *LastFolder;
140
141 WHERE string_list_t *AttachAllow INITVAL(0);
142 WHERE string_list_t *AttachExclude INITVAL(0);
143 WHERE string_list_t *InlineAllow INITVAL(0);
144 WHERE string_list_t *InlineExclude INITVAL(0);
145
146 /* bit vector for boolean variables */
147 WHERE unsigned char Options[(OPTMAX + 7) / 8];
148
149 /* bit vector for the yes/no/ask variable type */
150 WHERE unsigned char QuadOptions[(OPT_MAX * 2 + 7) / 8];
151
152 #ifdef USE_NNTP
153 WHERE short NewsPollTimeout;
154 WHERE short NntpContext;
155 #endif
156
157 WHERE short ConnectTimeout;
158 WHERE short HistSize;
159 WHERE short MenuContext;
160 WHERE short PagerContext;
161 WHERE short PagerIndexLines;
162 WHERE short ReadInc;
163 WHERE short SleepTime INITVAL (1);
164 WHERE short Timeout;
165 WHERE short Umask INITVAL (0077);
166 WHERE short WrapMargin;
167 WHERE short WriteInc;
168 WHERE short MaxDispRecips;
169 WHERE short MaxLineLength;
170
171 WHERE short ScoreThresholdDelete;
172 WHERE short ScoreThresholdRead;
173 WHERE short ScoreThresholdFlag;
174
175 WHERE short DrawFullLine INITVAL (0);
176 WHERE short SidebarWidth;
177
178 WHERE short ImapKeepalive;
179 WHERE short ImapBuffyTimeout;
180
181 /* flags for received signals */
182 WHERE SIG_ATOMIC_VOLATILE_T SigAlrm INITVAL (0);
183 WHERE SIG_ATOMIC_VOLATILE_T SigInt INITVAL (0);
184 WHERE SIG_ATOMIC_VOLATILE_T SigWinch INITVAL (0);
185
186 WHERE int CurrentMenu;
187
188 WHERE string_list_t *UserHeader INITVAL (0);
189
190 /*-- formerly in pgp.h --*/
191 WHERE char *PgpSignAs;
192 WHERE char *PgpEntryFormat;
193
194 /*-- formerly in smime.h --*/
195 WHERE char *SmimeDefaultKey;
196 WHERE char *SmimeCryptAlg;
197
198 #ifdef MAIN_C
199 const char *Weekdays[] = { "Sun", "Mon", "Tue", "Wed", "Thu", "Fri", "Sat" };
200 const char *Months[] =
201   { "Jan", "Feb", "Mar", "Apr", "May", "Jun", "Jul", "Aug", "Sep", "Oct",
202 "Nov", "Dec", "ERR" };
203 #else
204 extern const char *Weekdays[];
205 extern const char *Months[];
206 #endif
207
208 #endif /* !_GLOBALS_H */