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