f2710a99a6975988c39bb6617a51facfa38f70c5
[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 *ImapLogin INITVAL (NULL);
43 WHERE char *ImapPass INITVAL (NULL);
44 WHERE char *ImapUser INITVAL (NULL);
45 WHERE char *Inbox;
46 WHERE char *Locale;
47 WHERE char *Maildir;
48
49 #ifdef USE_HCACHE
50 WHERE char *HeaderCache;
51 #if defined(HAVE_GDBM)
52 WHERE char *HeaderCachePageSize;
53 #endif /* HAVE_GDBM */
54 #endif /* USE_HCACHE */
55 WHERE char *MhFlagged;
56 WHERE char *MhReplied;
57 WHERE char *MhUnseen;
58 WHERE char *MsgFmt;
59 WHERE char *MsgIdFormat;
60
61 WHERE rx_t AttachRemindRegexp;
62 WHERE rx_t Mask;
63 WHERE rx_t QuoteRegexp;
64 WHERE rx_t ReplyRegexp;
65 WHERE rx_t Smileys;
66 WHERE rx_t StripWasRegexp;
67
68 WHERE char *Preconnect INITVAL (NULL);
69 WHERE char *Tunnel INITVAL (NULL);
70 WHERE short NetInc;
71
72 WHERE char *Mixmaster;
73 WHERE char *MixEntryFormat;
74 WHERE char *Muttrc INITVAL (NULL);
75
76 #ifdef USE_NNTP
77 WHERE char *NewsCacheDir;
78 WHERE char *GroupFormat;
79 WHERE char *Inews;
80 WHERE char *NewsServer;
81 WHERE char *NntpUser;
82 WHERE char *NntpPass;
83 WHERE char *NewsRc;
84 #endif
85 WHERE char *PagerFmt;
86 WHERE char *PipeSep;
87
88 WHERE char *PopAuthenticators INITVAL (NULL);
89 WHERE short PopCheckTimeout;
90 WHERE char *PopHost;
91 WHERE char *PopPass INITVAL (NULL);
92 WHERE char *PopUser INITVAL (NULL);
93
94 WHERE char *Postponed;
95 WHERE char *Prefix;
96 WHERE char *PrintCmd;
97 WHERE char *QueryCmd;
98 WHERE char *Realname;
99 WHERE char *SidebarDelim;
100 WHERE char *SidebarNumberFormat;
101 WHERE char *SidebarBoundary;
102 WHERE char *SignOffString;
103 WHERE char *SimpleSearch;
104
105 #if defined(USE_LIBESMTP)
106 WHERE char *SmtpAuthUser;
107 WHERE char *SmtpAuthPass;
108 WHERE char *SmtpHost;
109 WHERE unsigned short SmtpPort;
110 WHERE char *SmtpUseTLS;
111 #endif
112 WHERE char *Spoolfile;
113
114 WHERE char *StChars;
115 WHERE char *Status;
116 WHERE char *Tochars;
117 WHERE char *TrashPath;
118 WHERE char *XtermTitle;
119 WHERE char *XtermLeave;
120 WHERE char *XtermIcon;
121
122 WHERE char *CurrentFolder;
123 WHERE char *LastFolder;
124
125 WHERE string_list_t *AttachAllow INITVAL(0);
126 WHERE string_list_t *AttachExclude INITVAL(0);
127 WHERE string_list_t *InlineAllow INITVAL(0);
128 WHERE string_list_t *InlineExclude INITVAL(0);
129
130 /* bit vector for boolean variables */
131 WHERE unsigned char Options[(OPTMAX + 7) / 8];
132
133 /* bit vector for the yes/no/ask variable type */
134 WHERE unsigned char QuadOptions[(OPT_MAX * 2 + 7) / 8];
135
136 #ifdef USE_NNTP
137 WHERE short NewsPollTimeout;
138 WHERE short NntpContext;
139 #endif
140
141 WHERE short ConnectTimeout;
142 WHERE short HistSize;
143 WHERE short MenuContext;
144 WHERE short PagerContext;
145 WHERE short PagerIndexLines;
146 WHERE short ReadInc;
147 WHERE short SleepTime INITVAL (1);
148 WHERE short Timeout;
149 WHERE short Umask INITVAL (0077);
150 WHERE short WrapMargin;
151 WHERE short WriteInc;
152 WHERE short MaxDispRecips;
153 WHERE short MaxLineLength;
154
155 WHERE short DrawFullLine INITVAL (0);
156 WHERE short SidebarWidth;
157
158 WHERE short ImapKeepalive;
159 WHERE short ImapBuffyTimeout;
160
161 /* flags for received signals */
162 WHERE sig_atomic_t SigAlrm INITVAL (0);
163 WHERE sig_atomic_t SigInt INITVAL (0);
164 WHERE sig_atomic_t SigWinch INITVAL (0);
165
166 WHERE int CurrentMenu;
167
168 WHERE string_list_t *UserHeader INITVAL (0);
169
170 /*-- formerly in pgp.h --*/
171 WHERE char *PgpSignAs;
172
173 /*-- formerly in smime.h --*/
174 WHERE char *SmimeDefaultKey;
175 WHERE char *SmimeCryptAlg;
176
177 #ifdef MAIN_C
178 const char *Weekdays[] = { "Sun", "Mon", "Tue", "Wed", "Thu", "Fri", "Sat" };
179 const char *Months[] =
180   { "Jan", "Feb", "Mar", "Apr", "May", "Jun", "Jul", "Aug", "Sep", "Oct",
181 "Nov", "Dec", "ERR" };
182 #else
183 extern const char *Weekdays[];
184 extern const char *Months[];
185 #endif
186
187 #endif /* !_GLOBALS_H */