* Update to version 2.19.5
[alpine.git] / pith / conftype.h
blob091481d1c181234be8b3e6000dfc6f943c195da5
1 /*
2 * $Id: conftype.h 1155 2008-08-21 18:33:21Z hubert@u.washington.edu $
4 * ========================================================================
5 * Copyright 2006-2008 University of Washington
6 * Copyright 2013-2014 Eduardo Chappa
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_CONFTYPE_INCLUDED
18 #define PITH_CONFTYPE_INCLUDED
21 #include "../pith/helptext.h"
22 #include "../pith/remtype.h"
25 typedef enum {Sapling, Seedling, Seasoned} FeatureLevel;
29 * The array is initialized in pith/conf.c so the order of that initialization
30 * must correspond to the order of the values here. The order is
31 * significant in that it determines the order that the variables
32 * are written into the pinerc file and the order they show up in in the
33 * config screen.
35 typedef enum { V_PERSONAL_NAME = 0
36 , V_USER_ID
37 , V_USER_DOMAIN
38 , V_SMTP_SERVER
39 , V_NNTP_SERVER
40 , V_INBOX_PATH
41 , V_ARCHIVED_FOLDERS
42 , V_PRUNED_FOLDERS
43 , V_DEFAULT_FCC
44 , V_DEFAULT_SAVE_FOLDER
45 , V_POSTPONED_FOLDER
46 , V_READ_MESSAGE_FOLDER
47 , V_FORM_FOLDER
48 , V_TRASH_FOLDER
49 , V_LITERAL_SIG
50 , V_SIGNATURE_FILE
51 , V_FEATURE_LIST
52 , V_INIT_CMD_LIST
53 , V_COMP_HDRS
54 , V_CUSTOM_HDRS
55 , V_VIEW_HEADERS
56 , V_VIEW_MARGIN_LEFT
57 , V_VIEW_MARGIN_RIGHT
58 , V_QUOTE_SUPPRESSION
59 , V_SAVED_MSG_NAME_RULE
60 , V_FCC_RULE
61 , V_SORT_KEY
62 , V_AB_SORT_RULE
63 , V_FLD_SORT_RULE
64 , V_GOTO_DEFAULT_RULE
65 , V_INCOMING_STARTUP
66 , V_PRUNING_RULE
67 , V_REOPEN_RULE
68 , V_THREAD_DISP_STYLE
69 , V_THREAD_INDEX_STYLE
70 , V_THREAD_MORE_CHAR
71 , V_THREAD_EXP_CHAR
72 , V_THREAD_LASTREPLY_CHAR
73 #ifndef _WINDOWS
74 , V_CHAR_SET
75 , V_OLD_CHAR_SET
76 , V_KEY_CHAR_SET
77 #endif /* ! _WINDOWS */
78 , V_POST_CHAR_SET
79 , V_UNK_CHAR_SET
80 , V_EDITOR
81 , V_SPELLER
82 , V_FILLCOL
83 , V_REPLY_STRING
84 , V_REPLY_INTRO
85 , V_QUOTE_REPLACE_STRING
86 , V_WORDSEPS
87 , V_EMPTY_HDR_MSG
88 , V_IMAGE_VIEWER
89 , V_USE_ONLY_DOMAIN_NAME
90 , V_BUGS_FULLNAME
91 , V_BUGS_ADDRESS
92 , V_BUGS_EXTRAS
93 , V_SUGGEST_FULLNAME
94 , V_SUGGEST_ADDRESS
95 , V_LOCAL_FULLNAME
96 , V_LOCAL_ADDRESS
97 , V_FORCED_ABOOK_ENTRY
98 , V_KBLOCK_PASSWD_COUNT
99 , V_DISPLAY_FILTERS
100 , V_SEND_FILTER
101 , V_ALT_ADDRS
102 , V_KEYWORDS
103 , V_KW_BRACES
104 , V_OPENING_SEP
105 , V_ABOOK_FORMATS
106 , V_INDEX_FORMAT
107 , V_OVERLAP
108 , V_MARGIN
109 , V_STATUS_MSG_DELAY
110 , V_ACTIVE_MSG_INTERVAL
111 , V_SLEEP
112 , V_MAILCHECK
113 , V_MAILCHECKNONCURR
114 , V_MAILDROPCHECK
115 , V_NNTPRANGE
116 , V_NEWSRC_PATH
117 , V_NEWS_ACTIVE_PATH
118 , V_NEWS_SPOOL_DIR
119 , V_UPLOAD_CMD
120 , V_UPLOAD_CMD_PREFIX
121 , V_DOWNLOAD_CMD
122 , V_DOWNLOAD_CMD_PREFIX
123 , V_MAILCAP_PATH
124 , V_MIMETYPE_PATH
125 , V_BROWSER
126 , V_MAXREMSTREAM
127 , V_PERMLOCKED
128 , V_INCCHECKTIMEO
129 , V_INCCHECKINTERVAL
130 , V_INC2NDCHECKINTERVAL
131 , V_INCCHECKLIST
132 , V_DEADLETS
133 #if !defined(DOS) && !defined(OS2) && !defined(LEAVEOUTFIFO)
134 , V_FIFOPATH
135 #endif
136 , V_NMW_WIDTH
138 * Starting here, the rest of the variables are hidden by default in config
139 * screen. They are exposed with expose-hidden-config feature.
141 , V_INCOMING_FOLDERS
142 , V_MAIL_DIRECTORY
143 , V_FOLDER_SPEC
144 , V_NEWS_SPEC
145 , V_ADDRESSBOOK
146 , V_GLOB_ADDRBOOK
147 , V_STANDARD_PRINTER
148 , V_LAST_TIME_PRUNE_QUESTION
149 , V_LAST_VERS_USED
150 , V_SENDMAIL_PATH
151 , V_OPER_DIR
152 , V_USERINPUTTIMEO
153 #ifdef DEBUGJOURNAL
154 , V_DEBUGMEM /* obsolete */
155 #endif
156 , V_TCPOPENTIMEO
157 , V_TCPREADWARNTIMEO
158 , V_TCPWRITEWARNTIMEO
159 , V_TCPQUERYTIMEO
160 , V_RSHCMD
161 , V_RSHPATH
162 , V_RSHOPENTIMEO
163 , V_SSHCMD
164 , V_SSHPATH
165 , V_SSHOPENTIMEO
166 , V_NEW_VER_QUELL
167 , V_DISABLE_DRIVERS
168 , V_DISABLE_AUTHS
169 , V_REMOTE_ABOOK_METADATA
170 , V_REMOTE_ABOOK_HISTORY
171 , V_REMOTE_ABOOK_VALIDITY
172 , V_PRINTER
173 , V_PERSONAL_PRINT_COMMAND
174 , V_PERSONAL_PRINT_CATEGORY
175 , V_PATTERNS /* obsolete */
176 , V_PAT_ROLES
177 , V_PAT_FILTS
178 , V_PAT_FILTS_OLD /* obsolete */
179 , V_PAT_SCORES
180 , V_PAT_SCORES_OLD /* obsolete */
181 , V_PAT_INCOLS
182 , V_PAT_OTHER
183 , V_PAT_SRCH
184 , V_ELM_STYLE_SAVE /* obsolete */
185 , V_HEADER_IN_REPLY /* obsolete */
186 , V_FEATURE_LEVEL /* obsolete */
187 , V_OLD_STYLE_REPLY /* obsolete */
188 , V_COMPOSE_MIME /* obsolete */
189 , V_SHOW_ALL_CHARACTERS /* obsolete */
190 , V_SAVE_BY_SENDER /* obsolete */
191 #if defined(DOS) || defined(OS2)
192 , V_FILE_DIR
193 , V_FOLDER_EXTENSION
194 #endif
195 #ifndef _WINDOWS
196 , V_COLOR_STYLE
197 #endif
198 , V_INDEX_COLOR_STYLE
199 , V_TITLEBAR_COLOR_STYLE
200 , V_NORM_FORE_COLOR
201 , V_NORM_BACK_COLOR
202 , V_REV_FORE_COLOR
203 , V_REV_BACK_COLOR
204 , V_TITLE_FORE_COLOR
205 , V_TITLE_BACK_COLOR
206 , V_TITLECLOSED_FORE_COLOR
207 , V_TITLECLOSED_BACK_COLOR
208 , V_FOLDER_FORE_COLOR
209 , V_FOLDER_BACK_COLOR
210 , V_DIRECTORY_FORE_COLOR
211 , V_DIRECTORY_BACK_COLOR
212 , V_FOLDER_LIST_FORE_COLOR
213 , V_FOLDER_LIST_BACK_COLOR
214 , V_STATUS_FORE_COLOR
215 , V_STATUS_BACK_COLOR
216 , V_KEYLABEL_FORE_COLOR
217 , V_KEYLABEL_BACK_COLOR
218 , V_KEYNAME_FORE_COLOR
219 , V_KEYNAME_BACK_COLOR
220 , V_SLCTBL_FORE_COLOR
221 , V_SLCTBL_BACK_COLOR
222 , V_METAMSG_FORE_COLOR
223 , V_METAMSG_BACK_COLOR
224 , V_QUOTE1_FORE_COLOR
225 , V_QUOTE1_BACK_COLOR
226 , V_QUOTE2_FORE_COLOR
227 , V_QUOTE2_BACK_COLOR
228 , V_QUOTE3_FORE_COLOR
229 , V_QUOTE3_BACK_COLOR
230 , V_INCUNSEEN_FORE_COLOR
231 , V_INCUNSEEN_BACK_COLOR
232 , V_SIGNATURE_FORE_COLOR
233 , V_SIGNATURE_BACK_COLOR
234 , V_PROMPT_FORE_COLOR
235 , V_PROMPT_BACK_COLOR
236 , V_HEADER_GENERAL_FORE_COLOR
237 , V_HEADER_GENERAL_BACK_COLOR
238 , V_IND_PLUS_FORE_COLOR
239 , V_IND_PLUS_BACK_COLOR
240 , V_IND_IMP_FORE_COLOR
241 , V_IND_IMP_BACK_COLOR
242 , V_IND_DEL_FORE_COLOR
243 , V_IND_DEL_BACK_COLOR
244 , V_IND_ANS_FORE_COLOR
245 , V_IND_ANS_BACK_COLOR
246 , V_IND_NEW_FORE_COLOR
247 , V_IND_NEW_BACK_COLOR
248 , V_IND_REC_FORE_COLOR
249 , V_IND_REC_BACK_COLOR
250 , V_IND_FWD_FORE_COLOR
251 , V_IND_FWD_BACK_COLOR
252 , V_IND_UNS_FORE_COLOR
253 , V_IND_UNS_BACK_COLOR
254 , V_IND_HIPRI_FORE_COLOR
255 , V_IND_HIPRI_BACK_COLOR
256 , V_IND_LOPRI_FORE_COLOR
257 , V_IND_LOPRI_BACK_COLOR
258 , V_IND_ARR_FORE_COLOR
259 , V_IND_ARR_BACK_COLOR
260 , V_IND_SUBJ_FORE_COLOR
261 , V_IND_SUBJ_BACK_COLOR
262 , V_IND_FROM_FORE_COLOR
263 , V_IND_FROM_BACK_COLOR
264 , V_IND_OP_FORE_COLOR
265 , V_IND_OP_BACK_COLOR
266 , V_INDEX_TOKEN_COLORS
267 , V_VIEW_HDR_COLORS
268 , V_KW_COLORS
269 #if defined(DOS) || defined(OS2)
270 #ifdef _WINDOWS
271 , V_FONT_NAME
272 , V_FONT_SIZE
273 , V_FONT_STYLE
274 , V_FONT_CHAR_SET
275 , V_PRINT_FONT_NAME
276 , V_PRINT_FONT_SIZE
277 , V_PRINT_FONT_STYLE
278 , V_PRINT_FONT_CHAR_SET
279 , V_WINDOW_POSITION
280 , V_CURSOR_STYLE
281 #endif
282 #endif
283 #ifdef SMIME
284 , V_PUBLICCERT_DIR
285 , V_PUBLICCERT_CONTAINER
286 , V_PRIVATEKEY_DIR
287 , V_PRIVATEKEY_CONTAINER
288 , V_CACERT_DIR
289 , V_CACERT_CONTAINER
290 #endif
291 #ifdef ENABLE_LDAP
292 , V_LDAP_SERVERS /* should be last so make will work right */
293 #endif
294 , V_RSS_NEWS
295 , V_RSS_WEATHER
296 , V_WP_INDEXHEIGHT
297 , V_WP_INDEXLINES
298 , V_WP_AGGSTATE
299 , V_WP_STATE
300 , V_WP_COLUMNS
301 , V_DUMMY
302 } VariableIndex;
304 #define V_LAST_VAR (V_DUMMY - 1)
308 * The list of feature numbers (which bit goes with which feature).
309 * The order of the features is not significant.
311 typedef enum {
312 F_OLD_GROWTH = 0,
313 F_ENABLE_FULL_HDR,
314 F_ENABLE_PIPE,
315 F_ENABLE_TAB_COMPLETE,
316 F_QUIT_WO_CONFIRM,
317 F_ENABLE_JUMP,
318 F_ENABLE_ALT_ED,
319 F_ENABLE_BOUNCE,
320 F_ENABLE_AGG_OPS,
321 F_ENABLE_FLAG,
322 F_CAN_SUSPEND,
323 F_USE_FK,
324 F_INCLUDE_HEADER,
325 F_SIG_AT_BOTTOM,
326 F_DEL_SKIPS_DEL,
327 F_AUTO_EXPUNGE,
328 F_FULL_AUTO_EXPUNGE,
329 F_EXPUNGE_MANUALLY,
330 F_AUTO_READ_MSGS,
331 F_AUTO_FCC_ONLY,
332 F_READ_IN_NEWSRC_ORDER,
333 F_SELECT_WO_CONFIRM,
334 F_SAVE_PARTIAL_WO_CONFIRM,
335 F_NEXT_THRD_WO_CONFIRM,
336 F_USE_CURRENT_DIR,
337 F_STARTUP_STAYOPEN,
338 F_USE_RESENTTO,
339 F_SAVE_WONT_DELETE,
340 F_SAVE_ADVANCES,
341 F_UNSELECT_WONT_ADVANCE,
342 F_FORCE_LOW_SPEED,
343 F_FORCE_ARROW,
344 F_PRUNE_USES_ISO,
345 F_ALT_ED_NOW,
346 F_SHOW_DELAY_CUE,
347 F_CANCEL_CONFIRM,
348 F_AUTO_OPEN_NEXT_UNREAD,
349 F_DISABLE_INDEX_LOCALE_DATES,
350 F_SELECTED_SHOWN_BOLD,
351 F_QUOTE_ALL_FROMS,
352 F_AUTO_INCLUDE_IN_REPLY,
353 F_DISABLE_CONFIG_SCREEN,
354 F_DISABLE_PASSWORD_CACHING,
355 F_DISABLE_REGEX,
356 F_DISABLE_PASSWORD_CMD,
357 F_DISABLE_UPDATE_CMD,
358 F_DISABLE_KBLOCK_CMD,
359 F_DISABLE_SIGEDIT_CMD,
360 F_DISABLE_ROLES_SETUP,
361 F_DISABLE_ROLES_SIGEDIT,
362 F_DISABLE_ROLES_TEMPLEDIT,
363 F_DISABLE_PIPES_IN_SIGS,
364 F_DISABLE_PIPES_IN_TEMPLATES,
365 F_ATTACHMENTS_IN_REPLY,
366 F_ENABLE_INCOMING,
367 F_ENABLE_INCOMING_CHECKING,
368 F_INCOMING_CHECKING_TOTAL,
369 F_INCOMING_CHECKING_RECENT,
370 F_NO_NEWS_VALIDATION,
371 F_QUELL_EXTRA_POST_PROMPT,
372 F_DISABLE_TAKE_LASTFIRST,
373 F_DISABLE_TAKE_FULLNAMES,
374 F_DISABLE_TERM_RESET_DISP,
375 F_DISABLE_SENDER,
376 F_ROT13_MESSAGE_ID,
377 F_QUELL_LOCAL_LOOKUP,
378 F_COMPOSE_TO_NEWSGRP,
379 F_PRESERVE_START_STOP,
380 F_COMPOSE_REJECTS_UNQUAL,
381 F_FAKE_NEW_IN_NEWS,
382 F_SUSPEND_SPAWNS,
383 F_ENABLE_8BIT,
384 F_COMPOSE_MAPS_DEL,
385 F_ENABLE_8BIT_NNTP,
386 F_ENABLE_MOUSE,
387 F_SHOW_CURSOR,
388 F_PASS_CONTROL_CHARS,
389 F_PASS_C1_CONTROL_CHARS,
390 F_SINGLE_FOLDER_LIST,
391 F_VERTICAL_FOLDER_LIST,
392 F_TAB_CHK_RECENT,
393 F_AUTO_REPLY_TO,
394 F_VERBOSE_POST,
395 F_FCC_ON_BOUNCE,
396 F_SEND_WO_CONFIRM,
397 F_USE_SENDER_NOT_X,
398 F_BLANK_KEYMENU,
399 F_DISABLE_SAVE_INPUT_HISTORY,
400 F_CUSTOM_PRINT,
401 F_DEL_FROM_DOT,
402 F_AUTO_ZOOM,
403 F_AUTO_UNZOOM,
404 F_PRINT_INDEX,
405 F_ALLOW_TALK,
406 F_AGG_PRINT_FF,
407 F_ENABLE_DOT_FILES,
408 F_ENABLE_DOT_FOLDERS,
409 F_FIRST_SEND_FILTER_DFLT,
410 F_ALWAYS_LAST_FLDR_DFLT,
411 F_TAB_TO_NEW,
412 F_MARK_FOR_CC,
413 F_WARN_ABOUT_NO_SUBJECT,
414 F_WARN_ABOUT_NO_FCC,
415 F_WARN_ABOUT_NO_TO_OR_CC,
416 F_QUELL_DEAD_LETTER,
417 F_QUELL_BEEPS,
418 F_QUELL_LOCK_FAILURE_MSGS,
419 F_ENABLE_SPACE_AS_TAB,
420 F_USE_BORING_SPINNER,
421 F_ENABLE_TAB_DELETES,
422 F_FLAG_SCREEN_KW_SHORTCUT,
423 F_FLAG_SCREEN_DFLT,
424 F_ENABLE_XTERM_NEWMAIL,
425 F_ENABLE_NEWMAIL_SHORT_TEXT,
426 F_EXPANDED_DISTLISTS,
427 F_AGG_SEQ_COPY,
428 F_DISABLE_ALARM,
429 F_DISABLE_SETLOCALE_COLLATE,
430 F_FROM_DELIM_IN_PRINT,
431 F_BACKGROUND_POST,
432 F_ALLOW_GOTO,
433 F_DSN,
434 F_ENABLE_SEARCH_AND_REPL,
435 F_ARROW_NAV,
436 F_RELAXED_ARROW_NAV,
437 F_TCAP_WINS,
438 F_ENABLE_SIGDASHES,
439 F_ENABLE_STRIP_SIGDASHES,
440 F_NEW_THREAD_ON_BLANK_SUBJECT,
441 F_QUELL_PARTIAL_FETCH,
442 F_QUELL_PERSONAL_NAME_PROMPT,
443 F_QUELL_USER_ID_PROMPT,
444 F_VIEW_SEL_ATTACH,
445 F_VIEW_SEL_URL,
446 F_VIEW_SEL_URL_HOST,
447 F_SCAN_ADDR,
448 F_FORCE_ARROWS,
449 F_PREFER_PLAIN_TEXT,
450 F_QUELL_CHARSET_WARNING,
451 F_COPY_TO_TO_FROM,
452 F_ENABLE_EDIT_REPLY_INDENT,
453 F_ENABLE_PRYNT,
454 F_ALLOW_CHANGING_FROM,
455 F_ENABLE_SUB_LISTS,
456 F_ENABLE_LESSTHAN_EXIT,
457 F_ENABLE_FAST_RECENT,
458 F_TAB_USES_UNSEEN,
459 F_ENABLE_ROLE_TAKE,
460 F_ENABLE_TAKE_EXPORT,
461 F_QUELL_ATTACH_EXTRA_PROMPT,
462 F_QUELL_ASTERISKS,
463 F_QUELL_ATTACH_EXT_WARN,
464 F_QUELL_FILTER_MSGS,
465 F_QUELL_FILTER_DONE_MSG,
466 F_SHOW_SORT,
467 F_FIX_BROKEN_LIST,
468 F_ENABLE_MULNEWSRCS,
469 F_PREDICT_NNTP_SERVER,
470 F_NEWS_CROSS_DELETE,
471 F_NEWS_CATCHUP,
472 F_QUELL_INTERNAL_MSG,
473 F_QUELL_IMAP_ENV_CB,
474 F_QUELL_NEWS_ENV_CB,
475 F_SEPARATE_FLDR_AS_DIR,
476 F_CMBND_ABOOK_DISP,
477 F_CMBND_FOLDER_DISP,
478 F_CMBND_SUBDIR_DISP,
479 F_EXPANDED_ADDRBOOKS,
480 F_EXPANDED_FOLDERS,
481 F_QUELL_EMPTY_DIRS,
482 F_SHOW_TEXTPLAIN_INT,
483 F_ROLE_CONFIRM_DEFAULT,
484 F_TAB_NO_CONFIRM,
485 F_DATES_TO_LOCAL,
486 F_RET_INBOX_NO_CONFIRM,
487 F_CHECK_MAIL_ONQUIT,
488 F_PREOPEN_STAYOPENS,
489 F_EXPUNGE_STAYOPENS,
490 F_EXPUNGE_INBOX,
491 F_NO_FCC_ATTACH,
492 F_DO_MAILCAP_PARAM_SUBST,
493 F_PREFER_ALT_AUTH,
494 F_SLCTBL_ITEM_NOBOLD,
495 F_QUELL_PINGS_COMPOSING,
496 F_QUELL_PINGS_COMPOSING_INBOX,
497 F_QUELL_BEZERK_TIMEZONE,
498 F_QUELL_CONTENT_ID,
499 F_QUELL_MAILDOMAIN_WARNING,
500 F_DISABLE_SHARED_NAMESPACES,
501 F_HIDE_NNTP_PATH,
502 F_MAILDROPS_PRESERVE_STATE,
503 F_EXPOSE_HIDDEN_CONFIG,
504 F_ALT_COMPOSE_MENU,
505 F_ALT_ROLE_MENU,
506 F_ALWAYS_SPELL_CHECK,
507 F_QUELL_TIMEZONE,
508 F_QUELL_USERAGENT,
509 F_COLOR_LINE_IMPORTANT,
510 F_SLASH_COLL_ENTIRE,
511 F_ENABLE_FULL_HDR_AND_TEXT,
512 F_QUELL_FULL_HDR_RESET,
513 F_MARK_FCC_SEEN,
514 F_MULNEWSRC_HOSTNAMES_AS_TYPED,
515 F_STRIP_WS_BEFORE_SEND,
516 F_QUELL_FLOWED_TEXT,
517 F_COMPOSE_ALWAYS_DOWNGRADE,
518 F_SORT_DEFAULT_FCC_ALPHA,
519 F_SORT_DEFAULT_SAVE_ALPHA,
520 F_QUOTE_REPLACE_NOFLOW,
521 F_AUTO_UNSELECT,
522 F_SEND_CONFIRM_ON_EXPAND,
523 F_ENABLE_NEWMAIL_SOUND,
524 F_RENDER_HTML_INTERNALLY,
525 F_ENABLE_JUMP_CMD,
526 F_FORWARD_AS_ATTACHMENT,
527 F_PRESERVE_ORIGINAL_FIELD,
528 #ifndef _WINDOWS
529 F_USE_SYSTEM_TRANS,
530 #endif /* ! _WINDOWS */
531 F_QUELL_HOST_AFTER_URL,
532 F_NNTP_SEARCH_USES_OVERVIEW,
533 F_THREAD_SORTS_BY_ARRIVAL,
534 #ifdef _WINDOWS
535 F_ENABLE_TRAYICON,
536 F_QUELL_SSL_LARGEBLOCKS,
537 F_STORE_WINPOS_IN_CONFIG,
538 #endif
539 #ifdef ENABLE_LDAP
540 F_ADD_LDAP_TO_ABOOK,
541 #endif
542 #ifdef SMIME
543 F_DONT_DO_SMIME,
544 F_SIGN_DEFAULT_ON,
545 F_ENCRYPT_DEFAULT_ON,
546 F_REMEMBER_SMIME_PASSPHRASE,
547 #ifdef APPLEKEYCHAIN
548 F_PUBLICCERTS_IN_KEYCHAIN,
549 #endif
550 #endif
551 F_FEATURE_LIST_COUNT /* Number of features */
552 } FeatureList;
555 typedef struct init_err {
556 int flags, min_time, max_time;
557 char *message;
558 } INIT_ERR_S;
561 struct variable {
562 char *name;
563 unsigned is_obsolete:1; /* variable read in, not written unless set */
564 unsigned is_used:1; /* Some variables are disabled */
565 unsigned been_written:1;
566 unsigned is_user:1;
567 unsigned is_global:1;
568 unsigned is_list:1; /* flag indicating variable is a list */
569 unsigned is_fixed:1; /* sys mgr has fixed this variable */
570 unsigned is_onlymain:1; /* read and written from main_user_val */
571 unsigned is_outermost:1; /* read and written from outermost pinerc */
572 unsigned del_quotes:1; /* remove double quotes */
573 unsigned is_changed_val:1; /* WP: use the changed val instead of cur val */
574 char *dname; /* display name */
575 char *descrip; /* description */
576 union {
577 char *p; /* pointer to single string value */
578 char **l; /* pointer to list of string values */
579 } current_val;
580 union {
581 char *p; /* pointer to single string value */
582 char **l; /* pointer to list of string values */
583 } main_user_val; /* from pinerc */
584 union {
585 char *p; /* pointer to single string value */
586 char **l; /* pointer to list of string values */
587 } changed_val; /* currently different from pinerc */
588 union {
589 char *p; /* pointer to single string value */
590 char **l; /* pointer to list of string values */
591 } post_user_val; /* from pinerc */
592 union {
593 char *p; /* pointer to single string value */
594 char **l; /* pointer to list of string values */
595 } global_val; /* from default or pine.conf */
596 union {
597 char *p; /* pointer to single string value */
598 char **l; /* pointer to list of string values */
599 } fixed_val; /* fixed value assigned in pine.conf.fixed */
600 union {
601 char *p; /* pointer to single string value */
602 char **l; /* pointer to list of string values */
603 } cmdline_val; /* user typed as cmdline arg */
607 typedef struct feature_entry {
608 char *name;
609 char *dname; /* display name, same as name if NULL */
610 int id;
611 HelpType help;
612 int section; /* for grouping in config screen */
613 int defval; /* default value, 0 or 1 */
614 } FEATURE_S;
617 typedef struct pinerc_line {
618 char *line;
619 struct variable *var;
620 unsigned int is_var:1;
621 unsigned int is_quoted:1;
622 unsigned int obsolete_var:1;
623 } PINERC_LINE;
627 * Each pinerc has one of these.
629 typedef struct pinerc_s {
630 RemType type; /* type of pinerc, remote or local */
631 char *name; /* file name or remote name */
632 REMDATA_S *rd; /* remote data structure */
633 time_t pinerc_written;
634 unsigned readonly:1;
635 unsigned outstanding_pinerc_changes:1;
636 unsigned quit_to_edit:1;
637 PINERC_LINE *pinerc_lines;
638 } PINERC_S;
641 typedef enum {ParsePers, ParsePersPost, ParseGlobal, ParseFixed} ParsePinerc;
644 /* data stored in a line in the metadata file */
645 typedef struct remote_data_meta {
646 char *local_cache_file;
647 imapuid_t uidvalidity;
648 imapuid_t uidnext;
649 imapuid_t uid;
650 unsigned long nmsgs;
651 char read_status; /* 'R' for readonly, 'W' for readwrite */
652 char *date;
653 } REMDATA_META_S;
657 * Generic name/value pair structure
659 typedef struct nameval {
660 char *name; /* the name that goes on the screen */
661 char *shortname; /* if non-NULL, name that goes in config file */
662 int value; /* the internal bit number */
663 } NAMEVAL_S;
666 typedef enum {Main, Post, None} EditWhich;
669 #ifdef SMIME
671 typedef enum {Directory, Container, Keychain, Nada} SmimeHolderType;
673 typedef struct certlist {
674 char *name;
675 void *x509_cert; /* this is type (X509 *) */
676 struct certlist *next;
677 }CertList;
679 typedef struct smime_stuff {
680 unsigned inited:1;
681 unsigned do_sign:1; /* set true if signing */
682 unsigned do_encrypt:1; /* set true if encrypting */
683 unsigned need_passphrase:1; /* set true if loading a key failed due to lack of passphrase */
684 unsigned entered_passphrase:1; /* user entered a passphrase */
685 unsigned already_auto_asked:1; /* asked for passphrase automatically, not again */
686 volatile char passphrase[100]; /* storage for the entered passphrase */
687 char **passphrase_emailaddr; /* pointer to allocated storage */
690 * If we are using the Container type it is easiest if we
691 * read in and maintain a list of certs and then write them
692 * out all at once. For Directory type we just leave the data
693 * in the individual files and read or write the individual
694 * files when needed, so we don't have a list of all the certs.
696 SmimeHolderType publictype;
697 char *publicpath;
698 char *publiccontent;
699 CertList *publiccertlist;
701 SmimeHolderType privatetype;
702 char *privatepath;
703 char *privatecontent;
704 void *personal_certs; /* this is type (PERSONAL_CERT *) */
706 SmimeHolderType catype;
707 char *capath;
708 char *cacontent;
710 } SMIME_STUFF_S;
712 #endif /* SMIME */
715 /* exported protoypes */
718 #endif /* PITH_CONFTYPE_INCLUDED */