move gpg_check_traditionnal in crypt.cpkg
[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 WHERE char *Spoolfile;
106
107 WHERE char *StChars;
108 WHERE char *Status;
109 WHERE char *Tochars;
110 WHERE char *TrashPath;
111 WHERE char *XtermTitle;
112 WHERE char *XtermLeave;
113 WHERE char *XtermIcon;
114
115 WHERE char *CurrentFolder;
116 WHERE char *LastFolder;
117
118 WHERE string_list_t *AttachAllow INITVAL(0);
119 WHERE string_list_t *AttachExclude INITVAL(0);
120 WHERE string_list_t *InlineAllow INITVAL(0);
121 WHERE string_list_t *InlineExclude INITVAL(0);
122
123 /* bit vector for boolean variables */
124 WHERE unsigned char Options[(OPTMAX + 7) / 8];
125
126 /* bit vector for the yes/no/ask variable type */
127 WHERE unsigned char QuadOptions[(OPT_MAX * 2 + 7) / 8];
128
129 #ifdef USE_NNTP
130 WHERE short NewsPollTimeout;
131 WHERE short NntpContext;
132 #endif
133
134 WHERE short ConnectTimeout;
135 WHERE short HistSize;
136 WHERE short MenuContext;
137 WHERE short PagerContext;
138 WHERE short PagerIndexLines;
139 WHERE short ReadInc;
140 WHERE short SleepTime INITVAL (1);
141 WHERE short Timeout;
142 WHERE short Umask INITVAL (0077);
143 WHERE short WrapMargin;
144 WHERE short WriteInc;
145 WHERE short MaxDispRecips;
146 WHERE short MaxLineLength;
147
148 WHERE short DrawFullLine INITVAL (0);
149 WHERE short SidebarWidth;
150
151 WHERE short ImapKeepalive;
152 WHERE short ImapBuffyTimeout;
153
154 /* flags for received signals */
155 WHERE sig_atomic_t SigAlrm INITVAL (0);
156 WHERE sig_atomic_t SigInt INITVAL (0);
157 WHERE sig_atomic_t SigWinch INITVAL (0);
158
159 WHERE int CurrentMenu;
160
161 WHERE string_list_t *UserHeader INITVAL (0);
162
163 /*-- formerly in pgp.h --*/
164 WHERE char *PgpSignAs;
165
166 /*-- formerly in smime.h --*/
167 WHERE char *SmimeDefaultKey;
168 WHERE char *SmimeCryptAlg;
169
170 #ifdef MAIN_C
171 const char *Weekdays[] = { "Sun", "Mon", "Tue", "Wed", "Thu", "Fri", "Sat" };
172 const char *Months[] =
173   { "Jan", "Feb", "Mar", "Apr", "May", "Jun", "Jul", "Aug", "Sep", "Oct",
174 "Nov", "Dec", "ERR" };
175 #else
176 extern const char *Weekdays[];
177 extern const char *Months[];
178 #endif
179
180 #endif /* !_GLOBALS_H */