2 * $Id: conf.h 1155 2008-08-21 18:33:21Z hubert@u.washington.edu $
4 * ========================================================================
5 * Copyright 2013-2020 Eduardo Chappa
6 * Copyright 2006-2008 University of Washington
8 * Licensed under the Apache License, Version 2.0 (the "License");
9 * you may not use this file except in compliance with the License.
10 * You may obtain a copy of the License at
12 * http://www.apache.org/licenses/LICENSE-2.0
14 * ========================================================================
17 #ifndef PITH_CONFIG_INCLUDED
18 #define PITH_CONFIG_INCLUDED
21 #include "../pith/conftype.h"
22 #include "../pith/remtype.h"
23 #include "../pith/state.h"
24 #include "../pith/pattern.h"
25 #include "../pith/color.h"
28 #ifndef DF_REMOTE_ABOOK_VALIDITY
29 #define DF_REMOTE_ABOOK_VALIDITY "5"
31 #ifndef DF_GOTO_DEFAULT_RULE
32 #define DF_GOTO_DEFAULT_RULE "inbox-or-folder-in-recent-collection"
34 #ifndef DF_INCOMING_STARTUP
35 #define DF_INCOMING_STARTUP "first-unseen"
37 #ifndef DF_PRUNING_RULE
38 #define DF_PRUNING_RULE "ask-ask"
40 #ifndef DF_REOPEN_RULE
41 #define DF_REOPEN_RULE "ask-no-n"
43 #ifndef DF_THREAD_DISP_STYLE
44 #define DF_THREAD_DISP_STYLE "struct"
46 #ifndef DF_THREAD_INDEX_STYLE
47 #define DF_THREAD_INDEX_STYLE "exp"
49 #ifndef DF_THREAD_MORE_CHAR
50 #define DF_THREAD_MORE_CHAR ">"
52 #ifndef DF_THREAD_EXP_CHAR
53 #define DF_THREAD_EXP_CHAR "."
55 #ifndef DF_THREAD_LASTREPLY_CHAR
56 #define DF_THREAD_LASTREPLY_CHAR "\\"
58 #ifndef DF_MAILDROPCHECK
59 #define DF_MAILDROPCHECK "60"
61 #ifndef DF_MAXREMSTREAM
62 #define DF_MAXREMSTREAM "3"
64 #ifndef DF_VIEW_MARGIN_RIGHT
65 #define DF_VIEW_MARGIN_RIGHT "4"
67 #ifndef DF_QUOTE_SUPPRESSION
68 #define DF_QUOTE_SUPPRESSION "0"
71 #define DF_DEADLETS "1"
74 #define DF_NMW_WIDTH "80"
78 #define VAR_PERSONAL_NAME vars[V_PERSONAL_NAME].current_val.p
79 #define FIX_PERSONAL_NAME vars[V_PERSONAL_NAME].fixed_val.p
80 #define COM_PERSONAL_NAME vars[V_PERSONAL_NAME].cmdline_val.p
81 #define VAR_USER_ID vars[V_USER_ID].current_val.p
82 #define COM_USER_ID vars[V_USER_ID].cmdline_val.p
83 #define VAR_USER_DOMAIN vars[V_USER_DOMAIN].current_val.p
84 #define VAR_SMTP_SERVER vars[V_SMTP_SERVER].current_val.l
85 #define FIX_SMTP_SERVER vars[V_SMTP_SERVER].fixed_val.l
86 #define COM_SMTP_SERVER vars[V_SMTP_SERVER].cmdline_val.l
87 #define GLO_SMTP_SERVER vars[V_SMTP_SERVER].global_val.l
88 #define VAR_INBOX_PATH vars[V_INBOX_PATH].current_val.p
89 #define GLO_INBOX_PATH vars[V_INBOX_PATH].global_val.p
90 #define VAR_INCOMING_FOLDERS vars[V_INCOMING_FOLDERS].current_val.l
91 #define VAR_FOLDER_SPEC vars[V_FOLDER_SPEC].current_val.l
92 #define GLO_FOLDER_SPEC vars[V_FOLDER_SPEC].global_val.l
93 #define VAR_NEWS_SPEC vars[V_NEWS_SPEC].current_val.l
94 #define VAR_ARCHIVED_FOLDERS vars[V_ARCHIVED_FOLDERS].current_val.l
95 #define VAR_PRUNED_FOLDERS vars[V_PRUNED_FOLDERS].current_val.l
96 #define GLO_PRUNED_FOLDERS vars[V_PRUNED_FOLDERS].global_val.l
97 #define VAR_DEFAULT_FCC vars[V_DEFAULT_FCC].current_val.p
98 #define GLO_DEFAULT_FCC vars[V_DEFAULT_FCC].global_val.p
99 #define VAR_DEFAULT_SAVE_FOLDER vars[V_DEFAULT_SAVE_FOLDER].current_val.p
100 #define GLO_DEFAULT_SAVE_FOLDER vars[V_DEFAULT_SAVE_FOLDER].global_val.p
101 #define VAR_POSTPONED_FOLDER vars[V_POSTPONED_FOLDER].current_val.p
102 #define GLO_POSTPONED_FOLDER vars[V_POSTPONED_FOLDER].global_val.p
103 #define VAR_MAIL_DIRECTORY vars[V_MAIL_DIRECTORY].current_val.p
104 #define GLO_MAIL_DIRECTORY vars[V_MAIL_DIRECTORY].global_val.p
105 #define VAR_READ_MESSAGE_FOLDER vars[V_READ_MESSAGE_FOLDER].current_val.p
106 #define GLO_READ_MESSAGE_FOLDER vars[V_READ_MESSAGE_FOLDER].global_val.p
107 #define VAR_FORM_FOLDER vars[V_FORM_FOLDER].current_val.p
108 #define GLO_FORM_FOLDER vars[V_FORM_FOLDER].global_val.p
109 #define VAR_TRASH_FOLDER vars[V_TRASH_FOLDER].current_val.p
110 #define GLO_TRASH_FOLDER vars[V_TRASH_FOLDER].global_val.p
111 #define VAR_SIGNATURE_FILE vars[V_SIGNATURE_FILE].current_val.p
112 #define GLO_SIGNATURE_FILE vars[V_SIGNATURE_FILE].global_val.p
113 #define VAR_LITERAL_SIG vars[V_LITERAL_SIG].current_val.p
114 #define VAR_GLOB_ADDRBOOK vars[V_GLOB_ADDRBOOK].current_val.l
115 #define VAR_ADDRESSBOOK vars[V_ADDRESSBOOK].current_val.l
116 #define GLO_ADDRESSBOOK vars[V_ADDRESSBOOK].global_val.l
117 #define FIX_ADDRESSBOOK vars[V_ADDRESSBOOK].fixed_val.l
118 #define VAR_FEATURE_LIST vars[V_FEATURE_LIST].current_val.l
119 #define VAR_INIT_CMD_LIST vars[V_INIT_CMD_LIST].current_val.l
120 #define GLO_INIT_CMD_LIST vars[V_INIT_CMD_LIST].global_val.l
121 #define COM_INIT_CMD_LIST vars[V_INIT_CMD_LIST].cmdline_val.l
122 #define VAR_COMP_HDRS vars[V_COMP_HDRS].current_val.l
123 #define GLO_COMP_HDRS vars[V_COMP_HDRS].global_val.l
124 #define VAR_CUSTOM_HDRS vars[V_CUSTOM_HDRS].current_val.l
125 #define VAR_VIEW_HEADERS vars[V_VIEW_HEADERS].current_val.l
126 #define VAR_VIEW_MARGIN_LEFT vars[V_VIEW_MARGIN_LEFT].current_val.p
127 #define GLO_VIEW_MARGIN_LEFT vars[V_VIEW_MARGIN_LEFT].global_val.p
128 #define VAR_VIEW_MARGIN_RIGHT vars[V_VIEW_MARGIN_RIGHT].current_val.p
129 #define GLO_VIEW_MARGIN_RIGHT vars[V_VIEW_MARGIN_RIGHT].global_val.p
130 #define VAR_QUOTE_SUPPRESSION vars[V_QUOTE_SUPPRESSION].current_val.p
131 #define GLO_QUOTE_SUPPRESSION vars[V_QUOTE_SUPPRESSION].global_val.p
133 #define VAR_COLOR_STYLE vars[V_COLOR_STYLE].current_val.p
134 #define GLO_COLOR_STYLE vars[V_COLOR_STYLE].global_val.p
136 #if !defined(_WINDOWS) || defined(WINDOWS_UNIXSSL_CERTS)
137 #define VAR_SSLCAPATH vars[V_SSLCAPATH].current_val.l
138 #define GLO_SSLCAPATH vars[V_SSLCAPATH].global_val.l
139 #define VAR_SSLCAFILE vars[V_SSLCAFILE].current_val.l
140 #define GLO_SSLCAFILE vars[V_SSLCAFILE].global_val.l
141 #define VAR_SSLUSERCAPATH vars[V_USERSSLCAPATH].current_val.l
142 #define GLO_SSLUSERCAPATH vars[V_USERSSLCAPATH].global_val.l
143 #define VAR_SSLUSERCAFILE vars[V_USERSSLCAFILE].current_val.l
144 #define GLO_SSLUSERCAFILE vars[V_USERSSLCAFILE].global_val.l
146 #define VAR_INDEX_COLOR_STYLE vars[V_INDEX_COLOR_STYLE].current_val.p
147 #define GLO_INDEX_COLOR_STYLE vars[V_INDEX_COLOR_STYLE].global_val.p
148 #define VAR_TITLEBAR_COLOR_STYLE vars[V_TITLEBAR_COLOR_STYLE].current_val.p
149 #define GLO_TITLEBAR_COLOR_STYLE vars[V_TITLEBAR_COLOR_STYLE].global_val.p
150 #define VAR_SAVED_MSG_NAME_RULE vars[V_SAVED_MSG_NAME_RULE].current_val.p
151 #define GLO_SAVED_MSG_NAME_RULE vars[V_SAVED_MSG_NAME_RULE].global_val.p
152 #define VAR_FCC_RULE vars[V_FCC_RULE].current_val.p
153 #define GLO_FCC_RULE vars[V_FCC_RULE].global_val.p
154 #define VAR_SORT_KEY vars[V_SORT_KEY].current_val.p
155 #define GLO_SORT_KEY vars[V_SORT_KEY].global_val.p
156 #define COM_SORT_KEY vars[V_SORT_KEY].cmdline_val.p
157 #define VAR_AB_SORT_RULE vars[V_AB_SORT_RULE].current_val.p
158 #define GLO_AB_SORT_RULE vars[V_AB_SORT_RULE].global_val.p
159 #define VAR_FLD_SORT_RULE vars[V_FLD_SORT_RULE].current_val.p
160 #define GLO_FLD_SORT_RULE vars[V_FLD_SORT_RULE].global_val.p
162 #define VAR_CHAR_SET vars[V_CHAR_SET].current_val.p
163 #define GLO_CHAR_SET vars[V_CHAR_SET].global_val.p
164 #define VAR_OLD_CHAR_SET vars[V_OLD_CHAR_SET].current_val.p
165 #define VAR_KEY_CHAR_SET vars[V_KEY_CHAR_SET].current_val.p
166 #endif /* ! _WINDOWS */
167 #define VAR_POST_CHAR_SET vars[V_POST_CHAR_SET].current_val.p
168 #define GLO_POST_CHAR_SET vars[V_POST_CHAR_SET].global_val.p
169 #define VAR_UNK_CHAR_SET vars[V_UNK_CHAR_SET].current_val.p
170 #define VAR_EDITOR vars[V_EDITOR].current_val.l
171 #define GLO_EDITOR vars[V_EDITOR].global_val.l
172 #define VAR_SPELLER vars[V_SPELLER].current_val.p
173 #define GLO_SPELLER vars[V_SPELLER].global_val.p
175 #define VAR_DICTIONARY vars[V_DICTIONARY].current_val.l
176 #define GLO_DICTIONARY vars[V_DICTIONARY].global_val.l
177 #endif /* _WINDOWS */
178 #define VAR_FILLCOL vars[V_FILLCOL].current_val.p
179 #define GLO_FILLCOL vars[V_FILLCOL].global_val.p
180 #define VAR_DEADLETS vars[V_DEADLETS].current_val.p
181 #define GLO_DEADLETS vars[V_DEADLETS].global_val.p
182 #define VAR_REPLY_STRING vars[V_REPLY_STRING].current_val.p
183 #define GLO_REPLY_STRING vars[V_REPLY_STRING].global_val.p
184 #define VAR_WORDSEPS vars[V_WORDSEPS].current_val.l
185 #define VAR_QUOTE_REPLACE_STRING vars[V_QUOTE_REPLACE_STRING].current_val.p
186 #define GLO_QUOTE_REPLACE_STRING vars[V_QUOTE_REPLACE_STRING].global_val.p
187 #define VAR_REPLY_INTRO vars[V_REPLY_INTRO].current_val.p
188 #define GLO_REPLY_INTRO vars[V_REPLY_INTRO].global_val.p
189 #define VAR_EMPTY_HDR_MSG vars[V_EMPTY_HDR_MSG].current_val.p
190 #define GLO_EMPTY_HDR_MSG vars[V_EMPTY_HDR_MSG].global_val.p
191 #define VAR_IMAGE_VIEWER vars[V_IMAGE_VIEWER].current_val.p
192 #define GLO_IMAGE_VIEWER vars[V_IMAGE_VIEWER].global_val.p
193 #define VAR_USE_ONLY_DOMAIN_NAME vars[V_USE_ONLY_DOMAIN_NAME].current_val.p
194 #define GLO_USE_ONLY_DOMAIN_NAME vars[V_USE_ONLY_DOMAIN_NAME].global_val.p
195 #define VAR_PRINTER vars[V_PRINTER].current_val.p
196 #define GLO_PRINTER vars[V_PRINTER].global_val.p
197 #define VAR_PERSONAL_PRINT_COMMAND vars[V_PERSONAL_PRINT_COMMAND].current_val.l
198 #define GLO_PERSONAL_PRINT_COMMAND vars[V_PERSONAL_PRINT_COMMAND].global_val.l
199 #define VAR_PERSONAL_PRINT_CATEGORY vars[V_PERSONAL_PRINT_CATEGORY].current_val.p
200 #define GLO_PERSONAL_PRINT_CATEGORY vars[V_PERSONAL_PRINT_CATEGORY].global_val.p
201 #define VAR_STANDARD_PRINTER vars[V_STANDARD_PRINTER].current_val.l
202 #define GLO_STANDARD_PRINTER vars[V_STANDARD_PRINTER].global_val.l
203 #define FIX_STANDARD_PRINTER vars[V_STANDARD_PRINTER].fixed_val.l
204 #define VAR_LAST_TIME_PRUNE_QUESTION vars[V_LAST_TIME_PRUNE_QUESTION].current_val.p
205 #define VAR_LAST_VERS_USED vars[V_LAST_VERS_USED].current_val.p
206 #define VAR_BUGS_FULLNAME vars[V_BUGS_FULLNAME].current_val.p
207 #define GLO_BUGS_FULLNAME vars[V_BUGS_FULLNAME].global_val.p
208 #define VAR_BUGS_ADDRESS vars[V_BUGS_ADDRESS].current_val.p
209 #define GLO_BUGS_ADDRESS vars[V_BUGS_ADDRESS].global_val.p
210 #define VAR_BUGS_EXTRAS vars[V_BUGS_EXTRAS].current_val.p
211 #define GLO_BUGS_EXTRAS vars[V_BUGS_EXTRAS].global_val.p
212 #define VAR_SUGGEST_FULLNAME vars[V_SUGGEST_FULLNAME].current_val.p
213 #define GLO_SUGGEST_FULLNAME vars[V_SUGGEST_FULLNAME].global_val.p
214 #define VAR_SUGGEST_ADDRESS vars[V_SUGGEST_ADDRESS].current_val.p
215 #define GLO_SUGGEST_ADDRESS vars[V_SUGGEST_ADDRESS].global_val.p
216 #define VAR_LOCAL_FULLNAME vars[V_LOCAL_FULLNAME].current_val.p
217 #define GLO_LOCAL_FULLNAME vars[V_LOCAL_FULLNAME].global_val.p
218 #define VAR_LOCAL_ADDRESS vars[V_LOCAL_ADDRESS].current_val.p
219 #define GLO_LOCAL_ADDRESS vars[V_LOCAL_ADDRESS].global_val.p
220 #define VAR_FORCED_ABOOK_ENTRY vars[V_FORCED_ABOOK_ENTRY].current_val.l
221 #define VAR_KBLOCK_PASSWD_COUNT vars[V_KBLOCK_PASSWD_COUNT].current_val.p
222 #define GLO_KBLOCK_PASSWD_COUNT vars[V_KBLOCK_PASSWD_COUNT].global_val.p
223 #define VAR_STATUS_MSG_DELAY vars[V_STATUS_MSG_DELAY].current_val.p
224 #define GLO_STATUS_MSG_DELAY vars[V_STATUS_MSG_DELAY].global_val.p
225 #define VAR_ACTIVE_MSG_INTERVAL vars[V_ACTIVE_MSG_INTERVAL].current_val.p
226 #define GLO_ACTIVE_MSG_INTERVAL vars[V_ACTIVE_MSG_INTERVAL].global_val.p
227 #define GLO_SENDMAIL_PATH vars[V_SENDMAIL_PATH].global_val.p
228 #define FIX_SENDMAIL_PATH vars[V_SENDMAIL_PATH].fixed_val.p
229 #define COM_SENDMAIL_PATH vars[V_SENDMAIL_PATH].cmdline_val.p
230 #define VAR_OPER_DIR vars[V_OPER_DIR].current_val.p
231 #define GLO_OPER_DIR vars[V_OPER_DIR].global_val.p
232 #define FIX_OPER_DIR vars[V_OPER_DIR].fixed_val.p
233 #define COM_OPER_DIR vars[V_OPER_DIR].cmdline_val.p
234 #define VAR_DISPLAY_FILTERS vars[V_DISPLAY_FILTERS].current_val.l
235 #define VAR_SEND_FILTER vars[V_SEND_FILTER].current_val.l
236 #define GLO_SEND_FILTER vars[V_SEND_FILTER].global_val.l
237 #define VAR_ALT_ADDRS vars[V_ALT_ADDRS].current_val.l
238 #define VAR_KEYWORDS vars[V_KEYWORDS].current_val.l
239 #define VAR_KW_COLORS vars[V_KW_COLORS].current_val.l
240 #define VAR_KW_BRACES vars[V_KW_BRACES].current_val.p
241 #define GLO_KW_BRACES vars[V_KW_BRACES].global_val.p
242 #define VAR_OPENING_SEP vars[V_OPENING_SEP].current_val.p
243 #define GLO_OPENING_SEP vars[V_OPENING_SEP].global_val.p
244 #define VAR_ABOOK_FORMATS vars[V_ABOOK_FORMATS].current_val.l
245 #define VAR_INDEX_FORMAT vars[V_INDEX_FORMAT].current_val.p
246 #define VAR_OVERLAP vars[V_OVERLAP].current_val.p
247 #define GLO_OVERLAP vars[V_OVERLAP].global_val.p
248 #define VAR_MAXREMSTREAM vars[V_MAXREMSTREAM].current_val.p
249 #define GLO_MAXREMSTREAM vars[V_MAXREMSTREAM].global_val.p
250 #define VAR_PERMLOCKED vars[V_PERMLOCKED].current_val.l
251 #define VAR_MARGIN vars[V_MARGIN].current_val.p
252 #define GLO_MARGIN vars[V_MARGIN].global_val.p
253 #define VAR_MAILCHECK vars[V_MAILCHECK].current_val.p
254 #define GLO_MAILCHECK vars[V_MAILCHECK].global_val.p
255 #define VAR_MAILCHECKNONCURR vars[V_MAILCHECKNONCURR].current_val.p
256 #define GLO_MAILCHECKNONCURR vars[V_MAILCHECKNONCURR].global_val.p
257 #define VAR_MAILDROPCHECK vars[V_MAILDROPCHECK].current_val.p
258 #define GLO_MAILDROPCHECK vars[V_MAILDROPCHECK].global_val.p
259 #define VAR_NNTPRANGE vars[V_NNTPRANGE].current_val.p
260 #define GLO_NNTPRANGE vars[V_NNTPRANGE].global_val.p
261 #define VAR_NEWSRC_PATH vars[V_NEWSRC_PATH].current_val.p
262 #define GLO_NEWSRC_PATH vars[V_NEWSRC_PATH].global_val.p
263 #define VAR_NEWS_ACTIVE_PATH vars[V_NEWS_ACTIVE_PATH].current_val.p
264 #define GLO_NEWS_ACTIVE_PATH vars[V_NEWS_ACTIVE_PATH].global_val.p
265 #define VAR_NEWS_SPOOL_DIR vars[V_NEWS_SPOOL_DIR].current_val.p
266 #define GLO_NEWS_SPOOL_DIR vars[V_NEWS_SPOOL_DIR].global_val.p
267 #define VAR_DISABLE_DRIVERS vars[V_DISABLE_DRIVERS].current_val.l
268 #define VAR_DISABLE_AUTHS vars[V_DISABLE_AUTHS].current_val.l
269 #define VAR_REMOTE_ABOOK_METADATA vars[V_REMOTE_ABOOK_METADATA].current_val.p
270 #define VAR_REMOTE_ABOOK_HISTORY vars[V_REMOTE_ABOOK_HISTORY].current_val.p
271 #define GLO_REMOTE_ABOOK_HISTORY vars[V_REMOTE_ABOOK_HISTORY].global_val.p
272 #define VAR_REMOTE_ABOOK_VALIDITY vars[V_REMOTE_ABOOK_VALIDITY].current_val.p
273 #define GLO_REMOTE_ABOOK_VALIDITY vars[V_REMOTE_ABOOK_VALIDITY].global_val.p
274 #define GLO_ENCRYPTION_RANGE vars[V_ENCRYPTION_RANGE].global_val.p
275 #define VAR_ENCRYPTION_RANGE vars[V_ENCRYPTION_RANGE].current_val.p
276 /* Elm style save is obsolete in Pine 3.81 (see saved msg name rule) */
277 #define VAR_ELM_STYLE_SAVE vars[V_ELM_STYLE_SAVE].current_val.p
278 #define GLO_ELM_STYLE_SAVE vars[V_ELM_STYLE_SAVE].global_val.p
279 /* Header in reply is obsolete in Pine 3.83 (see feature list) */
280 #define VAR_HEADER_IN_REPLY vars[V_HEADER_IN_REPLY].current_val.p
281 #define GLO_HEADER_IN_REPLY vars[V_HEADER_IN_REPLY].global_val.p
282 /* Feature level is obsolete in Pine 3.83 (see feature list) */
283 #define VAR_FEATURE_LEVEL vars[V_FEATURE_LEVEL].current_val.p
284 #define GLO_FEATURE_LEVEL vars[V_FEATURE_LEVEL].global_val.p
285 /* Old style reply is obsolete in Pine 3.83 (see feature list) */
286 #define VAR_OLD_STYLE_REPLY vars[V_OLD_STYLE_REPLY].current_val.p
287 #define GLO_OLD_STYLE_REPLY vars[V_OLD_STYLE_REPLY].global_val.p
288 /* Save by sender is obsolete in Pine 3.83 (see saved msg name rule) */
289 #define VAR_SAVE_BY_SENDER vars[V_SAVE_BY_SENDER].current_val.p
290 #define GLO_SAVE_BY_SENDER vars[V_SAVE_BY_SENDER].global_val.p
291 #define VAR_NNTP_SERVER vars[V_NNTP_SERVER].current_val.l
292 #define FIX_NNTP_SERVER vars[V_NNTP_SERVER].fixed_val.l
294 #define VAR_LDAP_SERVERS vars[V_LDAP_SERVERS].current_val.l
296 #define VAR_RSS_NEWS vars[V_RSS_NEWS].current_val.p
297 #define VAR_RSS_WEATHER vars[V_RSS_WEATHER].current_val.p
298 #define VAR_WP_INDEXHEIGHT vars[V_WP_INDEXHEIGHT].current_val.p
299 #define VAR_WP_INDEXLINES vars[V_WP_INDEXLINES].current_val.p
300 #define GLO_WP_INDEXHEIGHT vars[V_WP_INDEXHEIGHT].global_val.p
301 #define VAR_WP_AGGSTATE vars[V_WP_AGGSTATE].current_val.p
302 #define GLO_WP_AGGSTATE vars[V_WP_AGGSTATE].global_val.p
303 #define VAR_WP_STATE vars[V_WP_STATE].current_val.p
304 #define GLO_WP_STATE vars[V_WP_STATE].global_val.p
305 #define VAR_WP_COLUMNS vars[V_WP_COLUMNS].current_val.p
306 #define VAR_UPLOAD_CMD vars[V_UPLOAD_CMD].current_val.p
307 #define VAR_UPLOAD_CMD_PREFIX vars[V_UPLOAD_CMD_PREFIX].current_val.p
308 #define VAR_DOWNLOAD_CMD vars[V_DOWNLOAD_CMD].current_val.p
309 #define VAR_DOWNLOAD_CMD_PREFIX vars[V_DOWNLOAD_CMD_PREFIX].current_val.p
310 #define VAR_GOTO_DEFAULT_RULE vars[V_GOTO_DEFAULT_RULE].current_val.p
311 #define GLO_GOTO_DEFAULT_RULE vars[V_GOTO_DEFAULT_RULE].global_val.p
312 #define VAR_MAILCAP_PATH vars[V_MAILCAP_PATH].current_val.p
313 #define VAR_MIMETYPE_PATH vars[V_MIMETYPE_PATH].current_val.p
314 #define VAR_FIFOPATH vars[V_FIFOPATH].current_val.p
315 #define VAR_NMW_WIDTH vars[V_NMW_WIDTH].current_val.p
316 #define GLO_NMW_WIDTH vars[V_NMW_WIDTH].global_val.p
317 #define VAR_USERINPUTTIMEO vars[V_USERINPUTTIMEO].current_val.p
318 #define GLO_USERINPUTTIMEO vars[V_USERINPUTTIMEO].global_val.p
319 #define VAR_TCPOPENTIMEO vars[V_TCPOPENTIMEO].current_val.p
320 #define VAR_TCPREADWARNTIMEO vars[V_TCPREADWARNTIMEO].current_val.p
321 #define VAR_TCPWRITEWARNTIMEO vars[V_TCPWRITEWARNTIMEO].current_val.p
322 #define VAR_TCPQUERYTIMEO vars[V_TCPQUERYTIMEO].current_val.p
323 #define VAR_QUITQUERYTIMEO vars[V_QUITQUERYTIMEO].current_val.p
324 #define VAR_RSHOPENTIMEO vars[V_RSHOPENTIMEO].current_val.p
325 #define VAR_RSHPATH vars[V_RSHPATH].current_val.p
326 #define VAR_RSHCMD vars[V_RSHCMD].current_val.p
327 #define VAR_SSHOPENTIMEO vars[V_SSHOPENTIMEO].current_val.p
328 #define VAR_INCCHECKTIMEO vars[V_INCCHECKTIMEO].current_val.p
329 #define GLO_INCCHECKTIMEO vars[V_INCCHECKTIMEO].global_val.p
330 #define VAR_INCCHECKINTERVAL vars[V_INCCHECKINTERVAL].current_val.p
331 #define GLO_INCCHECKINTERVAL vars[V_INCCHECKINTERVAL].global_val.p
332 #define VAR_INC2NDCHECKINTERVAL vars[V_INC2NDCHECKINTERVAL].current_val.p
333 #define GLO_INC2NDCHECKINTERVAL vars[V_INC2NDCHECKINTERVAL].global_val.p
334 #define VAR_INCCHECKLIST vars[V_INCCHECKLIST].current_val.l
335 #define VAR_SSHPATH vars[V_SSHPATH].current_val.p
336 #define GLO_SSHPATH vars[V_SSHPATH].global_val.p
337 #define VAR_SSHCMD vars[V_SSHCMD].current_val.p
338 #define GLO_SSHCMD vars[V_SSHCMD].global_val.p
339 #define VAR_NEW_VER_QUELL vars[V_NEW_VER_QUELL].current_val.p
340 #define VAR_BROWSER vars[V_BROWSER].current_val.l
341 #define VAR_INCOMING_STARTUP vars[V_INCOMING_STARTUP].current_val.p
342 #define GLO_INCOMING_STARTUP vars[V_INCOMING_STARTUP].global_val.p
343 #define VAR_PRUNING_RULE vars[V_PRUNING_RULE].current_val.p
344 #define GLO_PRUNING_RULE vars[V_PRUNING_RULE].global_val.p
345 #define VAR_REOPEN_RULE vars[V_REOPEN_RULE].current_val.p
346 #define GLO_REOPEN_RULE vars[V_REOPEN_RULE].global_val.p
347 #define VAR_THREAD_DISP_STYLE vars[V_THREAD_DISP_STYLE].current_val.p
348 #define GLO_THREAD_DISP_STYLE vars[V_THREAD_DISP_STYLE].global_val.p
349 #define VAR_THREAD_INDEX_STYLE vars[V_THREAD_INDEX_STYLE].current_val.p
350 #define GLO_THREAD_INDEX_STYLE vars[V_THREAD_INDEX_STYLE].global_val.p
351 #define VAR_THREAD_MORE_CHAR vars[V_THREAD_MORE_CHAR].current_val.p
352 #define GLO_THREAD_MORE_CHAR vars[V_THREAD_MORE_CHAR].global_val.p
353 #define VAR_THREAD_EXP_CHAR vars[V_THREAD_EXP_CHAR].current_val.p
354 #define GLO_THREAD_EXP_CHAR vars[V_THREAD_EXP_CHAR].global_val.p
355 #define VAR_THREAD_LASTREPLY_CHAR vars[V_THREAD_LASTREPLY_CHAR].current_val.p
356 #define GLO_THREAD_LASTREPLY_CHAR vars[V_THREAD_LASTREPLY_CHAR].global_val.p
357 #define VAR_HISTORY vars[V_HISTORY].current_val.l
359 #if defined(DOS) || defined(OS2)
360 #define VAR_FILE_DIR vars[V_FILE_DIR].current_val.p
361 #define GLO_FILE_DIR vars[V_FILE_DIR].current_val.p
362 #define VAR_FOLDER_EXTENSION vars[V_FOLDER_EXTENSION].current_val.p
363 #define GLO_FOLDER_EXTENSION vars[V_FOLDER_EXTENSION].global_val.p
366 #define VAR_FONT_NAME vars[V_FONT_NAME].current_val.p
367 #define VAR_FONT_SIZE vars[V_FONT_SIZE].current_val.p
368 #define VAR_FONT_STYLE vars[V_FONT_STYLE].current_val.p
369 #define VAR_FONT_CHAR_SET vars[V_FONT_CHAR_SET].current_val.p
370 #define VAR_PRINT_FONT_NAME vars[V_PRINT_FONT_NAME].current_val.p
371 #define VAR_PRINT_FONT_SIZE vars[V_PRINT_FONT_SIZE].current_val.p
372 #define VAR_PRINT_FONT_STYLE vars[V_PRINT_FONT_STYLE].current_val.p
373 #define VAR_PRINT_FONT_CHAR_SET vars[V_PRINT_FONT_CHAR_SET].current_val.p
374 #define VAR_WINDOW_POSITION vars[V_WINDOW_POSITION].current_val.p
375 #define VAR_CURSOR_STYLE vars[V_CURSOR_STYLE].current_val.p
376 #endif /* _WINDOWS */
377 #endif /* DOS or OS2 */
379 #define VAR_NORM_FORE_COLOR vars[V_NORM_FORE_COLOR].current_val.p
380 #define GLO_NORM_FORE_COLOR vars[V_NORM_FORE_COLOR].global_val.p
381 #define VAR_NORM_BACK_COLOR vars[V_NORM_BACK_COLOR].current_val.p
382 #define GLO_NORM_BACK_COLOR vars[V_NORM_BACK_COLOR].global_val.p
383 #define VAR_REV_FORE_COLOR vars[V_REV_FORE_COLOR].current_val.p
384 #define GLO_REV_FORE_COLOR vars[V_REV_FORE_COLOR].global_val.p
385 #define VAR_REV_BACK_COLOR vars[V_REV_BACK_COLOR].current_val.p
386 #define GLO_REV_BACK_COLOR vars[V_REV_BACK_COLOR].global_val.p
387 #define VAR_TITLE_FORE_COLOR vars[V_TITLE_FORE_COLOR].current_val.p
388 #define GLO_TITLE_FORE_COLOR vars[V_TITLE_FORE_COLOR].global_val.p
389 #define VAR_TITLE_BACK_COLOR vars[V_TITLE_BACK_COLOR].current_val.p
390 #define GLO_TITLE_BACK_COLOR vars[V_TITLE_BACK_COLOR].global_val.p
391 #define VAR_TITLECLOSED_FORE_COLOR vars[V_TITLECLOSED_FORE_COLOR].current_val.p
392 #define GLO_TITLECLOSED_FORE_COLOR vars[V_TITLECLOSED_FORE_COLOR].global_val.p
393 #define VAR_TITLECLOSED_BACK_COLOR vars[V_TITLECLOSED_BACK_COLOR].current_val.p
394 #define GLO_TITLECLOSED_BACK_COLOR vars[V_TITLECLOSED_BACK_COLOR].global_val.p
395 #define VAR_FOLDER_FORE_COLOR vars[V_FOLDER_FORE_COLOR].current_val.p
396 #define GLO_FOLDER_FORE_COLOR vars[V_FOLDER_FORE_COLOR].global_val.p
397 #define VAR_FOLDER_BACK_COLOR vars[V_FOLDER_BACK_COLOR].current_val.p
398 #define GLO_FOLDER_BACK_COLOR vars[V_FOLDER_BACK_COLOR].global_val.p
399 #define VAR_DIRECTORY_FORE_COLOR vars[V_DIRECTORY_FORE_COLOR].current_val.p
400 #define GLO_DIRECTORY_FORE_COLOR vars[V_DIRECTORY_FORE_COLOR].global_val.p
401 #define VAR_DIRECTORY_BACK_COLOR vars[V_DIRECTORY_BACK_COLOR].current_val.p
402 #define GLO_DIRECTORY_BACK_COLOR vars[V_DIRECTORY_BACK_COLOR].global_val.p
403 #define VAR_FOLDER_LIST_FORE_COLOR vars[V_FOLDER_LIST_FORE_COLOR].current_val.p
404 #define GLO_FOLDER_LIST_FORE_COLOR vars[V_FOLDER_LIST_FORE_COLOR].global_val.p
405 #define VAR_FOLDER_LIST_BACK_COLOR vars[V_FOLDER_LIST_BACK_COLOR].current_val.p
406 #define GLO_FOLDER_LIST_BACK_COLOR vars[V_FOLDER_LIST_BACK_COLOR].global_val.p
407 #define VAR_STATUS_FORE_COLOR vars[V_STATUS_FORE_COLOR].current_val.p
408 #define VAR_STATUS_BACK_COLOR vars[V_STATUS_BACK_COLOR].current_val.p
409 #define VAR_HEADER_GENERAL_FORE_COLOR vars[V_HEADER_GENERAL_FORE_COLOR].current_val.p
410 #define VAR_HEADER_GENERAL_BACK_COLOR vars[V_HEADER_GENERAL_BACK_COLOR].current_val.p
411 #define VAR_IND_PLUS_FORE_COLOR vars[V_IND_PLUS_FORE_COLOR].current_val.p
412 #define GLO_IND_PLUS_FORE_COLOR vars[V_IND_PLUS_FORE_COLOR].global_val.p
413 #define VAR_IND_PLUS_BACK_COLOR vars[V_IND_PLUS_BACK_COLOR].current_val.p
414 #define GLO_IND_PLUS_BACK_COLOR vars[V_IND_PLUS_BACK_COLOR].global_val.p
415 #define VAR_IND_IMP_FORE_COLOR vars[V_IND_IMP_FORE_COLOR].current_val.p
416 #define GLO_IND_IMP_FORE_COLOR vars[V_IND_IMP_FORE_COLOR].global_val.p
417 #define VAR_IND_IMP_BACK_COLOR vars[V_IND_IMP_BACK_COLOR].current_val.p
418 #define GLO_IND_IMP_BACK_COLOR vars[V_IND_IMP_BACK_COLOR].global_val.p
419 #define VAR_IND_DEL_FORE_COLOR vars[V_IND_DEL_FORE_COLOR].current_val.p
420 #define VAR_IND_DEL_BACK_COLOR vars[V_IND_DEL_BACK_COLOR].current_val.p
421 #define VAR_IND_ANS_FORE_COLOR vars[V_IND_ANS_FORE_COLOR].current_val.p
422 #define GLO_IND_ANS_FORE_COLOR vars[V_IND_ANS_FORE_COLOR].global_val.p
423 #define VAR_IND_ANS_BACK_COLOR vars[V_IND_ANS_BACK_COLOR].current_val.p
424 #define GLO_IND_ANS_BACK_COLOR vars[V_IND_ANS_BACK_COLOR].global_val.p
425 #define VAR_IND_NEW_FORE_COLOR vars[V_IND_NEW_FORE_COLOR].current_val.p
426 #define GLO_IND_NEW_FORE_COLOR vars[V_IND_NEW_FORE_COLOR].global_val.p
427 #define VAR_IND_NEW_BACK_COLOR vars[V_IND_NEW_BACK_COLOR].current_val.p
428 #define GLO_IND_NEW_BACK_COLOR vars[V_IND_NEW_BACK_COLOR].global_val.p
429 #define VAR_IND_REC_FORE_COLOR vars[V_IND_REC_FORE_COLOR].current_val.p
430 #define VAR_IND_REC_BACK_COLOR vars[V_IND_REC_BACK_COLOR].current_val.p
431 #define VAR_IND_FWD_FORE_COLOR vars[V_IND_FWD_FORE_COLOR].current_val.p
432 #define VAR_IND_FWD_BACK_COLOR vars[V_IND_FWD_BACK_COLOR].current_val.p
433 #define VAR_IND_UNS_FORE_COLOR vars[V_IND_UNS_FORE_COLOR].current_val.p
434 #define VAR_IND_UNS_BACK_COLOR vars[V_IND_UNS_BACK_COLOR].current_val.p
435 #define VAR_IND_OP_FORE_COLOR vars[V_IND_OP_FORE_COLOR].current_val.p
436 #define GLO_IND_OP_FORE_COLOR vars[V_IND_OP_FORE_COLOR].global_val.p
437 #define VAR_IND_OP_BACK_COLOR vars[V_IND_OP_BACK_COLOR].current_val.p
438 #define GLO_IND_OP_BACK_COLOR vars[V_IND_OP_BACK_COLOR].global_val.p
439 #define VAR_IND_SUBJ_FORE_COLOR vars[V_IND_SUBJ_FORE_COLOR].current_val.p
440 #define VAR_IND_SUBJ_BACK_COLOR vars[V_IND_SUBJ_BACK_COLOR].current_val.p
441 #define VAR_IND_FROM_FORE_COLOR vars[V_IND_FROM_FORE_COLOR].current_val.p
442 #define VAR_IND_FROM_BACK_COLOR vars[V_IND_FROM_BACK_COLOR].current_val.p
443 #define VAR_IND_HIPRI_FORE_COLOR vars[V_IND_HIPRI_FORE_COLOR].current_val.p
444 #define VAR_IND_HIPRI_BACK_COLOR vars[V_IND_HIPRI_BACK_COLOR].current_val.p
445 #define VAR_IND_LOPRI_FORE_COLOR vars[V_IND_LOPRI_FORE_COLOR].current_val.p
446 #define VAR_IND_LOPRI_BACK_COLOR vars[V_IND_LOPRI_BACK_COLOR].current_val.p
447 #define VAR_IND_ARR_FORE_COLOR vars[V_IND_ARR_FORE_COLOR].current_val.p
448 #define VAR_IND_ARR_BACK_COLOR vars[V_IND_ARR_BACK_COLOR].current_val.p
449 #define VAR_KEYLABEL_FORE_COLOR vars[V_KEYLABEL_FORE_COLOR].current_val.p
450 #define VAR_KEYLABEL_BACK_COLOR vars[V_KEYLABEL_BACK_COLOR].current_val.p
451 #define VAR_KEYNAME_FORE_COLOR vars[V_KEYNAME_FORE_COLOR].current_val.p
452 #define VAR_KEYNAME_BACK_COLOR vars[V_KEYNAME_BACK_COLOR].current_val.p
453 #define VAR_SLCTBL_FORE_COLOR vars[V_SLCTBL_FORE_COLOR].current_val.p
454 #define VAR_SLCTBL_BACK_COLOR vars[V_SLCTBL_BACK_COLOR].current_val.p
455 #define VAR_METAMSG_FORE_COLOR vars[V_METAMSG_FORE_COLOR].current_val.p
456 #define GLO_METAMSG_FORE_COLOR vars[V_METAMSG_FORE_COLOR].global_val.p
457 #define VAR_METAMSG_BACK_COLOR vars[V_METAMSG_BACK_COLOR].current_val.p
458 #define GLO_METAMSG_BACK_COLOR vars[V_METAMSG_BACK_COLOR].global_val.p
459 #define VAR_QUOTE1_FORE_COLOR vars[V_QUOTE1_FORE_COLOR].current_val.p
460 #define GLO_QUOTE1_FORE_COLOR vars[V_QUOTE1_FORE_COLOR].global_val.p
461 #define VAR_QUOTE1_BACK_COLOR vars[V_QUOTE1_BACK_COLOR].current_val.p
462 #define GLO_QUOTE1_BACK_COLOR vars[V_QUOTE1_BACK_COLOR].global_val.p
463 #define VAR_QUOTE2_FORE_COLOR vars[V_QUOTE2_FORE_COLOR].current_val.p
464 #define GLO_QUOTE2_FORE_COLOR vars[V_QUOTE2_FORE_COLOR].global_val.p
465 #define VAR_QUOTE2_BACK_COLOR vars[V_QUOTE2_BACK_COLOR].current_val.p
466 #define GLO_QUOTE2_BACK_COLOR vars[V_QUOTE2_BACK_COLOR].global_val.p
467 #define VAR_QUOTE3_FORE_COLOR vars[V_QUOTE3_FORE_COLOR].current_val.p
468 #define GLO_QUOTE3_FORE_COLOR vars[V_QUOTE3_FORE_COLOR].global_val.p
469 #define VAR_QUOTE3_BACK_COLOR vars[V_QUOTE3_BACK_COLOR].current_val.p
470 #define GLO_QUOTE3_BACK_COLOR vars[V_QUOTE3_BACK_COLOR].global_val.p
471 #define VAR_INCUNSEEN_FORE_COLOR vars[V_INCUNSEEN_FORE_COLOR].current_val.p
472 #define VAR_INCUNSEEN_BACK_COLOR vars[V_INCUNSEEN_BACK_COLOR].current_val.p
473 #define VAR_SIGNATURE_FORE_COLOR vars[V_SIGNATURE_FORE_COLOR].current_val.p
474 #define GLO_SIGNATURE_FORE_COLOR vars[V_SIGNATURE_FORE_COLOR].global_val.p
475 #define VAR_SIGNATURE_BACK_COLOR vars[V_SIGNATURE_BACK_COLOR].current_val.p
476 #define GLO_SIGNATURE_BACK_COLOR vars[V_SIGNATURE_BACK_COLOR].global_val.p
477 #define VAR_PROMPT_FORE_COLOR vars[V_PROMPT_FORE_COLOR].current_val.p
478 #define VAR_PROMPT_BACK_COLOR vars[V_PROMPT_BACK_COLOR].current_val.p
479 #define VAR_VIEW_HDR_COLORS vars[V_VIEW_HDR_COLORS].current_val.l
480 #define VAR_INDEX_TOKEN_COLORS vars[V_INDEX_TOKEN_COLORS].current_val.l
481 #define VAR_HTML_DIRECTORY vars[V_HTML_DIRECTORY].current_val.p
482 #define GLO_HTML_DIRECTORY vars[V_HTML_DIRECTORY].global_val.p
484 #define VAR_PUBLICCERT_DIR vars[V_PUBLICCERT_DIR].current_val.p
485 #define GLO_PUBLICCERT_DIR vars[V_PUBLICCERT_DIR].global_val.p
486 #define VAR_PRIVATEKEY_DIR vars[V_PRIVATEKEY_DIR].current_val.p
487 #define GLO_PRIVATEKEY_DIR vars[V_PRIVATEKEY_DIR].global_val.p
488 #define VAR_CACERT_DIR vars[V_CACERT_DIR].current_val.p
489 #define GLO_CACERT_DIR vars[V_CACERT_DIR].global_val.p
490 #define VAR_PUBLICCERT_CONTAINER vars[V_PUBLICCERT_CONTAINER].current_val.p
491 #define VAR_PRIVATEKEY_CONTAINER vars[V_PRIVATEKEY_CONTAINER].current_val.p
492 #define VAR_CACERT_CONTAINER vars[V_CACERT_CONTAINER].current_val.p
497 * Define some bitmap operations for manipulating features.
500 #define _BITCHAR(bit) ((bit) / 8)
501 #define _BITBIT(bit) (1 << ((bit) % 8))
504 #define bitnset(bit,map) (((map)[_BITCHAR(bit)] & _BITBIT(bit)) ? 1 : 0)
506 #define setbitn(bit,map) ((map)[_BITCHAR(bit)] |= _BITBIT(bit))
508 #define clrbitn(bit,map) ((map)[_BITCHAR(bit)] &= ~_BITBIT(bit))
511 /* Feature list support */
512 /* Is feature "feature" turned on? */
513 #define F_ON(feature,ps) (bitnset((feature),(ps)->feature_list))
514 #define F_OFF(feature,ps) (!F_ON(feature,ps))
515 #define F_TURN_ON(feature,ps) (setbitn((feature),(ps)->feature_list))
516 #define F_TURN_OFF(feature,ps) (clrbitn((feature),(ps)->feature_list))
517 /* turn off or on depending on value */
518 #define F_SET(feature,ps,value) ((value) ? F_TURN_ON((feature),(ps)) \
519 : F_TURN_OFF((feature),(ps)))
522 * Save message rules. if these grow, widen pine
523 * struct's save_msg_rule...
525 #define SAV_RULE_DEFLT 0
526 #define SAV_RULE_LAST 1
527 #define SAV_RULE_FROM 2
528 #define SAV_RULE_NICK_FROM_DEF 3
529 #define SAV_RULE_NICK_FROM 4
530 #define SAV_RULE_FCC_FROM_DEF 5
531 #define SAV_RULE_FCC_FROM 6
532 #define SAV_RULE_RN_FROM_DEF 7
533 #define SAV_RULE_RN_FROM 8
534 #define SAV_RULE_SENDER 9
535 #define SAV_RULE_NICK_SENDER_DEF 10
536 #define SAV_RULE_NICK_SENDER 11
537 #define SAV_RULE_FCC_SENDER_DEF 12
538 #define SAV_RULE_FCC_SENDER 13
539 #define SAV_RULE_RN_SENDER_DEF 14
540 #define SAV_RULE_RN_SENDER 15
541 #define SAV_RULE_RECIP 16
542 #define SAV_RULE_NICK_RECIP_DEF 17
543 #define SAV_RULE_NICK_RECIP 18
544 #define SAV_RULE_FCC_RECIP_DEF 19
545 #define SAV_RULE_FCC_RECIP 20
546 #define SAV_RULE_RN_RECIP_DEF 21
547 #define SAV_RULE_RN_RECIP 22
548 #define SAV_RULE_REPLYTO 23
549 #define SAV_RULE_NICK_REPLYTO_DEF 24
550 #define SAV_RULE_NICK_REPLYTO 25
551 #define SAV_RULE_FCC_REPLYTO_DEF 26
552 #define SAV_RULE_FCC_REPLYTO 27
553 #define SAV_RULE_RN_REPLYTO_DEF 28
554 #define SAV_RULE_RN_REPLYTO 29
557 * Fcc rules. if these grow, widen pine
558 * struct's fcc_rule...
560 #define FCC_RULE_DEFLT 0
561 #define FCC_RULE_RECIP 1
562 #define FCC_RULE_LAST 2
563 #define FCC_RULE_NICK 3
564 #define FCC_RULE_NICK_RECIP 4
565 #define FCC_RULE_CURRENT 5
568 * Addrbook sorting rules. if these grow, widen pine
569 * struct's ab_sort_rule...
571 #define AB_SORT_RULE_FULL_LISTS 0
572 #define AB_SORT_RULE_FULL 1
573 #define AB_SORT_RULE_NICK_LISTS 2
574 #define AB_SORT_RULE_NICK 3
575 #define AB_SORT_RULE_NONE 4
578 * Incoming startup rules. if these grow, widen pine
579 * struct's inc_startup_rule and reset_startup_rule().
581 #define IS_FIRST_UNSEEN 0
582 #define IS_FIRST_RECENT 1
583 #define IS_FIRST_IMPORTANT 2
584 #define IS_FIRST_IMPORTANT_OR_UNSEEN 3
585 #define IS_FIRST_IMPORTANT_OR_RECENT 4
588 #define IS_NOTSET 7 /* for reset version */
591 * Pruning rules. If these grow, widen pruning_rule.
593 #define PRUNE_ASK_AND_ASK 0
594 #define PRUNE_ASK_AND_NO 1
595 #define PRUNE_YES_AND_ASK 2
596 #define PRUNE_YES_AND_NO 3
597 #define PRUNE_NO_AND_ASK 4
598 #define PRUNE_NO_AND_NO 5
601 * Folder reopen rules. If these grow, widen reopen_rule.
603 #define REOPEN_YES_YES 0
604 #define REOPEN_YES_ASK_Y 1
605 #define REOPEN_YES_ASK_N 2
606 #define REOPEN_YES_NO 3
607 #define REOPEN_ASK_ASK_Y 4
608 #define REOPEN_ASK_ASK_N 5
609 #define REOPEN_ASK_NO_Y 6
610 #define REOPEN_ASK_NO_N 7
611 #define REOPEN_NO_NO 8
614 * Goto default rules.
616 #define GOTO_INBOX_RECENT_CLCTN 0
617 #define GOTO_INBOX_FIRST_CLCTN 1
618 #define GOTO_LAST_FLDR 2
619 #define GOTO_FIRST_CLCTN 3
620 #define GOTO_FIRST_CLCTN_DEF_INBOX 4
623 * Thread display styles. If these grow, widen thread_disp_rule.
625 #define THREAD_NONE 0
626 #define THREAD_STRUCT 1
627 #define THREAD_MUTTLIKE 2
628 #define THREAD_INDENT_SUBJ1 3
629 #define THREAD_INDENT_SUBJ2 4
630 #define THREAD_INDENT_FROM1 5
631 #define THREAD_INDENT_FROM2 6
632 #define THREAD_STRUCT_FROM 7
635 * Thread index styles. If these grow, widen thread_index_rule.
637 #define THRDINDX_EXP 0
638 #define THRDINDX_COLL 1
639 #define THRDINDX_SEP 2
640 #define THRDINDX_SEP_AUTO 3
643 * Titlebar color styles. If these grow, widen titlebar_color_style.
645 #define TBAR_COLOR_DEFAULT 0
646 #define TBAR_COLOR_INDEXLINE 1
647 #define TBAR_COLOR_REV_INDEXLINE 2
650 * PC-Pine update registry modes
653 #define UREG_NORMAL 0
654 #define UREG_ALWAYS_SET 1
655 #define UREG_NEVER_SET 2
660 * Folder list sort rules
662 #define FLD_SORT_ALPHA 0
663 #define FLD_SORT_ALPHA_DIR_LAST 1
664 #define FLD_SORT_ALPHA_DIR_FIRST 2
671 #define COL_TERMDEF 1
674 #define COL_ANSI256 4
677 /* styles for apply_rev_color() */
678 #define IND_COL_FLIP 0
679 #define IND_COL_REV 1
681 #define IND_COL_FG_NOAMBIG 3
683 #define IND_COL_BG_NOAMBIG 5
688 * Macros to help set numeric pinerc variables. Defined here are the
689 * allowed min and max values as well as the name of the var as it
690 * should be displayed in error messages.
692 #define Q_SUPP_LIMIT (4)
693 #define Q_DEL_ALL (-10)
694 #define SVAR_OVERLAP(ps,n,e,el) strtoval((ps)->VAR_OVERLAP, \
695 &(n), 0, 20, 0, (e), \
698 #define SVAR_MAXREMSTREAM(ps,n,e,el) strtoval((ps)->VAR_MAXREMSTREAM, \
699 &(n), 0, 15, 0, (e), \
701 "Max-Remote-Connections")
702 #define SVAR_MARGIN(ps,n,e,el) strtoval((ps)->VAR_MARGIN, \
703 &(n), 0, 20, 0, (e), \
706 #define SVAR_FILLCOL(ps,n,e,el) strtoval((ps)->VAR_FILLCOL, \
707 &(n), 0, MAX_FILLCOL, 0, (e), \
709 "Composer-Wrap-Column")
710 #define SVAR_QUOTE_SUPPRESSION(ps,n,e,el) strtoval((ps)->VAR_QUOTE_SUPPRESSION, \
711 &(n), -(Q_SUPP_LIMIT-1), \
712 1000, Q_DEL_ALL, (e), \
714 "Quote-Suppression-Threshold")
715 #define SVAR_DEADLETS(ps,n,e,el) strtoval((ps)->VAR_DEADLETS, \
716 &(n), 0, 9, 0, (e), \
719 #define SVAR_MSGDLAY(ps,n,e,el) strtoval((ps)->VAR_STATUS_MSG_DELAY, \
720 &(n), -10, 30, 0, (e), \
722 "Status-Message-Delay")
723 #define SVAR_ACTIVEINTERVAL(ps,n,e,el) strtoval((ps)->VAR_ACTIVE_MSG_INTERVAL, \
724 &(n), 0, 20, 0, (e), \
726 "Active-Msg-Updates-Per-Second")
727 #define SVAR_MAILCHK(ps,n,e,el) strtoval((ps)->VAR_MAILCHECK, \
728 &(n), 15, 30000, 0, (e), \
730 "Mail-Check-Interval")
731 #define SVAR_MAILCHKNONCURR(ps,n,e,el) strtoval((ps)->VAR_MAILCHECKNONCURR, \
732 &(n), 15, 30000, 0, (e), \
734 "Mail-Check-Interval-Noncurrent")
735 #define SVAR_AB_HIST(ps,n,e,el) strtoval((ps)->VAR_REMOTE_ABOOK_HISTORY, \
736 &(n), 0, 100, 0, (e), \
738 "Remote-Abook-History")
739 #define SVAR_AB_VALID(ps,n,e,el) strtoval((ps)->VAR_REMOTE_ABOOK_VALIDITY, \
740 &(n), -1, 30000, 0, (e), \
742 "Remote-Abook-Validity")
743 #define SVAR_USER_INPUT(ps,n,e,el) strtoval((ps)->VAR_USERINPUTTIMEO, \
744 &(n), 0, 1000, 0, (e), \
746 "User-Input-Timeout")
747 #define SVAR_TCP_OPEN(ps,n,e,el) strtoval((ps)->VAR_TCPOPENTIMEO, \
748 &(n), 5, 30000, 5, (e), \
751 #define SVAR_TCP_READWARN(ps,n,e,el) strtoval((ps)->VAR_TCPREADWARNTIMEO, \
752 &(n), 5, 30000, 5, (e), \
754 "Tcp-Read-Warning-Timeout")
755 #define SVAR_TCP_WRITEWARN(ps,n,e,el) strtoval((ps)->VAR_TCPWRITEWARNTIMEO, \
756 &(n), 5, 30000, 0, (e), \
758 "Tcp-Write-Warning-Timeout")
759 #define SVAR_TCP_QUERY(ps,n,e,el) strtoval((ps)->VAR_TCPQUERYTIMEO, \
760 &(n), 5, 30000, 0, (e), \
763 #define SVAR_QUIT_QUERY_TIMEO(ps,n,e,el) strtoval((ps)->VAR_QUITQUERYTIMEO, \
764 &(n), 0, 30000, 0, (e), \
766 "Reopen-Folder-Timeout")
767 #define SVAR_RSH_OPEN(ps,n,e,el) strtoval((ps)->VAR_RSHOPENTIMEO, \
768 &(n), 5, 30000, 0, (e), \
771 #define SVAR_SSH_OPEN(ps,n,e,el) strtoval((ps)->VAR_SSHOPENTIMEO, \
772 &(n), 5, 30000, 0, (e), \
775 #define SVAR_INC_CHECK_TIMEO(ps,n,e,el) strtoval((ps)->VAR_INCCHECKTIMEO, \
776 &(n), 1, 30000, 1, (e), \
778 "Incoming-Check-Timeout")
779 #define SVAR_INC_CHECK_INTERV(ps,n,e,el) strtoval((ps)->VAR_INCCHECKINTERVAL, \
780 &(n), 15, 30000, 0, (e), \
782 "Incoming-Check-Interval")
784 #define SVAR_INC_2NDCHECK_INTERV(ps,n,e,el) strtoval((ps)->VAR_INC2NDCHECKINTERVAL, \
785 &(n), 15, 30000, 0, (e), \
787 "Incoming-Secondary-Check-Interval")
789 #define SVAR_NNTPRANGE(ps,n,e,el) strtolval((ps)->VAR_NNTPRANGE, \
790 &(n), 0L, 30000L, 0L, (e), \
793 #define SVAR_MAILDCHK(ps,n,e,el) strtolval((ps)->VAR_MAILDROPCHECK, \
794 &(n), 60L, 30000L, 0L, (e), \
796 "Maildrop-Check-Minimum")
797 #define SVAR_NMW_WIDTH(ps,n,e,el) strtoval((ps)->VAR_NMW_WIDTH, \
798 &(n), 20, 170, 0, (e), \
800 "NewMail-Window-Width")
803 /*----------------------------------------------------------------------
804 struct for pruning old Fcc, usually "sent-mail" folders.
812 #define PVAL(v,w) ((v) ? (((w) == Main) ? (v)->main_user_val.p : \
813 (v)->post_user_val.p) : NULL)
814 #define APVAL(v,w) ((v) ? (((w) == Main) ? &(v)->main_user_val.p : \
815 &(v)->post_user_val.p) : NULL)
816 #define LVAL(v,w) ((v) ? (((w) == Main) ? (v)->main_user_val.l : \
817 (v)->post_user_val.l) : NULL)
818 #define ALVAL(v,w) ((v) ? (((w) == Main) ? &(v)->main_user_val.l : \
819 &(v)->post_user_val.l) : NULL)
822 /* use shortname if present, else regular long name */
823 #define S_OR_L(v) (((v) && (v)->shortname) ? (v)->shortname : \
824 ((v) ? (v)->name : NULL))
828 * Flags for write_pinerc
831 #define WRP_NOUSER 0x01
832 #define WRP_PRESERV_WRITTEN 0x02
835 #define ALL_EXCEPT "all-except"
836 #define INHERIT "INHERIT"
837 #define HIDDEN_PREF "Normally Hidden Preferences"
838 #define WYSE_PRINTER "attached-to-wyse"
839 #define METASTR "\nremote-abook-metafile="
842 #define CONF_TXT_T char
845 /* exported prototypes */
846 void init_init_vars(struct pine
*);
847 void init_pinerc(struct pine
*, char **);
848 void init_vars(struct pine
*, void (*)(struct pine
*, char **));
849 char *feature_list_section(FEATURE_S
*);
850 FEATURE_S
*feature_list(int);
851 int feature_list_index(int);
852 int feature_list_id(char *);
853 char *feature_list_name(int);
854 struct variable
*var_from_name(char *);
855 HelpType
feature_list_help(int);
856 void process_feature_list(struct pine
*, char **, int , int, int);
857 void cur_rule_value(struct variable
*, int, int);
858 NAMEVAL_S
*save_msg_rules(int);
859 NAMEVAL_S
*fcc_rules(int);
860 NAMEVAL_S
*ab_sort_rules(int);
861 NAMEVAL_S
*col_style(int);
862 NAMEVAL_S
*index_col_style(int);
863 NAMEVAL_S
*titlebar_col_style(int);
864 NAMEVAL_S
*fld_sort_rules(int);
865 NAMEVAL_S
*incoming_startup_rules(int);
866 NAMEVAL_S
*startup_rules(int);
867 NAMEVAL_S
*pruning_rules(int);
868 NAMEVAL_S
*reopen_rules(int);
869 NAMEVAL_S
*thread_disp_styles(int);
870 NAMEVAL_S
*thread_index_styles(int);
871 NAMEVAL_S
*goto_rules(int);
872 NAMEVAL_S
*pat_fldr_types(int);
873 NAMEVAL_S
*inabook_fldr_types(int);
874 NAMEVAL_S
*filter_types(int);
875 NAMEVAL_S
*role_repl_types(int);
876 NAMEVAL_S
*role_forw_types(int);
877 NAMEVAL_S
*role_comp_types(int);
878 NAMEVAL_S
*role_status_types(int);
879 NAMEVAL_S
*msg_state_types(int);
881 NAMEVAL_S
*ldap_search_rules(int);
882 NAMEVAL_S
*ldap_search_types(int);
883 NAMEVAL_S
*ldap_search_scope(int);
885 void set_current_val(struct variable
*, int, int);
886 void set_news_spec_current_val(int, int);
887 void set_feature_list_current_val(struct variable
*);
888 char *expand_variables(char *, size_t, char *, int);
889 void init_error(struct pine
*, int, int, int, char *);
890 void read_pinerc(PINERC_S
*, struct variable
*, ParsePinerc
);
891 int write_pinerc(struct pine
*, EditWhich
, int);
892 void quit_to_edit_msg(PINERC_S
*);
893 int var_in_pinerc(char *);
894 void dump_global_conf(void);
895 void dump_new_pinerc(char *);
896 int set_variable(int, char *, int, int, EditWhich
);
897 int set_variable_list(int, char **, int, EditWhich
);
898 void set_current_color_vals(struct pine
*);
899 int var_defaults_to_rev(struct variable
*);
900 void set_custom_spec_colors(struct pine
*);
901 SPEC_COLOR_S
*spec_color_from_var(char *, int);
902 SPEC_COLOR_S
*spec_colors_from_varlist(char **, int);
903 char *var_from_spec_color(SPEC_COLOR_S
*);
904 char **varlist_from_spec_colors(SPEC_COLOR_S
*);
905 void update_posting_charset(struct pine
*, int);
906 int test_old_growth_bits(struct pine
*, int);
907 int feature_gets_an_x(struct pine
*, struct variable
*, FEATURE_S
*, char **, EditWhich
);
908 int longest_feature_comment(struct pine
*, EditWhich
);
909 void toggle_feature(struct pine
*, struct variable
*, FEATURE_S
*, int, EditWhich
);
910 int feature_in_list(char **, char *);
911 int test_feature(char **, char *, int);
912 void set_feature(char ***, char *, int);
913 int reset_character_set_stuff(char **);
914 void parse_printer(char *, char **, char **, char **, char **, char **, char **);
915 int copy_pinerc(char *, char *, char **);
916 int copy_abook(char *, char *, char **);
917 HelpType
config_help(int, int);
918 int printer_value_check_and_adjust(void);
919 char **get_supported_options(void);
920 unsigned reset_startup_rule(MAILSTREAM
*);
921 void free_pinerc_lines(PINERC_LINE
**);
922 void panic1(char *, char *);
923 #if !defined(_WINDOWS) || defined(WINDOWS_UNIXSSL_CERTS)
924 void set_system_certs_path(struct pine
*);
925 void set_system_certs_container(struct pine
*);
926 void set_user_certs_path(struct pine
*);
927 void set_user_certs_container(struct pine
*);
930 /* mandatory to implement prototypes */
931 int set_input_timeout(int);
932 int get_input_timeout();
934 /* decide what to do: return 0 to continue, nonzero to abort pinerc write */
935 int unexpected_pinerc_change();
938 #endif /* PITH_CONFIG_INCLUDED */