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