Rocco Rutte:
[apps/madmutt.git] / init.h
1 /*
2  * Copyright (C) 1996-2002 Michael R. Elkins <me@mutt.org>
3  * Copyright (C) 2004 g10 Code GmbH
4  * 
5  *     This program is free software; you can redistribute it and/or modify
6  *     it under the terms of the GNU General Public License as published by
7  *     the Free Software Foundation; either version 2 of the License, or
8  *     (at your option) any later version.
9  * 
10  *     This program is distributed in the hope that it will be useful,
11  *     but WITHOUT ANY WARRANTY; without even the implied warranty of
12  *     MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
13  *     GNU General Public License for more details.
14  * 
15  *     You should have received a copy of the GNU General Public License
16  *     along with this program; if not, write to the Free Software
17  *     Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111, USA.
18  */ 
19
20 #ifdef _MAKEDOC
21 # include "config.h"
22 #else
23 # include "sort.h"
24 #endif
25
26 #include "buffy.h"
27
28 #ifndef _MAKEDOC
29 #define DT_MASK         0x0f
30 #define DT_BOOL         1 /* boolean option */
31 #define DT_NUM          2 /* a number */
32 #define DT_STR          3 /* a string */
33 #define DT_PATH         4 /* a pathname */
34 #define DT_QUAD         5 /* quad-option (yes/no/ask-yes/ask-no) */
35 #define DT_SORT         6 /* sorting methods */
36 #define DT_RX           7 /* regular expressions */
37 #define DT_MAGIC        8 /* mailbox type */
38 #define DT_SYN          9 /* synonym for another variable */
39 #define DT_ADDR        10 /* e-mail address */
40
41 #define DTYPE(x) ((x) & DT_MASK)
42
43 /* subtypes */
44 #define DT_SUBTYPE_MASK 0xf0
45 #define DT_SORT_ALIAS   0x10
46 #define DT_SORT_BROWSER 0x20
47 #define DT_SORT_KEYS    0x40
48 #define DT_SORT_AUX     0x80
49
50 /* flags to parse_set() */
51 #define M_SET_INV       (1<<0)  /* default is to invert all vars */
52 #define M_SET_UNSET     (1<<1)  /* default is to unset all vars */
53 #define M_SET_RESET     (1<<2)  /* default is to reset all vars to default */
54
55 /* forced redraw/resort types */
56 #define R_NONE          0
57 #define R_INDEX         (1<<0)
58 #define R_PAGER         (1<<1)
59 #define R_RESORT        (1<<2)  /* resort the mailbox */
60 #define R_RESORT_SUB    (1<<3)  /* resort subthreads */
61 #define R_RESORT_INIT   (1<<4)  /* resort from scratch */
62 #define R_TREE          (1<<5)  /* redraw the thread tree */
63 #define R_BOTH          (R_INDEX | R_PAGER)
64 #define R_RESORT_BOTH   (R_RESORT | R_RESORT_SUB)
65
66 struct option_t
67 {
68   char *option;
69   short type;
70   short flags;
71   unsigned long data;
72   unsigned long init; /* initial value */
73 };
74
75 #define UL (unsigned long)
76
77 #endif /* _MAKEDOC */
78
79 #ifndef ISPELL
80 #define ISPELL "ispell"
81 #endif
82
83 /* build complete documentation */
84
85 #ifdef _MAKEDOC
86 # ifndef USE_IMAP
87 #  define USE_IMAP
88 # endif
89 # ifndef MIXMASTER
90 #  define MIXMASTER "mixmaster"
91 # endif
92 # ifndef USE_POP
93 #  define USE_POP
94 # endif
95 # ifndef USE_SSL
96 #  define USE_SSL
97 # endif
98 # ifndef USE_SOCKET
99 #  define USE_SOCKET
100 # endif
101 # ifndef USE_LIBESMTP
102 #  define USE_LIBESMTP
103 # endif
104 #endif
105
106 struct option_t MuttVars[] = {
107   /*++*/
108   { "abort_nosubject",  DT_QUAD, R_NONE, OPT_SUBJECT, M_ASKYES },
109   /*
110   ** .pp
111   ** If set to \fIyes\fP, when composing messages and no subject is given
112   ** at the subject prompt, composition will be aborted.  If set to
113   ** \fIno\fP, composing messages with no subject given at the subject
114   ** prompt will never be aborted.
115   */
116   { "abort_unmodified", DT_QUAD, R_NONE, OPT_ABORT, M_YES },
117   /*
118   ** .pp
119   ** If set to \fIyes\fP, composition will automatically abort after
120   ** editing the message body if no changes are made to the file (this
121   ** check only happens after the \fIfirst\fP edit of the file).  When set
122   ** to \fIno\fP, composition will never be aborted.
123   */
124   { "alias_file",       DT_PATH, R_NONE, UL &AliasFile, UL "~/.muttrc" },
125   /*
126   ** .pp
127   ** The default file in which to save aliases created by the 
128   ** ``$create-alias'' function.
129   ** .pp
130   ** \fBNote:\fP Mutt will not automatically source this file; you must
131   ** explicitly use the ``$source'' command for it to be executed.
132   */
133   { "alias_format",     DT_STR,  R_NONE, UL &AliasFmt, UL "%4n %2f %t %-10a   %r" },
134   /*
135   ** .pp
136   ** Specifies the format of the data displayed for the `alias' menu.  The
137   ** following printf(3)-style sequences are available:
138   ** .pp
139   ** .dl
140   ** .dt %a .dd alias name
141   ** .dt %f .dd flags - currently, a "d" for an alias marked for deletion
142   ** .dt %n .dd index number
143   ** .dt %r .dd address which alias expands to
144   ** .dt %t .dd character which indicates if the alias is tagged for inclusion
145   ** .de
146   */
147   { "allow_8bit",       DT_BOOL, R_NONE, OPTALLOW8BIT, 1 },
148   /*
149   ** .pp
150   ** Controls whether 8-bit data is converted to 7-bit using either Quoted-
151   ** Printable or Base64 encoding when sending mail.
152   */
153   { "allow_ansi",      DT_BOOL, R_NONE, OPTALLOWANSI, 0 },
154   /*
155   ** .pp
156   ** Controls whether ANSI color codes in messages (and color tags in 
157   ** rich text messages) are to be interpreted.
158   ** Messages containing these codes are rare, but if this option is set,
159   ** their text will be colored accordingly. Note that this may override
160   ** your color choices, and even present a security problem, since a
161   ** message could include a line like "[-- PGP output follows ..." and
162   ** give it the same color as your attachment color.
163   */
164   { "arrow_cursor",     DT_BOOL, R_BOTH, OPTARROWCURSOR, 0 },
165   /*
166   ** .pp
167   ** When set, an arrow (``->'') will be used to indicate the current entry
168   ** in menus instead of highlighting the whole line.  On slow network or modem
169   ** links this will make response faster because there is less that has to
170   ** be redrawn on the screen when moving to the next or previous entries
171   ** in the menu.
172   */
173   { "ascii_chars",      DT_BOOL, R_BOTH, OPTASCIICHARS, 0 },
174   /*
175   ** .pp
176   ** If set, Mutt will use plain ASCII characters when displaying thread
177   ** and attachment trees, instead of the default \fIACS\fP characters.
178   */
179   { "askbcc",           DT_BOOL, R_NONE, OPTASKBCC, 0 },
180   /*
181   ** .pp
182   ** If set, Mutt will prompt you for blind-carbon-copy (Bcc) recipients
183   ** before editing an outgoing message.
184   */
185   { "askcc",            DT_BOOL, R_NONE, OPTASKCC, 0 },
186   /*
187   ** .pp
188   ** If set, Mutt will prompt you for carbon-copy (Cc) recipients before
189   ** editing the body of an outgoing message.
190   */  
191   { "assumed_charset", DT_STR, R_NONE, UL &AssumedCharset, UL "us-ascii"},
192   /*
193   ** .pp
194   ** This variable is a colon-separated list of character encoding
195   ** schemes for messages without character encoding indication.
196   ** Header field values and message body content without character encoding
197   ** indication would be assumed that they are written in one of this list.
198   ** By default, all the header fields and message body without any charset
199   ** indication are assumed to be in "us-ascii".
200   ** .pp
201   ** For example, Japanese users might prefer this:
202   ** .pp
203   **   set assumed_charset="iso-2022-jp:euc-jp:shift_jis:utf-8"
204   ** .pp
205   ** However, only the first content is valid for the message body.
206   ** This variable is valid only if $$strict_mime is unset.
207   */
208 #ifdef USE_NNTP
209   { "ask_follow_up",    DT_BOOL, R_NONE, OPTASKFOLLOWUP, 0 },
210   /*
211   ** .pp
212   ** If set, Mutt will prompt you for follow-up groups before editing
213   ** the body of an outgoing message.
214   */  
215   { "ask_x_comment_to", DT_BOOL, R_NONE, OPTASKXCOMMENTTO, 0 },
216   /*
217   ** .pp
218   ** If set, Mutt will prompt you for x-comment-to field before editing
219   ** the body of an outgoing message.
220   */  
221 #endif
222   { "attach_format",    DT_STR,  R_NONE, UL &AttachFormat, UL "%u%D%I %t%4n %T%.40d%> [%.7m/%.10M, %.6e%?C?, %C?, %s] " },
223   /*
224   ** .pp
225   ** This variable describes the format of the `attachment' menu.  The
226   ** following printf-style sequences are understood:
227   ** .pp
228   ** .dl
229   ** .dt %C  .dd charset
230   ** .dt %c  .dd requires charset conversion (n or c)
231   ** .dt %D  .dd deleted flag
232   ** .dt %d  .dd description
233   ** .dt %e  .dd MIME content-transfer-encoding
234   ** .dt %f  .dd filename
235   ** .dt %I  .dd disposition (I=inline, A=attachment)
236   ** .dt %m  .dd major MIME type
237   ** .dt %M  .dd MIME subtype
238   ** .dt %n  .dd attachment number
239   ** .dt %s  .dd size
240   ** .dt %t  .dd tagged flag
241   ** .dt %T  .dd graphic tree characters
242   ** .dt %u  .dd unlink (=to delete) flag
243   ** .dt %>X .dd right justify the rest of the string and pad with character "X"
244   ** .dt %|X .dd pad to the end of the line with character "X"
245   ** .de
246   */
247   { "attach_sep",       DT_STR,  R_NONE, UL &AttachSep, UL "\n" },
248   /*
249   ** .pp
250   ** The separator to add between attachments when operating (saving,
251   ** printing, piping, etc) on a list of tagged attachments.
252   */
253   { "attach_split",     DT_BOOL, R_NONE, OPTATTACHSPLIT, 1 },
254   /*
255   ** .pp
256   ** If this variable is unset, when operating (saving, printing, piping,
257   ** etc) on a list of tagged attachments, Mutt will concatenate the
258   ** attachments and will operate on them as a single attachment. The
259   ** ``$$attach_sep'' separator is added after each attachment. When set,
260   ** Mutt will operate on the attachments one by one.
261   */
262   { "attribution",      DT_STR,  R_NONE, UL &Attribution, UL "On %d, %n wrote:" },
263   /*
264   ** .pp
265   ** This is the string that will precede a message which has been included
266   ** in a reply.  For a full listing of defined printf()-like sequences see
267   ** the section on ``$$index_format''.
268   */
269   { "autoedit",         DT_BOOL, R_NONE, OPTAUTOEDIT, 0 },
270   /*
271   ** .pp
272   ** When set along with ``$$edit_headers'', Mutt will skip the initial
273   ** send-menu and allow you to immediately begin editing the body of your
274   ** message.  The send-menu may still be accessed once you have finished
275   ** editing the body of your message.
276   ** .pp
277   ** Also see ``$$fast_reply''.
278   */
279   { "auto_tag",         DT_BOOL, R_NONE, OPTAUTOTAG, 0 },
280   /*
281   ** .pp
282   ** When set, functions in the \fIindex\fP menu which affect a message
283   ** will be applied to all tagged messages (if there are any).  When
284   ** unset, you must first use the tag-prefix function (default: ";") to
285   ** make the next function apply to all tagged messages.
286   */
287   { "beep",             DT_BOOL, R_NONE, OPTBEEP, 1 },
288   /*
289   ** .pp
290   ** When this variable is set, mutt will beep when an error occurs.
291   */
292   { "beep_new",         DT_BOOL, R_NONE, OPTBEEPNEW, 0 },
293   /*
294   ** .pp
295   ** When this variable is set, mutt will beep whenever it prints a message
296   ** notifying you of new mail.  This is independent of the setting of the
297   ** ``$$beep'' variable.
298   */
299   { "bounce",   DT_QUAD, R_NONE, OPT_BOUNCE, M_ASKYES },
300   /*
301   ** .pp
302   ** Controls whether you will be asked to confirm bouncing messages.
303   ** If set to \fIyes\fP you don't get asked if you want to bounce a
304   ** message. Setting this variable to \fIno\fP is not generally useful,
305   ** and thus not recommended, because you are unable to bounce messages.
306   */
307   { "bounce_delivered", DT_BOOL, R_NONE, OPTBOUNCEDELIVERED, 1 },
308   /*
309   ** .pp
310   ** When this variable is set, mutt will include Delivered-To headers when
311   ** bouncing messages.  Postfix users may wish to unset this variable.
312   */
313 #ifdef USE_NNTP
314   { "catchup_newsgroup", DT_QUAD, R_NONE, OPT_CATCHUP, M_ASKYES },
315   /*
316   ** .pp
317   ** If this variable is \fIset\fP, Mutt will mark all articles in newsgroup
318   ** as read when you quit the newsgroup (catchup newsgroup).
319   */
320 #endif
321   { "charset",          DT_STR,  R_NONE, UL &Charset, UL 0 },
322   /*
323   ** .pp
324   ** Character set your terminal uses to display and enter textual data.
325   */
326   { "check_new",        DT_BOOL, R_NONE, OPTCHECKNEW, 1 },
327   /*
328   ** .pp
329   ** \fBNote:\fP this option only affects \fImaildir\fP and \fIMH\fP style
330   ** mailboxes.
331   ** .pp
332   ** When \fIset\fP, Mutt will check for new mail delivered while the
333   ** mailbox is open.  Especially with MH mailboxes, this operation can
334   ** take quite some time since it involves scanning the directory and
335   ** checking each file to see if it has already been looked at.  If
336   ** \fIcheck_new\fP is \fIunset\fP, no check for new mail is performed
337   ** while the mailbox is open.
338   */
339   { "collapse_unread",  DT_BOOL, R_NONE, OPTCOLLAPSEUNREAD, 1 },
340   /*
341   ** .pp
342   ** When \fIunset\fP, Mutt will not collapse a thread if it contains any
343   ** unread messages.
344   */
345   { "uncollapse_jump",  DT_BOOL, R_NONE, OPTUNCOLLAPSEJUMP, 0 },
346   /*
347   ** .pp
348   ** When \fIset\fP, Mutt will jump to the next unread message, if any,
349   ** when the current thread is \fIun\fPcollapsed.
350   */
351   { "compose_format",   DT_STR,  R_BOTH, UL &ComposeFormat, UL "-- Mutt-ng: Compose  [Approx. msg size: %l   Atts: %a]%>-" },
352   /*
353   ** .pp
354   ** Controls the format of the status line displayed in the \fICompose\fP
355   ** menu.  This string is similar to ``$$status_format'', but has its own
356   ** set of printf()-like sequences:
357   ** .pp
358   ** .dl
359   ** .dt %a .dd total number of attachments 
360   ** .dt %h .dd local hostname
361   ** .dt %l .dd approximate size (in bytes) of the current message
362   ** .dt %v .dd Mutt version string
363   ** .de
364   ** .pp
365   ** See the text describing the ``$$status_format'' option for more 
366   ** information on how to set ``$$compose_format''.
367   */
368   { "config_charset",   DT_STR,  R_NONE, UL &ConfigCharset, UL 0 },
369   /*
370   ** .pp
371   ** When defined, Mutt will recode commands in rc files from this
372   ** encoding.
373   */
374   { "confirmappend",    DT_BOOL, R_NONE, OPTCONFIRMAPPEND, 1 },
375   /*
376   ** .pp
377   ** When set, Mutt will prompt for confirmation when appending messages to
378   ** an existing mailbox.
379   */
380   { "confirmcreate",    DT_BOOL, R_NONE, OPTCONFIRMCREATE, 1 },
381   /*
382   ** .pp
383   ** When set, Mutt will prompt for confirmation when saving messages to a
384   ** mailbox which does not yet exist before creating it.
385   */
386   { "connect_timeout",  DT_NUM, R_NONE, UL &ConnectTimeout, 30 },
387   /*
388   ** .pp
389   ** Causes Mutt to timeout a network connection (for IMAP or POP) after this
390   ** many seconds if the connection is not able to be established.  A negative
391   ** value causes Mutt to wait indefinitely for the connection to succeed.
392   */
393   { "content_type",     DT_STR, R_NONE, UL &ContentType, UL "text/plain" },
394   /*
395   ** .pp
396   ** Sets the default Content-Type for the body of newly composed messages.
397   */
398   { "copy",             DT_QUAD, R_NONE, OPT_COPY, M_YES },
399   /*
400   ** .pp
401   ** This variable controls whether or not copies of your outgoing messages
402   ** will be saved for later references.  Also see ``$$record'',
403   ** ``$$save_name'', ``$$force_name'' and ``$fcc-hook''.
404   */
405   
406   { "crypt_use_gpgme",  DT_BOOL, R_NONE, OPTCRYPTUSEGPGME, 0 },
407   /*
408   ** .pp
409   ** This variable controls the use the GPGME enabled crypto backends.
410   ** If it is set and Mutt was build with gpgme support, the gpgme code for
411   ** S/MIME and PGP will be used instead of the classic code.  Note, that
412   ** you need to use this option in .muttrc as it won't have any effect when 
413   ** used interactively.
414   */
415   
416   { "crypt_autopgp",    DT_BOOL, R_NONE, OPTCRYPTAUTOPGP, 1 },
417   /*
418   ** .pp
419   ** This variable controls whether or not mutt may automatically enable
420   ** PGP encryption/signing for messages.  See also ``$$crypt_autoencrypt'',
421   ** ``$$crypt_replyencrypt'',
422   ** ``$$crypt_autosign'', ``$$crypt_replysign'' and ``$$smime_is_default''.
423   */
424   { "crypt_autosmime",  DT_BOOL, R_NONE, OPTCRYPTAUTOSMIME, 1 },
425   /*
426   ** .pp
427   ** This variable controls whether or not mutt may automatically enable
428   ** S/MIME encryption/signing for messages. See also ``$$crypt_autoencrypt'',
429   ** ``$$crypt_replyencrypt'',
430   ** ``$$crypt_autosign'', ``$$crypt_replysign'' and ``$$smime_is_default''.
431   */
432   { "date_format",      DT_STR,  R_BOTH, UL &DateFmt, UL "!%a, %b %d, %Y at %I:%M:%S%p %Z" },
433   /*
434   ** .pp
435   ** This variable controls the format of the date printed by the ``%d''
436   ** sequence in ``$$index_format''.  This is passed to the \fIstrftime\fP
437   ** call to process the date. See the man page for \fIstrftime(3)\fP for
438   ** the proper syntax.
439   ** .pp
440   ** Unless the first character in the string is a bang (``!''), the month
441   ** and week day names are expanded according to the locale specified in
442   ** the variable ``$$locale''. If the first character in the string is a
443   ** bang, the bang is discarded, and the month and week day names in the
444   ** rest of the string are expanded in the \fIC\fP locale (that is in US
445   ** English).
446   */  
447   { "default_hook",     DT_STR,  R_NONE, UL &DefaultHook, UL "~f %s !~P | (~P ~C %s)" },
448   /*
449   ** .pp
450   ** This variable controls how send-hooks, message-hooks, save-hooks,
451   ** and fcc-hooks will
452   ** be interpreted if they are specified with only a simple regexp,
453   ** instead of a matching pattern.  The hooks are expanded when they are
454   ** declared, so a hook will be interpreted according to the value of this
455   ** variable at the time the hook is declared.  The default value matches
456   ** if the message is either from a user matching the regular expression
457   ** given, or if it is from you (if the from address matches
458   ** ``alternates'') and is to or cc'ed to a user matching the given
459   ** regular expression.
460   */
461   { "delete",           DT_QUAD, R_NONE, OPT_DELETE, M_ASKYES },
462   /*
463   ** .pp
464   ** Controls whether or not messages are really deleted when closing or
465   ** synchronizing a mailbox.  If set to \fIyes\fP, messages marked for
466   ** deleting will automatically be purged without prompting.  If set to
467   ** \fIno\fP, messages marked for deletion will be kept in the mailbox.
468   */
469   { "delete_untag",     DT_BOOL, R_NONE, OPTDELETEUNTAG, 1 },
470   /*
471   ** .pp
472   ** If this option is \fIset\fP, mutt will untag messages when marking them
473   ** for deletion.  This applies when you either explicitly delete a message,
474   ** or when you save it to another folder.
475   */
476   { "digest_collapse",  DT_BOOL, R_NONE, OPTDIGESTCOLLAPSE, 1},
477   /*
478   ** .pp
479   ** If this option is \fIset\fP, mutt's received-attachments menu will not show the subparts of
480   ** individual messages in a multipart/digest.  To see these subparts, press 'v' on that menu.
481   */
482   { "display_filter",   DT_PATH, R_PAGER, UL &DisplayFilter, UL "" },
483   /*
484   ** .pp
485   ** When set, specifies a command used to filter messages.  When a message
486   ** is viewed it is passed as standard input to $$display_filter, and the
487   ** filtered message is read from the standard output.
488   */
489 #if defined(DL_STANDALONE) && defined(USE_DOTLOCK)
490   { "dotlock_program",  DT_PATH, R_NONE, UL &MuttDotlock, UL BINDIR "/muttng_dotlock" },
491   /*
492   ** .pp
493   ** Contains the path of the muttng_dotlock (8) binary to be used by
494   ** mutt.
495   */
496 #endif
497   { "dsn_notify",       DT_STR,  R_NONE, UL &DsnNotify, UL "" },
498   /*
499   ** .pp
500   ** \fBNote:\fP you should not enable this unless you are using Sendmail
501   ** 8.8.x or greater.
502   ** .pp
503   ** This variable sets the request for when notification is returned.  The
504   ** string consists of a comma separated list (no spaces!) of one or more
505   ** of the following: \fInever\fP, to never request notification,
506   ** \fIfailure\fP, to request notification on transmission failure,
507   ** \fIdelay\fP, to be notified of message delays, \fIsuccess\fP, to be
508   ** notified of successful transmission.
509   ** .pp
510   ** Example: set dsn_notify="failure,delay"
511   */
512   { "dsn_return",       DT_STR,  R_NONE, UL &DsnReturn, UL "" },
513   /*
514   ** .pp
515   ** \fBNote:\fP you should not enable this unless you are using Sendmail
516   ** 8.8.x or greater.
517   ** .pp
518   ** This variable controls how much of your message is returned in DSN
519   ** messages.  It may be set to either \fIhdrs\fP to return just the
520   ** message header, or \fIfull\fP to return the full message.
521   ** .pp
522   ** Example: set dsn_return=hdrs
523   */
524   { "duplicate_threads",        DT_BOOL, R_RESORT|R_RESORT_INIT|R_INDEX, OPTDUPTHREADS, 1 },
525   /*
526   ** .pp
527   ** This variable controls whether mutt, when sorting by threads, threads
528   ** messages with the same message-id together.  If it is set, it will indicate
529   ** that it thinks they are duplicates of each other with an equals sign
530   ** in the thread diagram.
531   */
532   { "edit_headers",     DT_BOOL, R_NONE, OPTEDITHDRS, 0 },
533   /*
534   ** .pp
535   ** This option allows you to edit the header of your outgoing messages
536   ** along with the body of your message.
537   */
538   { "edit_hdrs",        DT_SYN,  R_NONE, UL "edit_headers", 0 },
539   /*
540   */  
541   { "editor",           DT_PATH, R_NONE, UL &Editor, 0 },
542   /*
543   ** .pp
544   ** This variable specifies which editor is used by mutt.
545   ** It defaults to the value of the VISUAL, or EDITOR, environment
546   ** variable, or to the string "vi" if neither of those are set.
547   */
548   { "encode_from",      DT_BOOL, R_NONE, OPTENCODEFROM, 0 },
549   /*
550   ** .pp
551   ** When \fIset\fP, mutt will quoted-printable encode messages when
552   ** they contain the string "From " in the beginning of a line.
553   ** Useful to avoid the tampering certain mail delivery and transport
554   ** agents tend to do with messages.
555   */
556   { "envelope_from",    DT_BOOL, R_NONE, OPTENVFROM, 0 },
557   /*
558   ** .pp
559   ** When \fIset\fP, mutt will try to derive the message's \fIenvelope\fP
560   ** sender from the "From:" header.  Note that this information is passed 
561   ** to sendmail command using the "-f" command line switch, so don't set this
562   ** option if you are using that switch in $$sendmail yourself,
563   ** or if the sendmail on your machine doesn't support that command
564   ** line switch.
565   */
566   { "escape",           DT_STR,  R_NONE, UL &EscChar, UL "~" },
567   /*
568   ** .pp
569   ** Escape character to use for functions in the builtin editor.
570   */
571   { "fast_reply",       DT_BOOL, R_NONE, OPTFASTREPLY, 0 },
572   /*
573   ** .pp
574   ** When set, the initial prompt for recipients and subject are skipped
575   ** when replying to messages, and the initial prompt for subject is
576   ** skipped when forwarding messages.
577   ** .pp
578   ** \fBNote:\fP this variable has no effect when the ``$$autoedit''
579   ** variable is set.
580   */
581   { "fcc_attach",       DT_BOOL, R_NONE, OPTFCCATTACH, 1 },
582   /*
583   ** .pp
584   ** This variable controls whether or not attachments on outgoing messages
585   ** are saved along with the main body of your message.
586   */
587   { "fcc_clear",        DT_BOOL, R_NONE, OPTFCCCLEAR, 0 },
588   /*
589   ** .pp
590   ** When this variable is set, FCCs will be stored unencrypted and
591   ** unsigned, even when the actual message is encrypted and/or
592   ** signed.
593   ** (PGP only)
594   */
595   { "file_charset",    DT_STR,  R_NONE, UL &FileCharset, UL 0 },
596   /*
597   ** .pp
598   ** This variable is a colon-separated list of character encoding
599   ** schemes for text file attatchments.
600   ** If unset, $$charset value will be used instead.
601   ** For example, the following configuration would work for Japanese
602   ** text handling:
603   ** .pp
604   **   set file_charset="iso-2022-jp:euc-jp:shift_jis:utf-8"
605   ** .pp
606   ** Note: "iso-2022-*" must be put at the head of the value as shown above
607   ** if included.
608   */
609   { "folder",           DT_PATH, R_NONE, UL &Maildir, UL "~/Mail" },
610   /*
611   ** .pp
612   ** Specifies the default location of your mailboxes.  A `+' or `=' at the
613   ** beginning of a pathname will be expanded to the value of this
614   ** variable.  Note that if you change this variable from the default
615   ** value you need to make sure that the assignment occurs \fIbefore\fP
616   ** you use `+' or `=' for any other variables since expansion takes place
617   ** during the `set' command.
618   */
619   { "folder_format",    DT_STR,  R_INDEX, UL &FolderFormat, UL "%2C %t %N %F %2l %-8.8u %-8.8g %8s %d %f" },
620   /*
621   ** .pp
622   ** This variable allows you to customize the file browser display to your
623   ** personal taste.  This string is similar to ``$$index_format'', but has
624   ** its own set of printf()-like sequences:
625   ** .pp
626   ** .dl
627   ** .dt %C  .dd current file number
628   ** .dt %d  .dd date/time folder was last modified
629   ** .dt %f  .dd filename
630   ** .dt %F  .dd file permissions
631   ** .dt %g  .dd group name (or numeric gid, if missing)
632   ** .dt %l  .dd number of hard links
633   ** .dt %N  .dd N if folder has new mail, blank otherwise
634   ** .dt %s  .dd size in bytes
635   ** .dt %t  .dd * if the file is tagged, blank otherwise
636   ** .dt %u  .dd owner name (or numeric uid, if missing)
637   ** .dt %>X .dd right justify the rest of the string and pad with character "X"
638   ** .dt %|X .dd pad to the end of the line with character "X"
639   ** .de
640   */
641   { "followup_to",      DT_BOOL, R_NONE, OPTFOLLOWUPTO, 1 },
642   /*
643   ** .pp
644   ** Controls whether or not the \fIMail-Followup-To\fP header field is
645   ** generated when sending mail.  When \fIset\fP, Mutt will generate this
646   ** field when you are replying to a known mailing list, specified with
647   ** the ``subscribe'' or ``$lists'' commands.
648   ** .pp
649   ** This field has two purposes.  First, preventing you from
650   ** receiving duplicate copies of replies to messages which you send
651   ** to mailing lists, and second, ensuring that you do get a reply
652   ** separately for any messages sent to known lists to which you are
653   ** not subscribed.  The header will contain only the list's address
654   ** for subscribed lists, and both the list address and your own
655   ** email address for unsubscribed lists.  Without this header, a
656   ** group reply to your message sent to a subscribed list will be
657   ** sent to both the list and your address, resulting in two copies
658   ** of the same email for you.
659   */
660 #ifdef USE_NNTP
661   { "followup_to_poster", DT_QUAD, R_NONE, OPT_FOLLOWUPTOPOSTER, M_ASKYES },
662   /*
663   ** .pp
664   ** If this variable is \fIset\fP and the keyword "poster" is present in
665   ** \fIFollowup-To\fP header, follow-up to newsgroup function is not
666   ** permitted.  The message will be mailed to the submitter of the
667   ** message via mail.
668   */
669 #endif
670   { "force_name",       DT_BOOL, R_NONE, OPTFORCENAME, 0 },
671   /*
672   ** .pp
673   ** This variable is similar to ``$$save_name'', except that Mutt will
674   ** store a copy of your outgoing message by the username of the address
675   ** you are sending to even if that mailbox does not exist.
676   ** .pp
677   ** Also see the ``$$record'' variable.
678   */
679   { "forward_decode",   DT_BOOL, R_NONE, OPTFORWDECODE, 1 },
680   /*
681   ** .pp
682   ** Controls the decoding of complex MIME messages into text/plain when
683   ** forwarding a message.  The message header is also RFC2047 decoded.
684   ** This variable is only used, if ``$$mime_forward'' is \fIunset\fP,
685   ** otherwise ``$$mime_forward_decode'' is used instead.
686   */
687   { "forw_decode",      DT_SYN,  R_NONE, UL "forward_decode", 0 },
688   /*
689   */
690   { "forward_edit",     DT_QUAD, R_NONE, OPT_FORWEDIT, M_YES },
691   /*
692   ** .pp
693   ** This quadoption controls whether or not the user is automatically
694   ** placed in the editor when forwarding messages.  For those who always want
695   ** to forward with no modification, use a setting of ``no''.
696   */
697   { "forward_format",   DT_STR,  R_NONE, UL &ForwFmt, UL "[%a: %s]" },
698   /*
699   ** .pp
700   ** This variable controls the default subject when forwarding a message.
701   ** It uses the same format sequences as the ``$$index_format'' variable.
702   */
703   { "forw_format",      DT_SYN,  R_NONE, UL "forward_format", 0 },  
704   /*
705   */
706   { "forward_quote",    DT_BOOL, R_NONE, OPTFORWQUOTE, 0 },
707   /*
708   ** .pp
709   ** When \fIset\fP forwarded messages included in the main body of the
710   ** message (when ``$$mime_forward'' is \fIunset\fP) will be quoted using
711   ** ``$$indent_string''.
712   */
713   { "forw_quote",       DT_SYN,  R_NONE, UL "forward_quote", 0 },
714   /*
715   */
716   { "from",             DT_ADDR, R_NONE, UL &From, UL 0 },
717   /*
718   ** .pp
719   ** When set, this variable contains a default from address.  It
720   ** can be overridden using my_hdr (including from send-hooks) and
721   ** ``$$reverse_name''.  This variable is ignored if ``$$use_from''
722   ** is unset.
723   ** .pp
724   ** Defaults to the contents of the environment variable EMAIL.
725   */
726   { "gecos_mask",       DT_RX,   R_NONE, UL &GecosMask, UL "^[^,]*" },
727   /*
728   ** .pp
729   ** A regular expression used by mutt to parse the GECOS field of a password
730   ** entry when expanding the alias.  By default the regular expression is set
731   ** to "^[^,]*" which will return the string up to the first "," encountered.
732   ** If the GECOS field contains a string like "lastname, firstname" then you
733   ** should set the gecos_mask=".*".
734   ** .pp
735   ** This can be useful if you see the following behavior: you address a e-mail
736   ** to user ID stevef whose full name is Steve Franklin.  If mutt expands 
737   ** stevef to "Franklin" stevef@foo.bar then you should set the gecos_mask to
738   ** a regular expression that will match the whole name so mutt will expand
739   ** "Franklin" to "Franklin, Steve".
740   */
741 #ifdef USE_NNTP
742   { "group_index_format", DT_STR, R_BOTH, UL &GroupFormat, UL "%4C %M%N %5s  %-45.45f %d" },
743   /*
744   ** .pp
745   ** This variable allows you to customize the newsgroup browser display to
746   ** your personal taste.  This string is similar to ``$index_format'', but
747   ** has its own set of printf()-like sequences:
748   ** .pp
749   ** .ts
750   ** %C      current newsgroup number
751   ** %d      description of newsgroup (becomes from server)
752   ** %f      newsgroup name
753   ** %M      - if newsgroup not allowed for direct post (moderated for example)
754   ** %N      N if newsgroup is new, u if unsubscribed, blank otherwise
755   ** %n      number of new articles in newsgroup
756   ** %s      number of unread articles in newsgroup
757   ** %>X     right justify the rest of the string and pad with character "X"
758   ** %|X     pad to the end of the line with character "X"
759   ** .te
760   */
761 #endif
762   { "hdr_format",       DT_SYN,  R_NONE, UL "index_format", 0 },
763   /*
764   */
765   { "hdrs",             DT_BOOL, R_NONE, OPTHDRS, 1 },
766   /*
767   ** .pp
768   ** When unset, the header fields normally added by the ``$my_hdr''
769   ** command are not created.  This variable \fImust\fP be unset before
770   ** composing a new message or replying in order to take effect.  If set,
771   ** the user defined header fields are added to every new message.
772   */
773   { "header",           DT_BOOL, R_NONE, OPTHEADER, 0 },
774   /*
775   ** .pp
776   ** When set, this variable causes Mutt to include the header
777   ** of the message you are replying to into the edit buffer.
778   ** The ``$$weed'' setting applies.
779   */  
780   { "help",             DT_BOOL, R_BOTH, OPTHELP, 1 },
781   /*
782   ** .pp
783   ** When set, help lines describing the bindings for the major functions
784   ** provided by each menu are displayed on the first line of the screen.
785   ** .pp
786   ** \fBNote:\fP The binding will not be displayed correctly if the
787   ** function is bound to a sequence rather than a single keystroke.  Also,
788   ** the help line may not be updated if a binding is changed while Mutt is
789   ** running.  Since this variable is primarily aimed at new users, neither
790   ** of these should present a major problem.
791   */
792   { "hidden_host",      DT_BOOL, R_NONE, OPTHIDDENHOST, 0 },
793   /*
794   ** .pp
795   ** When set, mutt will skip the host name part of ``$$hostname'' variable
796   ** when adding the domain part to addresses.  This variable does not
797   ** affect the generation of Message-IDs, and it will not lead to the 
798   ** cut-off of first-level domains.
799   */
800   { "hide_limited",     DT_BOOL, R_TREE|R_INDEX, OPTHIDELIMITED, 0 },
801   /*
802   ** .pp
803   ** When set, mutt will not show the presence of messages that are hidden
804   ** by limiting, in the thread tree.
805   */
806   { "hide_missing",     DT_BOOL, R_TREE|R_INDEX, OPTHIDEMISSING, 1 },
807   /*
808   ** .pp
809   ** When set, mutt will not show the presence of missing messages in the
810   ** thread tree.
811   */
812   { "hide_thread_subject", DT_BOOL, R_TREE|R_INDEX, OPTHIDETHREADSUBJECT, 1 },
813   /*
814   ** .pp
815   ** When set, mutt will not show the subject of messages in the thread
816   ** tree that have the same subject as their parent or closest previously
817   ** displayed sibling.
818   */
819   { "hide_top_limited", DT_BOOL, R_TREE|R_INDEX, OPTHIDETOPLIMITED, 0 },
820   /*
821   ** .pp
822   ** When set, mutt will not show the presence of messages that are hidden
823   ** by limiting, at the top of threads in the thread tree.  Note that when
824   ** $$hide_missing is set, this option will have no effect.
825   */
826   { "hide_top_missing", DT_BOOL, R_TREE|R_INDEX, OPTHIDETOPMISSING, 1 },
827   /*
828   ** .pp
829   ** When set, mutt will not show the presence of missing messages at the
830   ** top of threads in the thread tree.  Note that when $$hide_limited is
831   ** set, this option will have no effect.
832   */
833   { "history",          DT_NUM,  R_NONE, UL &HistSize, 10 },
834   /*
835   ** .pp
836   ** This variable controls the size (in number of strings remembered) of
837   ** the string history buffer. The buffer is cleared each time the
838   ** variable is set.
839   */
840   { "honor_followup_to", DT_QUAD, R_NONE, OPT_MFUPTO, M_YES },
841   /*
842   ** .pp
843   ** This variable controls whether or not a Mail-Followup-To header is
844   ** honored when group-replying to a message.
845   */
846   { "hostname",         DT_STR,  R_NONE, UL &Fqdn, 0 },
847   /*
848   ** .pp
849   ** Specifies the hostname to use after the ``@'' in local e-mail
850   ** addresses.  This overrides the compile time definition obtained from
851   ** /etc/resolv.conf.
852   */
853   { "ignore_list_reply_to", DT_BOOL, R_NONE, OPTIGNORELISTREPLYTO, 0 },
854   /*
855   ** .pp
856   ** Affects the behaviour of the \fIreply\fP function when replying to
857   ** messages from mailing lists.  When set, if the ``Reply-To:'' field is
858   ** set to the same value as the ``To:'' field, Mutt assumes that the
859   ** ``Reply-To:'' field was set by the mailing list to automate responses
860   ** to the list, and will ignore this field.  To direct a response to the
861   ** mailing list when this option is set, use the \fIlist-reply\fP
862   ** function; \fIgroup-reply\fP will reply to both the sender and the
863   ** list.
864   */
865 #ifdef USE_IMAP
866   { "imap_authenticators", DT_STR, R_NONE, UL &ImapAuthenticators, UL 0 },
867   /*
868   ** .pp
869   ** This is a colon-delimited list of authentication methods mutt may
870   ** attempt to use to log in to an IMAP server, in the order mutt should
871   ** try them.  Authentication methods are either 'login' or the right
872   ** side of an IMAP 'AUTH=xxx' capability string, eg 'digest-md5', 'gssapi'
873   ** or 'cram-md5'. This parameter is case-insensitive. If this
874   ** parameter is unset (the default) mutt will try all available methods,
875   ** in order from most-secure to least-secure.
876   ** .pp
877   ** Example: set imap_authenticators="gssapi:cram-md5:login"
878   ** .pp
879   ** \fBNote:\fP Mutt will only fall back to other authentication methods if
880   ** the previous methods are unavailable. If a method is available but
881   ** authentication fails, mutt will not connect to the IMAP server.
882   */
883   { "imap_delim_chars",         DT_STR, R_NONE, UL &ImapDelimChars, UL "/." },
884   /*
885   ** .pp
886   ** This contains the list of characters which you would like to treat
887   ** as folder separators for displaying IMAP paths. In particular it
888   ** helps in using the '=' shortcut for your \fIfolder\fP variable.
889   */
890 # if defined(USE_SSL) || defined(USE_GNUTLS)
891   { "imap_force_ssl",           DT_BOOL, R_NONE, OPTIMAPFORCESSL, 0 },
892   /*
893   ** .pp
894   ** If this variable is set, Mutt will always use SSL when
895   ** connecting to IMAP servers.
896   */
897 # endif
898   { "imap_headers",     DT_STR, R_INDEX, UL &ImapHeaders, UL 0},
899   /*
900   ** .pp
901   ** Mutt requests these header fields in addition to the default headers
902   ** ("DATE FROM SUBJECT TO CC MESSAGE-ID REFERENCES CONTENT-TYPE
903   ** CONTENT-DESCRIPTION IN-REPLY-TO REPLY-TO LINES X-LABEL") from IMAP
904   ** servers before displaying the index menu. You may want to add more
905   ** headers for spam detection. \fBNote:\fP This is a space separated list.
906   */
907   { "imap_home_namespace",      DT_STR, R_NONE, UL &ImapHomeNamespace, UL 0},
908   /*
909   ** .pp
910   ** You normally want to see your personal folders alongside
911   ** your INBOX in the IMAP browser. If you see something else, you may set
912   ** this variable to the IMAP path to your folders.
913   */
914   { "imap_keepalive",           DT_NUM,  R_NONE, UL &ImapKeepalive, 900 },
915   /*
916   ** .pp
917   ** This variable specifies the maximum amount of time in seconds that mutt
918   ** will wait before polling open IMAP connections, to prevent the server
919   ** from closing them before mutt has finished with them. The default is
920   ** well within the RFC-specified minimum amount of time (30 minutes) before
921   ** a server is allowed to do this, but in practice the RFC does get
922   ** violated every now and then. Reduce this number if you find yourself
923   ** getting disconnected from your IMAP server due to inactivity.
924   */
925   { "imap_list_subscribed",     DT_BOOL, R_NONE, OPTIMAPLSUB, 0 },
926   /*
927   ** .pp
928   ** This variable configures whether IMAP folder browsing will look for
929   ** only subscribed folders or all folders.  This can be toggled in the
930   ** IMAP browser with the \fItoggle-subscribed\fP function.
931   */
932   { "imap_pass",        DT_STR,  R_NONE, UL &ImapPass, UL 0 },
933   /*
934   ** .pp
935   ** Specifies the password for your IMAP account.  If unset, Mutt will
936   ** prompt you for your password when you invoke the fetch-mail function.
937   ** \fBWarning\fP: you should only use this option when you are on a
938   ** fairly secure machine, because the superuser can read your muttrc even
939   ** if you are the only one who can read the file.
940   */
941   { "imap_passive",             DT_BOOL, R_NONE, OPTIMAPPASSIVE, 1 },
942   /*
943   ** .pp
944   ** When set, mutt will not open new IMAP connections to check for new
945   ** mail.  Mutt will only check for new mail over existing IMAP
946   ** connections.  This is useful if you don't want to be prompted to
947   ** user/password pairs on mutt invocation, or if opening the connection
948   ** is slow.
949   */
950   { "imap_peek", DT_BOOL, R_NONE, OPTIMAPPEEK, 1 },
951   /*
952   ** .pp
953   ** If set, mutt will avoid implicitly marking your mail as read whenever
954   ** you fetch a message from the server. This is generally a good thing,
955   ** but can make closing an IMAP folder somewhat slower. This option
956   ** exists to appease speed freaks.
957   */
958   { "imap_reconnect",   DT_QUAD, R_NONE, OPT_IMAPRECONNECT, M_ASKYES },
959   /*
960   ** .pp
961   ** Controls whether or not Mutt-ng will try to reconnect to IMAP server when
962   ** the connection is lost.
963   */
964   { "imap_servernoise",         DT_BOOL, R_NONE, OPTIMAPSERVERNOISE, 1 },
965   /*
966   ** .pp
967   ** When set, mutt will display warning messages from the IMAP
968   ** server as error messages. Since these messages are often
969   ** harmless, or generated due to configuration problems on the
970   ** server which are out of the users' hands, you may wish to suppress
971   ** them at some point.
972   */
973   { "imap_user",        DT_STR,  R_NONE, UL &ImapUser, UL 0 },
974   /*
975   ** .pp
976   ** Your login name on the IMAP server.
977   ** .pp
978   ** This variable defaults to your user name on the local machine.
979   */
980 #endif
981   { "implicit_autoview", DT_BOOL,R_NONE, OPTIMPLICITAUTOVIEW, 0},
982   /*
983   ** .pp
984   ** If set to ``yes'', mutt will look for a mailcap entry with the
985   ** copiousoutput flag set for \fIevery\fP MIME attachment it doesn't have
986   ** an internal viewer defined for.  If such an entry is found, mutt will
987   ** use the viewer defined in that entry to convert the body part to text
988   ** form.
989   */
990   { "include",          DT_QUAD, R_NONE, OPT_INCLUDE, M_ASKYES },
991   /*
992   ** .pp
993   ** Controls whether or not a copy of the message(s) you are replying to
994   ** is included in your reply.
995   */
996   { "include_onlyfirst",        DT_BOOL, R_NONE, OPTINCLUDEONLYFIRST, 0},
997   /*
998   ** .pp
999   ** Controls whether or not Mutt includes only the first attachment
1000   ** of the message you are replying.
1001   */
1002   { "indent_string",    DT_STR,  R_NONE, UL &Prefix, UL "> " },
1003   /*
1004   ** .pp
1005   ** Specifies the string to prepend to each line of text quoted in a
1006   ** message to which you are replying.  You are strongly encouraged not to
1007   ** change this value, as it tends to agitate the more fanatical netizens.
1008   */
1009   { "indent_str",       DT_SYN,  R_NONE, UL "indent_string", 0 },
1010   /*
1011   */
1012   { "index_format",     DT_STR,  R_BOTH, UL &HdrFmt, UL "%4C %Z %{%b %d} %-15.15L (%?l?%4l&%4c?) %s" },
1013   /*
1014   ** .pp
1015   ** This variable allows you to customize the message index display to
1016   ** your personal taste.
1017   ** .pp
1018   ** ``Format strings'' are similar to the strings used in the ``C''
1019   ** function printf to format output (see the man page for more detail).
1020   ** The following sequences are defined in Mutt:
1021   ** .pp
1022   ** .dl
1023   ** .dt %a .dd address of the author
1024   ** .dt %A .dd reply-to address (if present; otherwise: address of author)
1025   ** .dt %b .dd filename of the original message folder (think mailBox)
1026   ** .dt %B .dd the list to which the letter was sent, or else the folder name (%b).
1027   ** .dt %c .dd number of characters (bytes) in the message
1028   ** .dt %C .dd current message number
1029   ** .dt %d .dd date and time of the message in the format specified by
1030   **            ``date_format'' converted to sender's time zone
1031   ** .dt %D .dd date and time of the message in the format specified by
1032   **            ``date_format'' converted to the local time zone
1033   ** .dt %e .dd current message number in thread
1034   ** .dt %E .dd number of messages in current thread
1035   ** .dt %f .dd entire From: line (address + real name)
1036   ** .dt %F .dd author name, or recipient name if the message is from you
1037   ** .dt %H .dd spam attribute(s) of this message
1038   ** .dt %g .dd newsgroup name (if compiled with nntp support)
1039   ** .dt %i .dd message-id of the current message
1040   ** .dt %l .dd number of lines in the message (does not work with maildir,
1041   **            mh, and possibly IMAP folders)
1042   ** .dt %L .dd If an address in the To or CC header field matches an address
1043   **            defined by the users ``subscribe'' command, this displays
1044   **            "To <list-name>", otherwise the same as %F.
1045   ** .dt %m .dd total number of message in the mailbox
1046   ** .dt %M .dd number of hidden messages if the thread is collapsed.
1047   ** .dt %N .dd message score
1048   ** .dt %n .dd author's real name (or address if missing)
1049   ** .dt %O .dd (_O_riginal save folder)  Where mutt would formerly have
1050   **            stashed the message: list name or recipient name if no list
1051   ** .dt %s .dd subject of the message
1052   ** .dt %S .dd status of the message (N/D/d/!/r/\(as)
1053   ** .dt %t .dd `to:' field (recipients)
1054   ** .dt %T .dd the appropriate character from the $$to_chars string
1055   ** .dt %u .dd user (login) name of the author
1056   ** .dt %v .dd first name of the author, or the recipient if the message is from you
1057   ** .dt %W .dd name of organization of author (`organization:' field)
1058   ** .dt %y .dd `x-label:' field, if present
1059   ** .dt %Y .dd `x-label' field, if present, and (1) not at part of a thread tree,
1060   **            (2) at the top of a thread, or (3) `x-label' is different from
1061   **            preceding message's `x-label'.
1062   ** .dt %Z .dd message status flags
1063   ** .dt %{fmt} .dd the date and time of the message is converted to sender's
1064   **                time zone, and ``fmt'' is expanded by the library function
1065   **                ``strftime''; a leading bang disables locales
1066   ** .dt %[fmt] .dd the date and time of the message is converted to the local
1067   **                time zone, and ``fmt'' is expanded by the library function
1068   **                ``strftime''; a leading bang disables locales
1069   ** .dt %(fmt) .dd the local date and time when the message was received.
1070   **                ``fmt'' is expanded by the library function ``strftime'';
1071   **                a leading bang disables locales
1072   ** .dt %<fmt> .dd the current local time. ``fmt'' is expanded by the library
1073   **                function ``strftime''; a leading bang disables locales.
1074   ** .dt %>X    .dd right justify the rest of the string and pad with character "X"
1075   ** .dt %|X    .dd pad to the end of the line with character "X"
1076   ** .de
1077   ** .pp
1078   ** See also: ``$$to_chars''.
1079   */
1080 #ifdef USE_NNTP
1081   { "inews",          DT_PATH, R_NONE, UL &Inews, UL "" },
1082   /*
1083   ** .pp
1084   ** If set, specifies the program and arguments used to deliver news posted
1085   ** by Mutt.  Otherwise, mutt posts article using current connection to
1086   ** news server.  The following printf-style sequence is understood:
1087   ** .pp
1088   ** .ts
1089   ** %s      newsserver name
1090   ** .te
1091   ** .pp
1092   ** Example: set inews="/usr/local/bin/inews -hS"
1093   */
1094 #endif
1095   { "ispell",           DT_PATH, R_NONE, UL &Ispell, UL ISPELL },
1096   /*
1097   ** .pp
1098   ** How to invoke ispell (GNU's spell-checking software).
1099   */
1100   { "keep_flagged", DT_BOOL, R_NONE, OPTKEEPFLAGGED, 0 },
1101   /*
1102   ** .pp
1103   ** If set, read messages marked as flagged will not be moved
1104   ** from your spool mailbox to your ``$$mbox'' mailbox, or as a result of
1105   ** a ``$mbox-hook'' command.
1106   */
1107   { "locale",           DT_STR,  R_BOTH, UL &Locale, UL "C" },
1108   /*
1109   ** .pp
1110   ** The locale used by \fIstrftime(3)\fP to format dates. Legal values are
1111   ** the strings your system accepts for the locale variable \fILC_TIME\fP.
1112   */
1113   { "list_reply",       DT_QUAD, R_NONE, OPT_LISTREPLY, M_NO },
1114   /*
1115   ** .pp
1116   ** When set, address replies to the mailing list the original message came
1117   ** from (instead to the author only). Setting this option to ``ask-yes'' or
1118   ** ``ask-no'' will ask if you really intended to reply to the author only.
1119   */
1120   { "mail_check",       DT_NUM,  R_NONE, UL &BuffyTimeout, 5 },
1121   /*
1122   ** .pp
1123   ** This variable configures how often (in seconds) mutt should look for
1124   ** new mail.
1125   */
1126   { "mailcap_path",     DT_STR,  R_NONE, UL &MailcapPath, 0 },
1127   /*
1128   ** .pp
1129   ** This variable specifies which files to consult when attempting to
1130   ** display MIME bodies not directly supported by Mutt.
1131   */
1132   { "mailcap_sanitize", DT_BOOL, R_NONE, OPTMAILCAPSANITIZE, 1 },
1133   /*
1134   ** .pp
1135   ** If set, mutt will restrict possible characters in mailcap % expandos
1136   ** to a well-defined set of safe characters.  This is the safe setting,
1137   ** but we are not sure it doesn't break some more advanced MIME stuff.
1138   ** .pp
1139   ** \fBDON'T CHANGE THIS SETTING UNLESS YOU ARE REALLY SURE WHAT YOU ARE
1140   ** DOING!\fP
1141   */
1142 #if USE_HCACHE
1143
1144   { "header_cache", DT_PATH, R_NONE, UL &HeaderCache, 0 },
1145   /*
1146   ** .pp
1147   ** The header_cache variable points to the header cache database. If
1148   ** header_cache points to a directory there will be created one header cache
1149   ** database per folder within this directory. If it doesn't point to a directory a
1150   ** global header cache for all folders is used. Per default it is unset and so
1151   ** no header caching will be used.
1152   */
1153   { "maildir_header_cache_verify", DT_BOOL, R_NONE, OPTHCACHEVERIFY, 1 },
1154   /*
1155   ** .pp
1156   ** Check for Maildir unaware programs other than mutt having modified maildir
1157   ** files when the header cache is in use.  This incurs one stat(2) per
1158   ** message every time the folder is opened.
1159   */
1160   { "header_cache_pagesize", DT_STR, R_NONE, UL &HeaderCachePageSize, UL "16384" },
1161   /*
1162   ** .pp
1163   ** Change the maildir header cache database page size.  Too large
1164   ** or too small of a page size for the common header can waste
1165   ** space, memory effectiveness, or CPU time. The default should be more or
1166   ** less the best you can get. For details google after mutt maildir header
1167   ** cache (first hit).
1168   */
1169 #endif /* USE_HCACHE */
1170   { "maildir_trash", DT_BOOL, R_NONE, OPTMAILDIRTRASH, 0 },
1171   /*
1172   ** .pp
1173   ** If set, messages marked as deleted will be saved with the maildir
1174   ** (T)rashed flag instead of unlinked.  \fBNOTE:\fP this only applies
1175   ** to maildir-style mailboxes.  Setting it will have no effect on other
1176   ** mailbox types.
1177   */
1178   { "mark_old",         DT_BOOL, R_BOTH, OPTMARKOLD, 1 },
1179   /*
1180   ** .pp
1181   ** Controls whether or not mutt marks \fInew\fP \fBunread\fP
1182   ** messages as \fIold\fP if you exit a mailbox without reading them.
1183   ** With this option set, the next time you start mutt, the messages
1184   ** will show up with an "O" next to them in the index menu,
1185   ** indicating that they are old.
1186   */
1187   { "markers",          DT_BOOL, R_PAGER, OPTMARKERS, 1 },
1188   /*
1189   ** .pp
1190   ** Controls the display of wrapped lines in the internal pager. If set, a
1191   ** ``+'' marker is displayed at the beginning of wrapped lines. Also see
1192   ** the ``$$smart_wrap'' variable.
1193   */
1194   { "mask",             DT_RX,   R_NONE, UL &Mask, UL "!^\\.[^.]" },
1195   /*
1196   ** .pp
1197   ** A regular expression used in the file browser, optionally preceded by
1198   ** the \fInot\fP operator ``!''.  Only files whose names match this mask
1199   ** will be shown. The match is always case-sensitive.
1200   */
1201   { "mbox",             DT_PATH, R_BOTH, UL &Inbox, UL "~/mbox" },
1202   /*
1203   ** .pp
1204   ** This specifies the folder into which read mail in your ``$$spoolfile''
1205   ** folder will be appended.
1206   */
1207   { "operating_system",  DT_STR, R_NONE, UL&OperatingSystem, 0 },
1208   /*
1209   ** .pp
1210   ** This specifies the operating system name for the User-Agent header. If
1211   ** this is unset, it will be set to the operating system name that uname(2)
1212   ** returns. If uname(2) fails, "UNIX" will be used.
1213   */
1214   { "sidebar_delim", DT_STR, R_BOTH, UL &SidebarDelim, UL "|" },
1215   /*
1216   ** .pp
1217   ** This specifies the delimiter between the sidebar (if visible) and 
1218   ** other screens.
1219   */
1220   { "sidebar_visible", DT_BOOL, R_BOTH, OPTMBOXPANE, 0 },
1221   /*
1222   ** .pp
1223   ** This specifies whether or not to show the mailbox list pane.
1224   */
1225   { "sidebar_width", DT_NUM, R_BOTH, UL &SidebarWidth, 0 },
1226   /*
1227   ** .pp
1228   ** The width of the mailbox list pane (left sidebar like in GUIs).
1229   */
1230   { "mbox_type",        DT_MAGIC,R_NONE, UL &DefaultMagic, M_MBOX },
1231   /*
1232   ** .pp
1233   ** The default mailbox type used when creating new folders. May be any of
1234   ** mbox, MMDF, MH and Maildir.
1235   */
1236   { "metoo",            DT_BOOL, R_NONE, OPTMETOO, 0 },
1237   /*
1238   ** .pp
1239   ** If unset, Mutt will remove your address (see the ``alternates''
1240   ** command) from the list of recipients when replying to a message.
1241   */
1242   { "menu_context",     DT_NUM,  R_NONE, UL &MenuContext, 0 },
1243   /*
1244   ** .pp
1245   ** This variable controls the number of lines of context that are given
1246   ** when scrolling through menus. (Similar to ``$$pager_context''.)
1247   */
1248   { "menu_scroll",      DT_BOOL, R_NONE, OPTMENUSCROLL, 0 },
1249   /*
1250   ** .pp
1251   ** When \fIset\fP, menus will be scrolled up or down one line when you
1252   ** attempt to move across a screen boundary.  If \fIunset\fP, the screen
1253   ** is cleared and the next or previous page of the menu is displayed
1254   ** (useful for slow links to avoid many redraws).
1255   */
1256   { "meta_key",         DT_BOOL, R_NONE, OPTMETAKEY, 0 },
1257   /*
1258   ** .pp
1259   ** If set, forces Mutt to interpret keystrokes with the high bit (bit 8)
1260   ** set as if the user had pressed the ESC key and whatever key remains
1261   ** after having the high bit removed.  For example, if the key pressed
1262   ** has an ASCII value of 0xf4, then this is treated as if the user had
1263   ** pressed ESC then ``x''.  This is because the result of removing the
1264   ** high bit from ``0xf4'' is ``0x74'', which is the ASCII character
1265   ** ``x''.
1266   */
1267   { "mh_purge",         DT_BOOL, R_NONE, OPTMHPURGE, 0 },
1268   /*
1269   ** .pp
1270   ** When unset, mutt will mimic mh's behaviour and rename deleted messages
1271   ** to \fI,<old file name>\fP in mh folders instead of really deleting
1272   ** them.  If the variable is set, the message files will simply be
1273   ** deleted.
1274   */
1275   { "mh_seq_flagged",   DT_STR, R_NONE, UL &MhFlagged, UL "flagged" },
1276   /*
1277   ** .pp
1278   ** The name of the MH sequence used for flagged messages.
1279   */
1280   { "mh_seq_replied",   DT_STR, R_NONE, UL &MhReplied, UL "replied" },
1281   /*
1282   ** .pp
1283   ** The name of the MH sequence used to tag replied messages.
1284   */
1285   { "mh_seq_unseen",    DT_STR, R_NONE, UL &MhUnseen, UL "unseen" },
1286   /*
1287   ** .pp
1288   ** The name of the MH sequence used for unseen messages.
1289   */
1290   { "mime_forward",     DT_QUAD, R_NONE, OPT_MIMEFWD, M_NO },
1291   /*
1292   ** .pp
1293   ** When set, the message you are forwarding will be attached as a
1294   ** separate MIME part instead of included in the main body of the
1295   ** message.  This is useful for forwarding MIME messages so the receiver
1296   ** can properly view the message as it was delivered to you. If you like
1297   ** to switch between MIME and not MIME from mail to mail, set this
1298   ** variable to ask-no or ask-yes.
1299   ** .pp
1300   ** Also see ``$$forward_decode'' and ``$$mime_forward_decode''.
1301   */
1302   { "mime_forward_decode", DT_BOOL, R_NONE, OPTMIMEFORWDECODE, 0 },
1303   /*
1304   ** .pp
1305   ** Controls the decoding of complex MIME messages into text/plain when
1306   ** forwarding a message while ``$$mime_forward'' is \fIset\fP. Otherwise
1307   ** ``$$forward_decode'' is used instead.
1308   */
1309   { "mime_fwd",         DT_SYN,  R_NONE, UL "mime_forward", 0 },
1310   /*
1311   */
1312
1313   { "mime_forward_rest", DT_QUAD, R_NONE, OPT_MIMEFWDREST, M_YES },
1314   /*
1315   ** .pp
1316   ** When forwarding multiple attachments of a MIME message from the recvattach
1317   ** menu, attachments which cannot be decoded in a reasonable manner will
1318   ** be attached to the newly composed message if this option is set.
1319   */
1320
1321 #ifdef USE_NNTP
1322   { "mime_subject",   DT_BOOL, R_NONE, OPTMIMESUBJECT, 1 },
1323   /*
1324   ** .pp
1325   ** If \fIunset\fP, 8-bit ``subject:'' line in article header will not be
1326   ** encoded according to RFC2047 to base64.  This is useful when message
1327   ** is Usenet article, because MIME for news is nonstandard feature.
1328   */
1329 #endif
1330
1331 #ifdef MIXMASTER
1332   { "mix_entry_format", DT_STR,  R_NONE, UL &MixEntryFormat, UL "%4n %c %-16s %a" },
1333   /*
1334   ** .pp
1335   ** This variable describes the format of a remailer line on the mixmaster
1336   ** chain selection screen.  The following printf-like sequences are 
1337   ** supported:
1338   ** .pp
1339   ** .dl
1340   ** .dt %n .dd The running number on the menu.
1341   ** .dt %c .dd Remailer capabilities.
1342   ** .dt %s .dd The remailer's short name.
1343   ** .dt %a .dd The remailer's e-mail address.
1344   ** .de
1345   */
1346   { "mixmaster",        DT_PATH, R_NONE, UL &Mixmaster, UL MIXMASTER },
1347   /*
1348   ** .pp
1349   ** This variable contains the path to the Mixmaster binary on your
1350   ** system.  It is used with various sets of parameters to gather the
1351   ** list of known remailers, and to finally send a message through the
1352   ** mixmaster chain.
1353   */
1354 #endif
1355
1356
1357   { "move",             DT_QUAD, R_NONE, OPT_MOVE, M_ASKNO },
1358   /*
1359   ** .pp
1360   ** Controls whether or not Mutt will move read messages
1361   ** from your spool mailbox to your ``$$mbox'' mailbox, or as a result of
1362   ** a ``$mbox-hook'' command.
1363   */
1364   { "message_format",   DT_STR,  R_NONE, UL &MsgFmt, UL "%s" },
1365   /*
1366   ** .pp
1367   ** This is the string displayed in the ``attachment'' menu for
1368   ** attachments of type message/rfc822.  For a full listing of defined
1369   ** printf()-like sequences see the section on ``$$index_format''.
1370   */
1371   { "msg_format",       DT_SYN,  R_NONE, UL "message_format", 0 },
1372   /*
1373   */
1374   { "msgid_format",     DT_STR, R_NONE, UL &MsgIdFormat, UL "%Y%m%d%h%M%s.G%P%p" },
1375   /*
1376   ** .pp
1377   ** This is the format for the ``local part'' of the message-IDs generated
1378   ** by Mutt-ng. The format string contains of one or more characters. The '%'
1379   ** character marks that certain data will be added to the string, similar to
1380   ** printf(). The following characters are allowed:
1381   ** .pp
1382   ** .dl
1383   ** .dt %d .dd the current day of month
1384   ** .dt %h .dd the current hour
1385   ** .dt %m .dd the current month
1386   ** .dt %M .dd the current minute
1387   ** .dt %O .dd the current UNIX timestamp (octal)
1388   ** .dt %p .dd the process ID
1389   ** .dt %P .dd the current message-ID prefix (a character rotating with 
1390   **            every message-ID being generated)
1391   ** .dt %r .dd a random integer value (decimal)
1392   ** .dt %R .dd a random integer value (hexadecimal)
1393   ** .dt %s .dd the current second
1394   ** .dt %T .dd the current UNIX timestamp (decimal)
1395   ** .dt %X .dd the current UNIX timestamp (hexadecimal)
1396   ** .dt %Y .dd the current year (Y2K compliant)
1397   ** .dt %% .dd the '%' character
1398   ** .de
1399   */
1400   { "narrow_tree",      DT_BOOL, R_TREE|R_INDEX, OPTNARROWTREE, 0 },
1401   /*
1402   ** .pp
1403   ** This variable, when set, makes the thread tree narrower, allowing
1404   ** deeper threads to fit on the screen.
1405   */
1406 #ifdef USE_NNTP
1407   { "news_cache_dir", DT_PATH, R_NONE, UL &NewsCacheDir, UL "~/.mutt" },
1408   /*
1409   ** .pp
1410   ** This variable pointing to directory where Mutt will save cached news
1411   ** articles headers in. If \fIunset\fP, headers will not be saved at all
1412   ** and will be reloaded each time when you enter to newsgroup.
1413   */
1414   { "news_server",    DT_STR,  R_NONE, UL &NewsServer, 0 },
1415   /*
1416   ** .pp
1417   ** This variable specifies domain name or address of NNTP server. It
1418   ** defaults to the newsserver specified in the environment variable
1419   ** $$$NNTPSERVER or contained in the file /etc/nntpserver.  You can also
1420   ** specify username and an alternative port for each newsserver, ie:
1421   ** .pp
1422   ** [nntp[s]://][username[:password]@]newsserver[:port]
1423   */
1424   { "newsrc",         DT_PATH, R_NONE, UL &NewsRc, UL "~/.newsrc" },
1425   /*
1426   ** .pp
1427   ** The file, containing info about subscribed newsgroups - names and
1428   ** indexes of read articles.  The following printf-style sequence
1429   ** is understood:
1430   ** .pp
1431   ** .ts
1432   ** %s      newsserver name
1433   ** .te
1434   */
1435   { "nntp_context",   DT_NUM,  R_NONE, UL &NntpContext, 1000 },
1436   /*
1437   ** .pp
1438   ** This variable defines number of articles which will be in index when
1439   ** newsgroup entered.  If active newsgroup have more articles than this
1440   ** number, oldest articles will be ignored.  Also controls how many
1441   ** articles headers will be saved in cache when you quit newsgroup.
1442   */
1443   { "nntp_load_description", DT_BOOL, R_NONE, OPTLOADDESC, 1 },
1444   /*
1445   ** .pp
1446   ** This variable controls whether or not descriptions for each newsgroup
1447   ** must be loaded when newsgroup is added to list (first time list
1448   ** loading or new newsgroup adding).
1449   */
1450   { "nntp_user",      DT_STR,  R_NONE, UL &NntpUser, UL "" },
1451   /*
1452   ** .pp
1453   ** Your login name on the NNTP server.  If \fIunset\fP and NNTP server requires
1454   ** authentification, Mutt will prompt you for your account name when you
1455   ** connect to newsserver.
1456   */
1457   { "nntp_pass",      DT_STR,  R_NONE, UL &NntpPass, UL "" },
1458   /*
1459   ** .pp
1460   ** Your password for NNTP account.
1461   */
1462   { "nntp_poll",      DT_NUM,  R_NONE, UL &NewsPollTimeout, 60 },
1463   /*
1464   ** .pp
1465   ** The time in seconds until any operations on newsgroup except post new
1466   ** article will cause recheck for new news.  If set to 0, Mutt will
1467   ** recheck newsgroup on each operation in index (stepping, read article,
1468   ** etc.).
1469   */
1470   { "nntp_reconnect", DT_QUAD, R_NONE, OPT_NNTPRECONNECT, M_ASKYES },
1471   /*
1472   ** .pp
1473   ** Controls whether or not Mutt will try to reconnect to newsserver when
1474   ** connection lost.
1475   */
1476 #endif
1477   { "pager",            DT_PATH, R_NONE, UL &Pager, UL "builtin" },
1478   /*
1479   ** .pp
1480   ** This variable specifies which pager you would like to use to view
1481   ** messages.  builtin means to use the builtin pager, otherwise this
1482   ** variable should specify the pathname of the external pager you would
1483   ** like to use.
1484   ** .pp
1485   ** Using an external pager may have some disadvantages: Additional
1486   ** keystrokes are necessary because you can't call mutt functions
1487   ** directly from the pager, and screen resizes cause lines longer than
1488   ** the screen width to be badly formatted in the help menu.
1489   */
1490   { "pager_context",    DT_NUM,  R_NONE, UL &PagerContext, 0 },
1491   /*
1492   ** .pp
1493   ** This variable controls the number of lines of context that are given
1494   ** when displaying the next or previous page in the internal pager.  By
1495   ** default, Mutt will display the line after the last one on the screen
1496   ** at the top of the next page (0 lines of context).
1497   */
1498   { "pager_format",     DT_STR,  R_PAGER, UL &PagerFmt, UL "-%Z- %C/%m: %-20.20n   %s" },
1499   /*
1500   ** .pp
1501   ** This variable controls the format of the one-line message ``status''
1502   ** displayed before each message in either the internal or an external
1503   ** pager.  The valid sequences are listed in the ``$$index_format''
1504   ** section.
1505   */
1506   { "pager_index_lines",DT_NUM,  R_PAGER, UL &PagerIndexLines, 0 },
1507   /*
1508   ** .pp
1509   ** Determines the number of lines of a mini-index which is shown when in
1510   ** the pager.  The current message, unless near the top or bottom of the
1511   ** folder, will be roughly one third of the way down this mini-index,
1512   ** giving the reader the context of a few messages before and after the
1513   ** message.  This is useful, for example, to determine how many messages
1514   ** remain to be read in the current thread.  One of the lines is reserved
1515   ** for the status bar from the index, so a \fIpager_index_lines\fP of 6
1516   ** will only show 5 lines of the actual index.  A value of 0 results in
1517   ** no index being shown.  If the number of messages in the current folder
1518   ** is less than \fIpager_index_lines\fP, then the index will only use as
1519   ** many lines as it needs.
1520   */
1521   { "pager_stop",       DT_BOOL, R_NONE, OPTPAGERSTOP, 0 },
1522   /*
1523   ** .pp
1524   ** When set, the internal-pager will \fBnot\fP move to the next message
1525   ** when you are at the end of a message and invoke the \fInext-page\fP
1526   ** function.
1527   */
1528   { "pgp_autosign",     DT_SYN,  R_NONE, UL "crypt_autosign", 0 },
1529   { "crypt_autosign",   DT_BOOL, R_NONE, OPTCRYPTAUTOSIGN, 0 },
1530   /*
1531   ** .pp
1532   ** Setting this variable will cause Mutt to always attempt to
1533   ** cryptographically sign outgoing messages.  This can be overridden
1534   ** by use of the \fIpgp-menu\fP, when signing is not required or
1535   ** encryption is requested as well. If ``$$smime_is_default'' is set,
1536   ** then OpenSSL is used instead to create S/MIME messages and settings can
1537   ** be overridden by use of the \fIsmime-menu\fP.
1538   ** (Crypto only)
1539   */
1540   { "pgp_autoencrypt",          DT_SYN,  R_NONE, UL "crypt_autoencrypt", 0 },
1541   { "crypt_autoencrypt",        DT_BOOL, R_NONE, OPTCRYPTAUTOENCRYPT, 0 },
1542   /*
1543   ** .pp
1544   ** Setting this variable will cause Mutt to always attempt to PGP
1545   ** encrypt outgoing messages.  This is probably only useful in
1546   ** connection to the \fIsend-hook\fP command.  It can be overridden
1547   ** by use of the \fIpgp-menu\fP, when encryption is not required or
1548   ** signing is requested as well.  IF ``$$smime_is_default'' is set,
1549   ** then OpenSSL is used instead to create S/MIME messages and
1550   ** settings can be overridden by use of the \fIsmime-menu\fP.
1551   ** (Crypto only)
1552   */
1553   { "pgp_ignore_subkeys", DT_BOOL, R_NONE, OPTPGPIGNORESUB, 1},
1554   /*
1555   ** .pp
1556   ** Setting this variable will cause Mutt to ignore OpenPGP subkeys. Instead,
1557   ** the principal key will inherit the subkeys' capabilities.  Unset this
1558   ** if you want to play interesting key selection games.
1559   ** (PGP only)
1560   */
1561   { "pgp_replyencrypt",         DT_SYN,  R_NONE, UL "crypt_replyencrypt", 1  },
1562   { "crypt_replyencrypt",       DT_BOOL, R_NONE, OPTCRYPTREPLYENCRYPT, 1 },
1563   /*
1564   ** .pp
1565   ** If set, automatically PGP or OpenSSL encrypt replies to messages which are
1566   ** encrypted.
1567   ** (Crypto only)
1568   */
1569   { "pgp_replysign",    DT_SYN, R_NONE, UL "crypt_replysign", 0 },
1570   { "crypt_replysign",  DT_BOOL, R_NONE, OPTCRYPTREPLYSIGN, 0 },
1571   /*
1572   ** .pp
1573   ** If set, automatically PGP or OpenSSL sign replies to messages which are
1574   ** signed.
1575   ** .pp
1576   ** \fBNote:\fP this does not work on messages that are encrypted
1577   ** \fBand\fP signed!
1578   ** (Crypto only)
1579   */
1580   { "pgp_replysignencrypted",   DT_SYN,  R_NONE, UL "crypt_replysignencrypted", 0},
1581   { "crypt_replysignencrypted", DT_BOOL, R_NONE, OPTCRYPTREPLYSIGNENCRYPTED, 0 },
1582   /*
1583   ** .pp
1584   ** If set, automatically PGP or OpenSSL sign replies to messages
1585   ** which are encrypted. This makes sense in combination with
1586   ** ``$$crypt_replyencrypt'', because it allows you to sign all
1587   ** messages which are automatically encrypted.  This works around
1588   ** the problem noted in ``$$crypt_replysign'', that mutt is not able
1589   ** to find out whether an encrypted message is also signed.
1590   ** (Crypto only)
1591   */
1592   { "crypt_timestamp", DT_BOOL, R_NONE, OPTCRYPTTIMESTAMP, 1 },
1593   /*
1594   ** .pp
1595   ** If set, mutt will include a time stamp in the lines surrounding
1596   ** PGP or S/MIME output, so spoofing such lines is more difficult.
1597   ** If you are using colors to mark these lines, and rely on these,
1598   ** you may unset this setting.
1599   ** (Crypto only)
1600   */
1601   { "pgp_use_gpg_agent", DT_BOOL, R_NONE, OPTUSEGPGAGENT, 0},
1602   /*
1603   ** .pp
1604   ** If set, mutt will use a possibly-running gpg-agent process.
1605   ** (PGP only)
1606   */
1607   { "pgp_verify_sig",   DT_SYN,  R_NONE, UL "crypt_verify_sig", 0},
1608   { "crypt_verify_sig", DT_QUAD, R_NONE, OPT_VERIFYSIG, M_YES },
1609   /*
1610   ** .pp
1611   ** If ``yes'', always attempt to verify PGP or S/MIME signatures.
1612   ** If ``ask'', ask whether or not to verify the signature. 
1613   ** If ``no'', never attempt to verify cryptographic signatures.
1614   ** (Crypto only)
1615   */
1616   { "smime_is_default", DT_BOOL,  R_NONE, OPTSMIMEISDEFAULT, 0},
1617   /*
1618   ** .pp
1619   ** The default behaviour of mutt is to use PGP on all auto-sign/encryption
1620   ** operations. To override and to use OpenSSL instead this must be set.
1621   ** However, this has no effect while replying, since mutt will automatically 
1622   ** select the same application that was used to sign/encrypt the original
1623   ** message.  (Note that this variable can be overridden by unsetting $$crypt_autosmime.)
1624   ** (S/MIME only)
1625   */
1626   { "smime_ask_cert_label",     DT_BOOL, R_NONE, OPTASKCERTLABEL, 1 },
1627   /*
1628   ** .pp
1629   ** This flag controls whether you want to be asked to enter a label
1630   ** for a certificate about to be added to the database or not. It is
1631   ** set by default.
1632   ** (S/MIME only)
1633   */
1634   { "smime_decrypt_use_default_key",    DT_BOOL, R_NONE, OPTSDEFAULTDECRYPTKEY, 1 },
1635   /*
1636   ** .pp
1637   ** If set (default) this tells mutt to use the default key for decryption. Otherwise,
1638   ** if manage multiple certificate-key-pairs, mutt will try to use the mailbox-address
1639   ** to determine the key to use. It will ask you to supply a key, if it can't find one.
1640   ** (S/MIME only)
1641   */
1642   { "pgp_entry_format", DT_STR,  R_NONE, UL &PgpEntryFormat, UL "%4n %t%f %4l/0x%k %-4a %2c %u" },
1643   /*
1644   ** .pp
1645   ** This variable allows you to customize the PGP key selection menu to
1646   ** your personal taste. This string is similar to ``$$index_format'', but
1647   ** has its own set of printf()-like sequences:
1648   ** .pp
1649   ** .dl
1650   ** .dt %n     .dd number
1651   ** .dt %k     .dd key id
1652   ** .dt %u     .dd user id
1653   ** .dt %a     .dd algorithm
1654   ** .dt %l     .dd key length
1655   ** .dt %f     .dd flags
1656   ** .dt %c     .dd capabilities
1657   ** .dt %t     .dd trust/validity of the key-uid association
1658   ** .dt %[<s>] .dd date of the key where <s> is an strftime(3) expression
1659   ** .de
1660   ** .pp
1661   ** (PGP only)
1662   */
1663   { "pgp_good_sign",    DT_RX,  R_NONE, UL &PgpGoodSign, 0 },
1664   /*
1665   ** .pp
1666   ** If you assign a text to this variable, then a PGP signature is only
1667   ** considered verified if the output from $$pgp_verify_command contains
1668   ** the text. Use this variable if the exit code from the command is 0
1669   ** even for bad signatures.
1670   ** (PGP only)
1671   */ 
1672   { "pgp_check_exit",   DT_BOOL, R_NONE, OPTPGPCHECKEXIT, 1 },
1673   /*
1674   ** .pp
1675   ** If set, mutt will check the exit code of the PGP subprocess when
1676   ** signing or encrypting.  A non-zero exit code means that the
1677   ** subprocess failed.
1678   ** (PGP only)
1679   */
1680   { "pgp_long_ids",     DT_BOOL, R_NONE, OPTPGPLONGIDS, 0 },
1681   /*
1682   ** .pp
1683   ** If set, use 64 bit PGP key IDs. Unset uses the normal 32 bit Key IDs.
1684   ** (PGP only)
1685   */
1686   { "pgp_retainable_sigs", DT_BOOL, R_NONE, OPTPGPRETAINABLESIG, 0 },
1687   /*
1688   ** .pp
1689   ** If set, signed and encrypted messages will consist of nested
1690   ** multipart/signed and multipart/encrypted body parts.
1691   ** .pp
1692   ** This is useful for applications like encrypted and signed mailing
1693   ** lists, where the outer layer (multipart/encrypted) can be easily
1694   ** removed, while the inner multipart/signed part is retained.
1695   ** (PGP only)
1696   */
1697   { "pgp_create_traditional",   DT_SYN, R_NONE, UL "pgp_autoinline", 0 },
1698   { "pgp_autoinline",           DT_BOOL, R_NONE, OPTPGPAUTOINLINE, 0 },
1699   /*
1700   ** .pp
1701   ** This option controls whether Mutt generates old-style inline
1702   ** (traditional) PGP encrypted or signed messages under certain
1703   ** circumstances.  This can be overridden by use of the \fIpgp-menu\fP,
1704   ** when inline is not required.
1705   ** .pp
1706   ** Note that Mutt might automatically use PGP/MIME for messages
1707   ** which consist of more than a single MIME part.  Mutt can be
1708   ** configured to ask before sending PGP/MIME messages when inline
1709   ** (traditional) would not work.
1710   ** See also: ``$$pgp_mime_auto''.
1711   ** .pp
1712   ** Also note that using the old-style PGP message format is \fBstrongly\fP
1713   ** \fBdeprecated\fP.
1714   ** (PGP only)
1715   */
1716   { "pgp_auto_traditional",     DT_SYN, R_NONE, UL "pgp_replyinline", 0 },
1717   { "pgp_replyinline",          DT_BOOL, R_NONE, OPTPGPREPLYINLINE, 0 },
1718   /*
1719   ** .pp
1720   ** Setting this variable will cause Mutt to always attempt to
1721   ** create an inline (traditional) message when replying to a
1722   ** message which is PGP encrypted/signed inline.  This can be
1723   ** overridden by use of the \fIpgp-menu\fP, when inline is not
1724   ** required.  This option does not automatically detect if the
1725   ** (replied-to) message is inline; instead it relies on Mutt
1726   ** internals for previously checked/flagged messages.
1727   ** .pp
1728   ** Note that Mutt might automatically use PGP/MIME for messages
1729   ** which consist of more than a single MIME part.  Mutt can be
1730   ** configured to ask before sending PGP/MIME messages when inline
1731   ** (traditional) would not work.
1732   ** See also: ``$$pgp_mime_auto''.
1733   ** .pp
1734   ** Also note that using the old-style PGP message format is \fBstrongly\fP
1735   ** \fBdeprecated\fP.
1736   ** (PGP only)
1737   ** 
1738   */
1739   { "pgp_show_unusable", DT_BOOL, R_NONE, OPTPGPSHOWUNUSABLE, 1 },
1740   /*
1741   ** .pp
1742   ** If set, mutt will display non-usable keys on the PGP key selection
1743   ** menu.  This includes keys which have been revoked, have expired, or
1744   ** have been marked as ``disabled'' by the user.
1745   ** (PGP only)
1746   */
1747   { "pgp_sign_as",      DT_STR,  R_NONE, UL &PgpSignAs, 0 },
1748   /*
1749   ** .pp
1750   ** If you have more than one key pair, this option allows you to specify
1751   ** which of your private keys to use.  It is recommended that you use the
1752   ** keyid form to specify your key (e.g., ``0x00112233'').
1753   ** (PGP only)
1754   */
1755   { "pgp_strict_enc",   DT_BOOL, R_NONE, OPTPGPSTRICTENC, 1 },
1756   /*
1757   ** .pp
1758   ** If set, Mutt will automatically encode PGP/MIME signed messages as
1759   ** \fIquoted-printable\fP.  Please note that unsetting this variable may
1760   ** lead to problems with non-verifyable PGP signatures, so only change
1761   ** this if you know what you are doing.
1762   ** (PGP only)
1763   */
1764   { "pgp_timeout",      DT_NUM,  R_NONE, UL &PgpTimeout, 300 },
1765   /*
1766   ** .pp
1767   ** The number of seconds after which a cached passphrase will expire if
1768   ** not used.
1769   ** (PGP only)
1770   */
1771   { "pgp_sort_keys",    DT_SORT|DT_SORT_KEYS, R_NONE, UL &PgpSortKeys, SORT_ADDRESS },
1772   /*
1773   ** .pp
1774   ** Specifies how the entries in the `pgp keys' menu are sorted. The
1775   ** following are legal values:
1776   ** .pp
1777   ** .dl
1778   ** .dt address .dd sort alphabetically by user id
1779   ** .dt keyid   .dd sort alphabetically by key id
1780   ** .dt date    .dd sort by key creation date
1781   ** .dt trust   .dd sort by the trust of the key
1782   ** .de
1783   ** .pp
1784   ** If you prefer reverse order of the above values, prefix it with
1785   ** `reverse-'.
1786   ** (PGP only)
1787   */
1788   { "pgp_mime_auto", DT_QUAD, R_NONE, OPT_PGPMIMEAUTO, M_ASKYES },
1789   /*
1790   ** .pp
1791   ** This option controls whether Mutt will prompt you for
1792   ** automatically sending a (signed/encrypted) message using
1793   ** PGP/MIME when inline (traditional) fails (for any reason).
1794   ** .pp
1795   ** Also note that using the old-style PGP message format is \fBstrongly\fP
1796   ** \fBdeprecated\fP.
1797   ** (PGP only)
1798   */
1799   { "pgp_auto_decode", DT_BOOL, R_NONE, OPTPGPAUTODEC, 0 },
1800   /*
1801   ** .pp
1802   ** If set, mutt will automatically attempt to decrypt traditional PGP
1803   ** messages whenever the user performs an operation which ordinarily would
1804   ** result in the contents of the message being operated on.  For example,
1805   ** if the user displays a pgp-traditional message which has not been manually
1806   ** checked with the check-traditional-pgp function, mutt will automatically
1807   ** check the message for traditional pgp.
1808   */
1809
1810
1811   /* XXX Default values! */
1812   
1813   { "pgp_decode_command",       DT_STR, R_NONE, UL &PgpDecodeCommand, 0},
1814   /*
1815   ** .pp
1816   ** This format strings specifies a command which is used to decode 
1817   ** application/pgp attachments.
1818   ** .pp
1819   ** The PGP command formats have their own set of printf-like sequences:
1820   ** .pp
1821   ** .dl
1822   ** .dt %p .dd Expands to PGPPASSFD=0 when a pass phrase is needed, to an empty
1823   **            string otherwise. Note: This may be used with a %? construct.
1824   ** .dt %f .dd Expands to the name of a file containing a message.
1825   ** .dt %s .dd Expands to the name of a file containing the signature part
1826   ** .          of a multipart/signed attachment when verifying it.
1827   ** .dt %a .dd The value of $$pgp_sign_as.
1828   ** .dt %r .dd One or more key IDs.
1829   ** .de
1830   ** .pp
1831   ** For examples on how to configure these formats for the various versions
1832   ** of PGP which are floating around, see the pgp*.rc and gpg.rc files in
1833   ** the samples/ subdirectory which has been installed on your system
1834   ** alongside the documentation.
1835   ** (PGP only)
1836   */
1837   { "pgp_getkeys_command",      DT_STR, R_NONE, UL &PgpGetkeysCommand, 0},
1838   /*
1839   ** .pp
1840   ** This command is invoked whenever mutt will need public key information.
1841   ** %r is the only printf-like sequence used with this format.
1842   ** (PGP only)
1843   */
1844   { "pgp_verify_command",       DT_STR, R_NONE, UL &PgpVerifyCommand, 0},
1845   /*
1846   ** .pp
1847   ** This command is used to verify PGP signatures.
1848   ** (PGP only)
1849   */
1850   { "pgp_decrypt_command",      DT_STR, R_NONE, UL &PgpDecryptCommand, 0},
1851   /*
1852   ** .pp
1853   ** This command is used to decrypt a PGP encrypted message.
1854   ** (PGP only)
1855   */  
1856   { "pgp_clearsign_command",    DT_STR, R_NONE, UL &PgpClearSignCommand, 0 },
1857   /*
1858   ** .pp
1859   ** This format is used to create a old-style "clearsigned" PGP
1860   ** message.  Note that the use of this format is \fBstrongly\fP
1861   ** \fBdeprecated\fP.
1862   ** (PGP only)
1863   */
1864   { "pgp_sign_command",         DT_STR, R_NONE, UL &PgpSignCommand, 0},
1865   /*
1866   ** .pp
1867   ** This command is used to create the detached PGP signature for a 
1868   ** multipart/signed PGP/MIME body part.
1869   ** (PGP only)
1870   */  
1871   { "pgp_encrypt_sign_command", DT_STR, R_NONE, UL &PgpEncryptSignCommand, 0},
1872   /*
1873   ** .pp
1874   ** This command is used to both sign and encrypt a body part.
1875   ** (PGP only)
1876   */  
1877   { "pgp_encrypt_only_command", DT_STR, R_NONE, UL &PgpEncryptOnlyCommand, 0},
1878   /*
1879   ** .pp
1880   ** This command is used to encrypt a body part without signing it.
1881   ** (PGP only)
1882   */  
1883   { "pgp_import_command",       DT_STR, R_NONE, UL &PgpImportCommand, 0},
1884   /*
1885   ** .pp
1886   ** This command is used to import a key from a message into 
1887   ** the user's public key ring.
1888   ** (PGP only)
1889   */  
1890   { "pgp_export_command",       DT_STR, R_NONE, UL &PgpExportCommand, 0},
1891   /*
1892   ** .pp
1893   ** This command is used to export a public key from the user's
1894   ** key ring.
1895   ** (PGP only)
1896   */  
1897   { "pgp_verify_key_command",   DT_STR, R_NONE, UL &PgpVerifyKeyCommand, 0},
1898   /*
1899   ** .pp
1900   ** This command is used to verify key information from the key selection
1901   ** menu.
1902   ** (PGP only)
1903   */  
1904   { "pgp_list_secring_command", DT_STR, R_NONE, UL &PgpListSecringCommand, 0},
1905   /*
1906   ** .pp
1907   ** This command is used to list the secret key ring's contents.  The
1908   ** output format must be analogous to the one used by 
1909   ** gpg --list-keys --with-colons.
1910   ** .pp
1911   ** This format is also generated by the pgpring utility which comes 
1912   ** with mutt.
1913   ** (PGP only)
1914   */  
1915   { "pgp_list_pubring_command", DT_STR, R_NONE, UL &PgpListPubringCommand, 0},
1916   /*
1917   ** .pp
1918   ** This command is used to list the public key ring's contents.  The
1919   ** output format must be analogous to the one used by 
1920   ** gpg --list-keys --with-colons.
1921   ** .pp
1922   ** This format is also generated by the pgpring utility which comes 
1923   ** with mutt.
1924   ** (PGP only)
1925   */  
1926   { "forward_decrypt",  DT_BOOL, R_NONE, OPTFORWDECRYPT, 1 },
1927   /*
1928   ** .pp
1929   ** Controls the handling of encrypted messages when forwarding a message.
1930   ** When set, the outer layer of encryption is stripped off.  This
1931   ** variable is only used if ``$$mime_forward'' is \fIset\fP and
1932   ** ``$$mime_forward_decode'' is \fIunset\fP.
1933   ** (PGP only)
1934   */
1935   { "forw_decrypt",     DT_SYN,  R_NONE, UL "forward_decrypt", 0 },
1936   /*
1937   */
1938   
1939   { "smime_timeout",            DT_NUM,  R_NONE, UL &SmimeTimeout, 300 },
1940   /*
1941   ** .pp
1942   ** The number of seconds after which a cached passphrase will expire if
1943   ** not used.
1944   ** (S/MIME only)
1945   */
1946   { "smime_encrypt_with",       DT_STR,  R_NONE, UL &SmimeCryptAlg, 0 },
1947   /*
1948   ** .pp
1949   ** This sets the algorithm that should be used for encryption.
1950   ** Valid choices are "des", "des3", "rc2-40", "rc2-64", "rc2-128".
1951   ** If unset "3des" (TripleDES) is used.
1952   ** (S/MIME only)
1953   */
1954   { "smime_keys",               DT_PATH, R_NONE, UL &SmimeKeys, 0 },
1955   /*
1956   ** .pp
1957   ** Since there is no pubring/secring as with PGP, mutt has to handle
1958   ** storage ad retrieval of keys/certs by itself. This is very basic right now,
1959   ** and stores keys and certificates in two different directories, both
1960   ** named as the hash-value retrieved from OpenSSL. There is an index file
1961   ** which contains mailbox-address keyid pair, and which can be manually
1962   ** edited. This one points to the location of the private keys.
1963   ** (S/MIME only)
1964   */
1965   { "smime_ca_location",        DT_PATH, R_NONE, UL &SmimeCALocation, 0 },
1966   /*
1967   ** .pp
1968   ** This variable contains the name of either a directory, or a file which
1969   ** contains trusted certificates for use with OpenSSL.
1970   ** (S/MIME only)
1971   */
1972   { "smime_certificates",       DT_PATH, R_NONE, UL &SmimeCertificates, 0 },
1973   /*
1974   ** .pp
1975   ** Since there is no pubring/secring as with PGP, mutt has to handle
1976   ** storage and retrieval of keys by itself. This is very basic right
1977   ** now, and keys and certificates are stored in two different
1978   ** directories, both named as the hash-value retrieved from
1979   ** OpenSSL. There is an index file which contains mailbox-address
1980   ** keyid pairs, and which can be manually edited. This one points to
1981   ** the location of the certificates.
1982   ** (S/MIME only)
1983   */
1984   { "smime_decrypt_command",    DT_STR, R_NONE, UL &SmimeDecryptCommand, 0},
1985   /*
1986   ** .pp
1987   ** This format string specifies a command which is used to decrypt
1988   ** application/x-pkcs7-mime attachments.
1989   ** .pp
1990   ** The OpenSSL command formats have their own set of printf-like sequences
1991   ** similar to PGP's:
1992   ** .pp
1993   ** .dl
1994   ** .dt %f .dd Expands to the name of a file containing a message.
1995   ** .dt %s .dd Expands to the name of a file containing the signature part
1996   ** .          of a multipart/signed attachment when verifying it.
1997   ** .dt %k .dd The key-pair specified with $$smime_default_key
1998   ** .dt %c .dd One or more certificate IDs.
1999   ** .dt %a .dd The algorithm used for encryption.
2000   ** .dt %C .dd CA location:  Depending on whether $$smime_ca_location
2001   ** .          points to a directory or file, this expands to 
2002   ** .          "-CApath $$smime_ca_location" or "-CAfile $$smime_ca_location".
2003   ** .de
2004   ** .pp
2005   ** For examples on how to configure these formats, see the smime.rc in
2006   ** the samples/ subdirectory which has been installed on your system
2007   ** alongside the documentation.
2008   ** (S/MIME only)
2009   */
2010   { "smime_verify_command",     DT_STR, R_NONE, UL &SmimeVerifyCommand, 0},
2011   /*
2012   ** .pp
2013   ** This command is used to verify S/MIME signatures of type multipart/signed.
2014   ** (S/MIME only)
2015   */
2016   { "smime_verify_opaque_command",      DT_STR, R_NONE, UL &SmimeVerifyOpaqueCommand, 0},
2017   /*
2018   ** .pp
2019   ** This command is used to verify S/MIME signatures of type
2020   ** application/x-pkcs7-mime.
2021   ** (S/MIME only)
2022   */
2023   { "smime_sign_command",       DT_STR, R_NONE, UL &SmimeSignCommand, 0},
2024   /*
2025   ** .pp
2026   ** This command is used to created S/MIME signatures of type
2027   ** multipart/signed, which can be read by all mail clients.
2028   ** (S/MIME only)
2029   */
2030   { "smime_sign_opaque_command",        DT_STR, R_NONE, UL &SmimeSignOpaqueCommand, 0},
2031   /*
2032   ** .pp
2033   ** This command is used to created S/MIME signatures of type
2034   ** application/x-pkcs7-signature, which can only be handled by mail
2035   ** clients supporting the S/MIME extension.
2036   ** (S/MIME only)
2037   */
2038   { "smime_encrypt_command",    DT_STR, R_NONE, UL &SmimeEncryptCommand, 0},
2039   /*
2040   ** .pp
2041   ** This command is used to create encrypted S/MIME messages.
2042   ** (S/MIME only)
2043   */
2044   { "smime_pk7out_command",     DT_STR, R_NONE, UL &SmimePk7outCommand, 0},
2045   /*
2046   ** .pp
2047   ** This command is used to extract PKCS7 structures of S/MIME signatures,
2048   ** in order to extract the public X509 certificate(s).
2049   ** (S/MIME only)
2050   */
2051   { "smime_get_cert_command",   DT_STR, R_NONE, UL &SmimeGetCertCommand, 0},
2052   /*
2053   ** .pp
2054   ** This command is used to extract X509 certificates from a PKCS7 structure.
2055   ** (S/MIME only)
2056   */
2057   { "smime_get_signer_cert_command",    DT_STR, R_NONE, UL &SmimeGetSignerCertCommand, 0},
2058   /*
2059   ** .pp
2060   ** This command is used to extract only the signers X509 certificate from a S/MIME
2061   ** signature, so that the certificate's owner may get compared to the
2062   ** email's 'From'-field.
2063   ** (S/MIME only)
2064   */
2065   { "smime_import_cert_command",        DT_STR, R_NONE, UL &SmimeImportCertCommand, 0},
2066   /*
2067   ** .pp
2068   ** This command is used to import a certificate via smime_keys.
2069   ** (S/MIME only)
2070   */
2071   { "smime_get_cert_email_command",     DT_STR, R_NONE, UL &SmimeGetCertEmailCommand, 0},
2072   /*
2073   ** .pp
2074   ** This command is used to extract the mail address(es) used for storing
2075   ** X509 certificates, and for verification purposes (to check whether the
2076   ** certificate was issued for the sender's mailbox).
2077   ** (S/MIME only)
2078   */
2079   { "smime_sign_as",                    DT_SYN,  R_NONE, UL "smime_default_key", 0 },
2080   { "smime_default_key",                DT_STR,  R_NONE, UL &SmimeDefaultKey, 0 },
2081   /*
2082   ** .pp
2083   ** This is the default key-pair to use for signing. This must be set to the
2084   ** keyid (the hash-value that OpenSSL generates) to work properly
2085   ** (S/MIME only)
2086   */
2087 #if defined(USE_LIBESMTP)
2088   { "smtp_auth_username", DT_STR, R_NONE, UL &SmtpAuthUser, 0 },
2089   /*
2090   ** .pp
2091   ** Defines the username to use with SMTP AUTH.  Setting this variable will
2092   ** cause mutt to attempt to use SMTP AUTH when sending.
2093   */
2094   { "smtp_auth_password", DT_STR, R_NONE, UL &SmtpAuthPass, 0 },
2095   /*
2096   ** .pp
2097   ** Defines the password to use with SMTP AUTH.  If ``$$smtp_auth_username''
2098   ** is set, but this variable is not, you will be prompted for a password
2099   ** when sending.
2100   */
2101   { "smtp_host", DT_STR, R_NONE, UL &SmtpHost, 0 },
2102   /*
2103   ** .pp
2104   ** Defines the SMTP host which will be used to deliver mail, as opposed
2105   ** to invoking the sendmail binary.  Setting this variable overrides the
2106   ** value of ``$$sendmail'', and any associated variables.
2107   */
2108   { "smtp_port", DT_NUM, R_NONE, UL &SmtpPort, 25 },
2109   /*
2110   ** .pp
2111   ** Defines the port that the SMTP host is listening on for mail delivery.
2112   ** Must be specified as a number.
2113   ** .pp
2114   ** Defaults to 25, the standard SMTP port, but RFC 2476-compliant SMTP
2115   ** servers will probably desire 587, the mail submission port.
2116   */
2117 #endif
2118  
2119 #if defined(USE_SSL)||defined(USE_NSS)||defined(USE_GNUTLS)
2120 #ifdef USE_SSL
2121   { "ssl_client_cert", DT_PATH, R_NONE, UL &SslClientCert, 0 },
2122   /*
2123   ** .pp
2124   ** The file containing a client certificate and its associated private
2125   ** key.
2126   */
2127 #endif
2128 # if defined(USE_SSL)||defined(USE_GNUTLS)
2129   { "ssl_starttls", DT_QUAD, R_NONE, OPT_SSLSTARTTLS, M_YES },
2130   /*
2131   ** .pp
2132   ** If set (the default), mutt will attempt to use STARTTLS on servers
2133   ** advertising the capability. When unset, mutt will not attempt to
2134   ** use STARTTLS regardless of the server's capabilities.
2135   */
2136 # endif  
2137   { "certificate_file", DT_PATH, R_NONE, UL &SslCertFile, UL "~/.mutt_certificates" },
2138   /*
2139   ** .pp
2140   ** This variable specifies the file where the certificates you trust
2141   ** are saved. When an unknown certificate is encountered, you are asked
2142   ** if you accept it or not. If you accept it, the certificate can also 
2143   ** be saved in this file and further connections are automatically 
2144   ** accepted.
2145   ** .pp
2146   ** You can also manually add CA certificates in this file. Any server
2147   ** certificate that is signed with one of these CA certificates are 
2148   ** also automatically accepted.
2149   ** .pp
2150   ** Example: set certificate_file=~/.mutt/certificates
2151   */
2152 # ifndef USE_GNUTLS
2153   { "ssl_usesystemcerts", DT_BOOL, R_NONE, OPTSSLSYSTEMCERTS, 1 },
2154   /*
2155   ** .pp
2156   ** If set to \fIyes\fP, mutt will use CA certificates in the
2157   ** system-wide certificate store when checking if server certificate 
2158   ** is signed by a trusted CA.
2159   */
2160   { "entropy_file",     DT_PATH, R_NONE, UL &SslEntropyFile, 0 },
2161   /*
2162   ** .pp
2163   ** The file which includes random data that is used to initialize SSL
2164   ** library functions.
2165    */
2166   { "ssl_use_sslv2", DT_BOOL, R_NONE, OPTSSLV2, 1 },
2167   /*
2168   ** .pp
2169   ** This variables specifies whether to attempt to use SSLv2 in the
2170   ** SSL authentication process.
2171   */
2172 # endif
2173   { "ssl_use_sslv3", DT_BOOL, R_NONE, OPTSSLV3, 1 },
2174   /*
2175   ** .pp
2176   ** This variables specifies whether to attempt to use SSLv3 in the
2177   ** SSL authentication process.
2178   */
2179   { "ssl_use_tlsv1", DT_BOOL, R_NONE, OPTTLSV1, 1 },
2180   /*
2181   ** .pp
2182   ** This variables specifies whether to attempt to use TLSv1 in the
2183   ** SSL authentication process.
2184   */
2185 #ifdef USE_GNUTLS
2186   { "ssl_min_dh_prime_bits", DT_NUM, R_NONE, UL &SslDHPrimeBits, 0 },
2187   /*
2188   ** .pp
2189   ** This variable specifies the minimum acceptable prime size (in bits)
2190   ** for use in any Diffie-Hellman key exchange. A value of 0 will use
2191   ** the default from the GNUTLS library.
2192   */
2193   { "ssl_ca_certificates_file", DT_PATH, R_NONE, UL &SslCACertFile, 0 },
2194   /*
2195   ** .pp
2196   ** This variable specifies a file containing trusted CA certificates.
2197   ** Any server certificate that is signed with one of these CA
2198   ** certificates are also automatically accepted.
2199   ** .pp
2200   ** Example: set ssl_ca_certificates_file=/etc/ssl/certs/ca-certificates.crt
2201   */
2202 #ifdef USE_GNUTLS
2203   { "ssl_min_dh_prime_bits", DT_NUM, R_NONE, UL &SslDHPrimeBits, 0 },
2204   /*
2205   ** .pp
2206   ** This variable specifies the minimum acceptable prime size (in bits)
2207   ** for use in any Diffie-Hellman key exchange. A value of 0 will use
2208   ** the default from the GNUTLS library.
2209   */
2210   { "ssl_ca_certificates_file", DT_PATH, R_NONE, UL &SslCACertFile, 0 },
2211   /*
2212   ** .pp
2213   ** This variable specifies a file containing trusted CA certificates.
2214   ** Any server certificate that is signed with one of these CA
2215   ** certificates are also automatically accepted.
2216   ** .pp
2217   ** Example: set ssl_ca_certificates_file=/etc/ssl/certs/ca-certificates.crt
2218   */
2219 #endif
2220 #endif
2221 #endif
2222
2223   { "pipe_split",       DT_BOOL, R_NONE, OPTPIPESPLIT, 0 },
2224   /*
2225   ** .pp
2226   ** Used in connection with the \fIpipe-message\fP command and the ``tag-
2227   ** prefix'' operator.  If this variable is unset, when piping a list of
2228   ** tagged messages Mutt will concatenate the messages and will pipe them
2229   ** as a single folder.  When set, Mutt will pipe the messages one by one.
2230   ** In both cases the messages are piped in the current sorted order,
2231   ** and the ``$$pipe_sep'' separator is added after each message.
2232   */
2233   { "pipe_decode",      DT_BOOL, R_NONE, OPTPIPEDECODE, 0 },
2234   /*
2235   ** .pp
2236   ** Used in connection with the \fIpipe-message\fP command.  When unset,
2237   ** Mutt will pipe the messages without any preprocessing. When set, Mutt
2238   ** will weed headers and will attempt to PGP/MIME decode the messages
2239   ** first.
2240   */
2241   { "pipe_sep",         DT_STR,  R_NONE, UL &PipeSep, UL "\n" },
2242   /*
2243   ** .pp
2244   ** The separator to add between messages when piping a list of tagged
2245   ** messages to an external Unix command.
2246   */
2247 #ifdef USE_POP
2248   { "pop_authenticators", DT_STR, R_NONE, UL &PopAuthenticators, UL 0 },
2249   /*
2250   ** .pp
2251   ** This is a colon-delimited list of authentication methods mutt may
2252   ** attempt to use to log in to an POP server, in the order mutt should
2253   ** try them.  Authentication methods are either 'user', 'apop' or any
2254   ** SASL mechanism, eg 'digest-md5', 'gssapi' or 'cram-md5'.
2255   ** This parameter is case-insensitive. If this parameter is unset
2256   ** (the default) mutt will try all available methods, in order from
2257   ** most-secure to least-secure.
2258   ** .pp
2259   ** Example: set pop_authenticators="digest-md5:apop:user"
2260   */
2261   { "pop_auth_try_all", DT_BOOL, R_NONE, OPTPOPAUTHTRYALL, 1 },
2262   /*
2263   ** .pp
2264   ** If set, Mutt will try all available methods. When unset, Mutt will
2265   ** only fall back to other authentication methods if the previous
2266   ** methods are unavailable. If a method is available but authentication
2267   ** fails, Mutt will not connect to the POP server.
2268   */
2269   { "pop_checkinterval", DT_NUM, R_NONE, UL &PopCheckTimeout, 60 },
2270   /*
2271   ** .pp
2272   ** This variable configures how often (in seconds) POP should look for
2273   ** new mail.
2274   */
2275   { "pop_delete",       DT_QUAD, R_NONE, OPT_POPDELETE, M_ASKNO },
2276   /*
2277   ** .pp
2278   ** If set, Mutt will delete successfully downloaded messages from the POP
2279   ** server when using the fetch-mail function.  When unset, Mutt will
2280   ** download messages but also leave them on the POP server.
2281   */
2282   { "pop_host",         DT_STR,  R_NONE, UL &PopHost, UL "" },
2283   /*
2284   ** .pp
2285   ** The name of your POP server for the fetch-mail function.  You
2286   ** can also specify an alternative port, username and password, ie:
2287   ** .pp
2288   ** [pop[s]://][username[:password]@]popserver[:port]
2289   */
2290   { "pop_last",         DT_BOOL, R_NONE, OPTPOPLAST, 0 },
2291   /*
2292   ** .pp
2293   ** If this variable is set, mutt will try to use the "LAST" POP command
2294   ** for retrieving only unread messages from the POP server when using
2295   ** the fetch-mail function.
2296   */
2297   { "pop_reconnect",    DT_QUAD, R_NONE, OPT_POPRECONNECT, M_ASKYES },
2298   /*
2299   ** .pp
2300   ** Controls whether or not Mutt will try to reconnect to POP server when
2301   ** connection lost.
2302   */
2303   { "pop_user",         DT_STR,  R_NONE, UL &PopUser, 0 },
2304   /*
2305   ** .pp
2306   ** Your login name on the POP server.
2307   ** .pp
2308   ** This variable defaults to your user name on the local machine.
2309   */
2310   { "pop_pass",         DT_STR,  R_NONE, UL &PopPass, UL "" },
2311   /*
2312   ** .pp
2313   ** Specifies the password for your POP account.  If unset, Mutt will
2314   ** prompt you for your password when you open POP mailbox.
2315   ** \fBWarning\fP: you should only use this option when you are on a
2316   ** fairly secure machine, because the superuser can read your muttrc
2317   ** even if you are the only one who can read the file.
2318   */
2319 #endif /* USE_POP */
2320   { "post_indent_string",DT_STR, R_NONE, UL &PostIndentString, UL "" },
2321   /*
2322   ** .pp
2323   ** Similar to the ``$$attribution'' variable, Mutt will append this
2324   ** string after the inclusion of a message which is being replied to.
2325   */
2326   { "post_indent_str",  DT_SYN,  R_NONE, UL "post_indent_string", 0 },
2327   /*
2328   */
2329 #ifdef USE_NNTP
2330   { "post_moderated", DT_QUAD, R_NONE, OPT_TOMODERATED, M_ASKYES },
2331   /*
2332   ** .pp
2333   ** If set to \fIyes\fP, Mutt will post article to newsgroup that have
2334   ** not permissions to posting (e.g. moderated).  \fBNote:\fP if newsserver
2335   ** does not support posting to that newsgroup or totally read-only, that
2336   ** posting will not have an effect.
2337   */
2338 #endif
2339   { "postpone",         DT_QUAD, R_NONE, OPT_POSTPONE, M_ASKYES },
2340   /*
2341   ** .pp
2342   ** Controls whether or not messages are saved in the ``$$postponed''
2343   ** mailbox when you elect not to send immediately.
2344   */
2345   { "postponed",        DT_PATH, R_NONE, UL &Postponed, UL "~/postponed" },
2346   /*
2347   ** .pp
2348   ** Mutt allows you to indefinitely ``$postpone sending a message'' which
2349   ** you are editing.  When you choose to postpone a message, Mutt saves it
2350   ** in the mailbox specified by this variable.  Also see the ``$$postpone''
2351   ** variable.
2352   */
2353 #ifdef USE_SOCKET
2354   { "preconnect",       DT_STR, R_NONE, UL &Preconnect, UL 0},
2355   /*
2356   ** .pp
2357   ** If set, a shell command to be executed if mutt fails to establish
2358   ** a connection to the server. This is useful for setting up secure
2359   ** connections, e.g. with ssh(1). If the command returns a  nonzero
2360   ** status, mutt gives up opening the server. Example:
2361   ** .pp
2362   ** preconnect="ssh -f -q -L 1234:mailhost.net:143 mailhost.net
2363   **                   sleep 20 < /dev/null > /dev/null"
2364   ** .pp
2365   ** Mailbox 'foo' on mailhost.net can now be reached
2366   ** as '{localhost:1234}foo'.
2367   ** .pp
2368   ** NOTE: For this example to work, you must be able to log in to the
2369   ** remote machine without having to enter a password.
2370   */
2371 #endif /* USE_SOCKET */
2372   { "print",            DT_QUAD, R_NONE, OPT_PRINT, M_ASKNO },
2373   /*
2374   ** .pp
2375   ** Controls whether or not Mutt really prints messages.
2376   ** This is set to \fIask-no\fP by default, because some people
2377   ** accidentally hit ``p'' often (like me).
2378   */
2379   { "print_command",    DT_PATH, R_NONE, UL &PrintCmd, UL "lpr" },
2380   /*
2381   ** .pp
2382   ** This specifies the command pipe that should be used to print messages.
2383   */
2384   { "print_cmd",        DT_SYN,  R_NONE, UL "print_command", 0 },
2385   /*
2386   */
2387   { "print_decode",     DT_BOOL, R_NONE, OPTPRINTDECODE, 1 },
2388   /*
2389   ** .pp
2390   ** Used in connection with the print-message command.  If this
2391   ** option is set, the message is decoded before it is passed to the
2392   ** external command specified by $$print_command.  If this option
2393   ** is unset, no processing will be applied to the message when
2394   ** printing it.  The latter setting may be useful if you are using
2395   ** some advanced printer filter which is able to properly format
2396   ** e-mail messages for printing.
2397   */
2398   { "print_split",      DT_BOOL, R_NONE, OPTPRINTSPLIT,  0 },
2399   /*
2400   ** .pp
2401   ** Used in connection with the print-message command.  If this option
2402   ** is set, the command specified by $$print_command is executed once for
2403   ** each message which is to be printed.  If this option is unset, 
2404   ** the command specified by $$print_command is executed only once, and
2405   ** all the messages are concatenated, with a form feed as the message
2406   ** separator.
2407   ** .pp
2408   ** Those who use the \fBenscript\fP(1) program's mail-printing mode will
2409   ** most likely want to set this option.
2410   */
2411   { "prompt_after",     DT_BOOL, R_NONE, OPTPROMPTAFTER, 1 },
2412   /*
2413   ** .pp
2414   ** If you use an \fIexternal\fP ``$$pager'', setting this variable will
2415   ** cause Mutt to prompt you for a command when the pager exits rather
2416   ** than returning to the index menu.  If unset, Mutt will return to the
2417   ** index menu when the external pager exits.
2418   */
2419   { "query_command",    DT_PATH, R_NONE, UL &QueryCmd, UL "" },
2420   /*
2421   ** .pp
2422   ** This specifies the command that mutt will use to make external address
2423   ** queries.  The string should contain a %s, which will be substituted
2424   ** with the query string the user types.  See ``$query'' for more
2425   ** information.
2426   */
2427   { "quit",             DT_QUAD, R_NONE, OPT_QUIT, M_YES },
2428   /*
2429   ** .pp
2430   ** This variable controls whether ``quit'' and ``exit'' actually quit
2431   ** from mutt.  If it set to yes, they do quit, if it is set to no, they
2432   ** have no effect, and if it is set to ask-yes or ask-no, you are
2433   ** prompted for confirmation when you try to quit.
2434   */
2435   { "quote_empty",      DT_BOOL, R_NONE, OPTQUOTEEMPTY, 1 },
2436   /*
2437   ** .pp
2438   ** Controls whether or not empty lines will be quoted using
2439   ** ``$indent_string''.
2440   */
2441   { "quote_quoted",     DT_BOOL, R_NONE, OPTQUOTEQUOTED, 0 },
2442   /*
2443   ** .pp
2444   ** Controls how quoted lines will be quoted. If set, one quote
2445   ** character will be added to the end of existing prefix.  Otherwise,
2446   ** quoted lines will be prepended by ``$indent_string''.
2447   */
2448   { "quote_regexp",     DT_RX,   R_PAGER, UL &QuoteRegexp, UL "^([ \t]*[|>:}#])+" },
2449   /*
2450   ** .pp
2451   ** A regular expression used in the internal-pager to determine quoted
2452   ** sections of text in the body of a message.
2453   ** .pp
2454   ** \fBNote:\fP In order to use the \fIquoted\fP\fBx\fP patterns in the
2455   ** internal pager, you need to set this to a regular expression that
2456   ** matches \fIexactly\fP the quote characters at the beginning of quoted
2457   ** lines.
2458   */
2459   { "read_inc",         DT_NUM,  R_NONE, UL &ReadInc, 10 },
2460   /*
2461   ** .pp
2462   ** If set to a value greater than 0, Mutt will display which message it
2463   ** is currently on when reading a mailbox.  The message is printed after
2464   ** \fIread_inc\fP messages have been read (e.g., if set to 25, Mutt will
2465   ** print a message when it reads message 25, and then again when it gets
2466   ** to message 50).  This variable is meant to indicate progress when
2467   ** reading large mailboxes which may take some time.
2468   ** When set to 0, only a single message will appear before the reading
2469   ** the mailbox.
2470   ** .pp
2471   ** Also see the ``$$write_inc'' variable.
2472   */
2473   { "read_only",        DT_BOOL, R_NONE, OPTREADONLY, 0 },
2474   /*
2475   ** .pp
2476   ** If set, all folders are opened in read-only mode.
2477   */
2478   { "realname",         DT_STR,  R_BOTH, UL &Realname, 0 },
2479   /*
2480   ** .pp
2481   ** This variable specifies what "real" or "personal" name should be used
2482   ** when sending messages.
2483   ** .pp
2484   ** By default, this is the GECOS field from /etc/passwd.  Note that this
2485   ** variable will \fInot\fP be used when the user has set a real name
2486   ** in the $$from variable.
2487   */
2488   { "recall",           DT_QUAD, R_NONE, OPT_RECALL, M_ASKYES },
2489   /*
2490   ** .pp
2491   ** Controls whether or not Mutt recalls postponed messages
2492   ** when composing a new message.  Also see ``$$postponed''.
2493   ** .pp
2494   ** Setting this variable to ``yes'' is not generally useful, and thus not
2495   ** recommended.
2496   */
2497   { "record",           DT_PATH, R_NONE, UL &Outbox, UL "" },
2498   /*
2499   ** .pp
2500   ** This specifies the file into which your outgoing messages should be
2501   ** appended.  (This is meant as the primary method for saving a copy of
2502   ** your messages, but another way to do this is using the ``$my_hdr''
2503   ** command to create a \fIBcc:\fP field with your email address in it.)
2504   ** .pp
2505   ** The value of \fI$$record\fP is overridden by the ``$$force_name'' and
2506   ** ``$$save_name'' variables, and the ``$fcc-hook'' command.
2507   */
2508   { "reply_regexp",     DT_RX,   R_INDEX|R_RESORT, UL &ReplyRegexp, UL "^(re([\\[0-9\\]+])*|aw):[ \t]*" },
2509   /*
2510   ** .pp
2511   ** A regular expression used to recognize reply messages when threading
2512   ** and replying. The default value corresponds to the English "Re:" and
2513   ** the German "Aw:".
2514   */
2515   { "reply_self",       DT_BOOL, R_NONE, OPTREPLYSELF, 0 },
2516   /*
2517   ** .pp
2518   ** If unset and you are replying to a message sent by you, Mutt will
2519   ** assume that you want to reply to the recipients of that message rather
2520   ** than to yourself.
2521   */
2522   { "reply_to",         DT_QUAD, R_NONE, OPT_REPLYTO, M_ASKYES },
2523   /*
2524   ** .pp
2525   ** If set, when replying to a message, Mutt will use the address listed
2526   ** in the Reply-to: header as the recipient of the reply.  If unset,
2527   ** it will use the address in the From: header field instead.  This
2528   ** option is useful for reading a mailing list that sets the Reply-To:
2529   ** header field to the list address and you want to send a private
2530   ** message to the author of a message.
2531   */
2532   { "resolve",          DT_BOOL, R_NONE, OPTRESOLVE, 1 },
2533   /*
2534   ** .pp
2535   ** When set, the cursor will be automatically advanced to the next
2536   ** (possibly undeleted) message whenever a command that modifies the
2537   ** current message is executed.
2538   */
2539   { "reverse_alias",    DT_BOOL, R_BOTH, OPTREVALIAS, 0 },
2540   /*
2541   ** .pp
2542   ** This variable controls whether or not Mutt will display the "personal"
2543   ** name from your aliases in the index menu if it finds an alias that
2544   ** matches the message's sender.  For example, if you have the following
2545   ** alias:
2546   ** .pp
2547   ** .ts
2548   **  alias juser abd30425@somewhere.net (Joe User)
2549   ** .te
2550   ** .pp
2551   ** and then you receive mail which contains the following header:
2552   ** .pp
2553   ** .ts
2554   **  From: abd30425@somewhere.net
2555   ** .te
2556   ** .pp
2557   ** It would be displayed in the index menu as ``Joe User'' instead of
2558   ** ``abd30425@somewhere.net.''  This is useful when the person's e-mail
2559   ** address is not human friendly (like CompuServe addresses).
2560   */
2561   { "reverse_name",     DT_BOOL, R_BOTH, OPTREVNAME, 0 },
2562   /*
2563   ** .pp
2564   ** It may sometimes arrive that you receive mail to a certain machine,
2565   ** move the messages to another machine, and reply to some the messages
2566   ** from there.  If this variable is set, the default \fIFrom:\fP line of
2567   ** the reply messages is built using the address where you received the
2568   ** messages you are replying to \fBif\fP that address matches your
2569   ** alternates.  If the variable is unset, or the address that would be
2570   ** used doesn't match your alternates, the \fIFrom:\fP line will use
2571   ** your address on the current machine.
2572   */
2573   { "reverse_realname", DT_BOOL, R_BOTH, OPTREVREAL, 1 },
2574   /*
2575   ** .pp
2576   ** This variable fine-tunes the behaviour of the $reverse_name feature.
2577   ** When it is set, mutt will use the address from incoming messages as-is,
2578   ** possibly including eventual real names.  When it is unset, mutt will
2579   ** override any such real names with the setting of the $realname variable.
2580   */
2581   { "rfc2047_parameters", DT_BOOL, R_NONE, OPTRFC2047PARAMS, 0 },
2582   /*
2583   ** .pp
2584   ** When this variable is set, Mutt will decode RFC-2047-encoded MIME 
2585   ** parameters. You want to set this variable when mutt suggests you
2586   ** to save attachments to files named like this: 
2587   ** =?iso-8859-1?Q?file=5F=E4=5F991116=2Ezip?=
2588   ** .pp
2589   ** When this variable is set interactively, the change doesn't have
2590   ** the desired effect before you have changed folders.
2591   ** .pp
2592   ** Note that this use of RFC 2047's encoding is explicitly,
2593   ** prohibited by the standard, but nevertheless encountered in the
2594   ** wild.
2595   ** Also note that setting this parameter will \fInot\fP have the effect 
2596   ** that mutt \fIgenerates\fP this kind of encoding.  Instead, mutt will
2597   ** unconditionally use the encoding specified in RFC 2231.
2598   */
2599   { "save_address",     DT_BOOL, R_NONE, OPTSAVEADDRESS, 0 },
2600   /*
2601   ** .pp
2602   ** If set, mutt will take the sender's full address when choosing a
2603   ** default folder for saving a mail. If ``$$save_name'' or ``$$force_name''
2604   ** is set too, the selection of the fcc folder will be changed as well.
2605   */
2606   { "save_empty",       DT_BOOL, R_NONE, OPTSAVEEMPTY, 1 },
2607   /*
2608   ** .pp
2609   ** When unset, mailboxes which contain no saved messages will be removed
2610   ** when closed (the exception is ``$$spoolfile'' which is never removed).
2611   ** If set, mailboxes are never removed.
2612   ** .pp
2613   ** \fBNote:\fP This only applies to mbox and MMDF folders, Mutt does not
2614   ** delete MH and Maildir directories.
2615   */
2616   { "save_name",        DT_BOOL, R_NONE, OPTSAVENAME, 0 },
2617   /*
2618   ** .pp
2619   ** This variable controls how copies of outgoing messages are saved.
2620   ** When set, a check is made to see if a mailbox specified by the
2621   ** recipient address exists (this is done by searching for a mailbox in
2622   ** the ``$$folder'' directory with the \fIusername\fP part of the
2623   ** recipient address).  If the mailbox exists, the outgoing message will
2624   ** be saved to that mailbox, otherwise the message is saved to the
2625   ** ``$$record'' mailbox.
2626   ** .pp
2627   ** Also see the ``$$force_name'' variable.
2628   */
2629   { "score",            DT_BOOL, R_NONE, OPTSCORE, 1 },
2630   /*
2631   ** .pp
2632   ** When this variable is \fIunset\fP, scoring is turned off.  This can
2633   ** be useful to selectively disable scoring for certain folders when the
2634   ** ``$$score_threshold_delete'' variable and friends are used.
2635   **
2636   */
2637   { "score_threshold_delete", DT_NUM, R_NONE, UL &ScoreThresholdDelete, UL -1 },
2638   /*
2639   ** .pp
2640   ** Messages which have been assigned a score equal to or lower than the value
2641   ** of this variable are automatically marked for deletion by mutt.  Since
2642   ** mutt scores are always greater than or equal to zero, the default setting
2643   ** of this variable will never mark a message for deletion.
2644   */
2645   { "score_threshold_flag", DT_NUM, R_NONE, UL &ScoreThresholdFlag, 9999 },
2646   /* 
2647   ** .pp
2648   ** Messages which have been assigned a score greater than or equal to this 
2649   ** variable's value are automatically marked "flagged".
2650   */
2651   { "score_threshold_read", DT_NUM, R_NONE, UL &ScoreThresholdRead, UL -1 },
2652   /*
2653   ** .pp
2654   ** Messages which have been assigned a score equal to or lower than the value
2655   ** of this variable are automatically marked as read by mutt.  Since
2656   ** mutt scores are always greater than or equal to zero, the default setting
2657   ** of this variable will never mark a message read.
2658   */
2659   { "send_charset",     DT_STR,  R_NONE, UL &SendCharset, UL "us-ascii:iso-8859-1:utf-8" },
2660   /*
2661   ** .pp
2662   ** A list of character sets for outgoing messages. Mutt will use the
2663   ** first character set into which the text can be converted exactly.
2664   ** If your ``$$charset'' is not iso-8859-1 and recipients may not
2665   ** understand UTF-8, it is advisable to include in the list an
2666   ** appropriate widely used standard character set (such as
2667   ** iso-8859-2, koi8-r or iso-2022-jp) either instead of or after
2668   ** "iso-8859-1".
2669   */
2670   { "sendmail",         DT_PATH, R_NONE, UL &Sendmail, UL SENDMAIL " -oem -oi" },
2671   /*
2672   ** .pp
2673   ** Specifies the program and arguments used to deliver mail sent by Mutt.
2674   ** Mutt expects that the specified program interprets additional
2675   ** arguments as recipient addresses.
2676   */
2677   { "sendmail_wait",    DT_NUM,  R_NONE, UL &SendmailWait, 0 },
2678   /*
2679   ** .pp
2680   ** Specifies the number of seconds to wait for the ``$$sendmail'' process
2681   ** to finish before giving up and putting delivery in the background.
2682   ** .pp
2683   ** Mutt interprets the value of this variable as follows:
2684   ** .dl
2685   ** .dt >0 .dd number of seconds to wait for sendmail to finish before continuing
2686   ** .dt 0  .dd wait forever for sendmail to finish
2687   ** .dt <0 .dd always put sendmail in the background without waiting
2688   ** .de
2689   ** .pp
2690   ** Note that if you specify a value other than 0, the output of the child
2691   ** process will be put in a temporary file.  If there is some error, you
2692   ** will be informed as to where to find the output.
2693   */
2694   { "shell",            DT_PATH, R_NONE, UL &Shell, 0 },
2695   /*
2696   ** .pp
2697   ** Command to use when spawning a subshell.  By default, the user's login
2698   ** shell from /etc/passwd is used.
2699   */
2700 #ifdef USE_NNTP
2701   { "save_unsubscribed",DT_BOOL, R_NONE, OPTSAVEUNSUB, 0 },
2702   /*
2703   ** .pp
2704   ** When \fIset\fP, info about unsubscribed newsgroups will be saved into
2705   ** ``newsrc'' file and into cache.
2706   */
2707   { "shorten_hierarchy", DT_BOOL, R_NONE, OPTSHORTENHIERARCHY, 0 },
2708   /*
2709   ** .pp
2710   ** When \fIset\fP, the "hierarchy" of the sidebar entries will be shortened,
2711   ** e.g. de.alt.sysadmin.recovery becomes d.a.s.recovery.
2712   */
2713   { "show_new_news",  DT_BOOL, R_NONE, OPTSHOWNEWNEWS, 1 },
2714   /*
2715   ** .pp
2716   ** If \fIset\fP, newsserver will be asked for new newsgroups on entering
2717   ** the browser.  Otherwise, it will be done only once for a newsserver.
2718   ** Also controls whether or not number of new articles of subscribed
2719   ** newsgroups will be then checked.
2720   */
2721   { "show_only_unread",  DT_BOOL, R_NONE, OPTSHOWONLYUNREAD, 0 },
2722   /*
2723   ** .pp
2724   ** If \fIset\fP, only subscribed newsgroups that contain unread articles
2725   ** will be displayed in browser.
2726   */
2727 #endif
2728   { "sig_dashes",       DT_BOOL, R_NONE, OPTSIGDASHES, 1 },
2729   /*
2730   ** .pp
2731   ** If set, a line containing ``-- '' will be inserted before your
2732   ** ``$$signature''.  It is \fBstrongly\fP recommended that you not unset
2733   ** this variable unless your ``signature'' contains just your name.  The
2734   ** reason for this is because many software packages use ``-- \n'' to
2735   ** detect your signature.  For example, Mutt has the ability to highlight
2736   ** the signature in a different color in the builtin pager.
2737   */
2738   { "sig_on_top",       DT_BOOL, R_NONE, OPTSIGONTOP, 0},
2739   /*
2740   ** .pp
2741   ** If set, the signature will be included before any quoted or forwarded
2742   ** text.  It is \fBstrongly\fP recommended that you do not set this variable
2743   ** unless you really know what you are doing, and are prepared to take
2744   ** some heat from netiquette guardians.
2745   */
2746   { "signature",        DT_PATH, R_NONE, UL &Signature, UL "~/.signature" },
2747   /*
2748   ** .pp
2749   ** Specifies the filename of your signature, which is appended to all
2750   ** outgoing messages.   If the filename ends with a pipe (``|''), it is
2751   ** assumed that filename is a shell command and input should be read from
2752   ** its stdout.
2753   */
2754   { "signoff_string",   DT_STR, R_NONE, UL &SignOffString, UL 0 },
2755   /*
2756   ** .pp
2757   ** If set, this string will be inserted before the signature. This is useful
2758   ** for people that want to sign off every message they send with their name.
2759   ** .pp
2760   ** If you want to insert your website's URL, additional contact information or 
2761   ** witty quotes into your mails, better use a signature file instead of
2762   ** the signoff string.
2763   */
2764   { "simple_search",    DT_STR,  R_NONE, UL &SimpleSearch, UL "~f %s | ~s %s" },
2765   /*
2766   ** .pp
2767   ** Specifies how Mutt should expand a simple search into a real search
2768   ** pattern.  A simple search is one that does not contain any of the ~
2769   ** operators.  See ``$patterns'' for more information on search patterns.
2770   ** .pp
2771   ** For example, if you simply type joe at a search or limit prompt, Mutt
2772   ** will automatically expand it to the value specified by this variable.
2773   ** For the default value it would be:
2774   ** .pp
2775   ** ~f joe | ~s joe
2776   */
2777   { "smart_wrap",       DT_BOOL, R_PAGER, OPTWRAP, 1 },
2778   /*
2779   ** .pp
2780   ** Controls the display of lines longer than the screen width in the
2781   ** internal pager. If set, long lines are wrapped at a word boundary.  If
2782   ** unset, lines are simply wrapped at the screen edge. Also see the
2783   ** ``$$markers'' variable.
2784   */
2785   { "smileys",          DT_RX,   R_PAGER, UL &Smileys, UL "(>From )|(:[-^]?[][)(><}{|/DP])" },
2786   /*
2787   ** .pp
2788   ** The \fIpager\fP uses this variable to catch some common false
2789   ** positives of ``$$quote_regexp'', most notably smileys in the beginning
2790   ** of a line
2791   */
2792   { "sleep_time",       DT_NUM, R_NONE, UL &SleepTime, 1 },
2793   /*
2794   ** .pp
2795   ** Specifies time, in seconds, to pause while displaying certain informational
2796   ** messages, while moving from folder to folder and after expunging
2797   ** messages from the current folder.  The default is to pause one second, so 
2798   ** a value of zero for this option suppresses the pause.
2799   */
2800   { "sort",             DT_SORT, R_INDEX|R_RESORT, UL &Sort, SORT_DATE },
2801   /*
2802   ** .pp
2803   ** Specifies how to sort messages in the \fIindex\fP menu.  Valid values
2804   ** are:
2805   ** .pp
2806   ** .ts
2807   ** .  date or date-sent
2808   ** .  date-received
2809   ** .  from
2810   ** .  mailbox-order (unsorted)
2811   ** .  score
2812   ** .  size
2813   ** .  spam
2814   ** .  subject
2815   ** .  threads
2816   ** .  to
2817   ** .te
2818   ** .pp
2819   ** You may optionally use the reverse- prefix to specify reverse sorting
2820   ** order (example: set sort=reverse-date-sent).
2821   */
2822   { "sort_alias",       DT_SORT|DT_SORT_ALIAS,  R_NONE, UL &SortAlias, SORT_ALIAS },
2823   /*
2824   ** .pp
2825   ** Specifies how the entries in the `alias' menu are sorted.  The
2826   ** following are legal values:
2827   ** .pp
2828   ** .ts
2829   ** .  address (sort alphabetically by email address)
2830   ** .  alias (sort alphabetically by alias name)
2831   ** .  unsorted (leave in order specified in .muttrc)
2832   ** .te
2833   */
2834   { "sort_aux",         DT_SORT|DT_SORT_AUX, R_INDEX|R_RESORT_BOTH, UL &SortAux, SORT_DATE },
2835   /*
2836   ** .pp
2837   ** When sorting by threads, this variable controls how threads are sorted
2838   ** in relation to other threads, and how the branches of the thread trees
2839   ** are sorted.  This can be set to any value that ``$$sort'' can, except
2840   ** threads (in that case, mutt will just use date-sent).  You can also
2841   ** specify the last- prefix in addition to the reverse- prefix, but last-
2842   ** must come after reverse-.  The last- prefix causes messages to be
2843   ** sorted against its siblings by which has the last descendant, using
2844   ** the rest of sort_aux as an ordering.  For instance, set sort_aux=last-
2845   ** date-received would mean that if a new message is received in a
2846   ** thread, that thread becomes the last one displayed (or the first, if
2847   ** you have set sort=reverse-threads.) Note: For reversed ``$$sort''
2848   ** order $$sort_aux is reversed again (which is not the right thing to do,
2849   ** but kept to not break any existing configuration setting).
2850   */
2851   { "sort_browser",     DT_SORT|DT_SORT_BROWSER, R_NONE, UL &BrowserSort, SORT_ALPHA },
2852   /*
2853   ** .pp
2854   ** Specifies how to sort entries in the file browser.  By default, the
2855   ** entries are sorted alphabetically.  Valid values:
2856   ** .pp
2857   ** .ts
2858   ** .  alpha (alphabetically)
2859   ** .  date
2860   ** .  size
2861   ** .  unsorted
2862   ** .te
2863   ** .pp
2864   ** You may optionally use the reverse- prefix to specify reverse sorting
2865   ** order (example: set sort_browser=reverse-date).
2866   */
2867   { "sort_re",          DT_BOOL, R_INDEX|R_RESORT|R_RESORT_INIT, OPTSORTRE, 1 },
2868   /*
2869   ** .pp
2870   ** This variable is only useful when sorting by threads with
2871   ** ``$$strict_threads'' unset.  In that case, it changes the heuristic
2872   ** mutt uses to thread messages by subject.  With sort_re set, mutt will
2873   ** only attach a message as the child of another message by subject if
2874   ** the subject of the child message starts with a substring matching the
2875   ** setting of ``$$reply_regexp''.  With sort_re unset, mutt will attach
2876   ** the message whether or not this is the case, as long as the
2877   ** non-``$$reply_regexp'' parts of both messages are identical.
2878   */
2879   { "spam_separator",   DT_STR, R_NONE, UL &SpamSep, UL "," },
2880   /*
2881   ** .pp
2882   ** ``$spam_separator'' controls what happens when multiple spam headers
2883   ** are matched: if unset, each successive header will overwrite any
2884   ** previous matches value for the spam label. If set, each successive
2885   ** match will append to the previous, using ``$spam_separator'' as a
2886   ** separator.
2887   */
2888   { "spoolfile",        DT_PATH, R_NONE, UL &Spoolfile, 0 },
2889   /*
2890   ** .pp
2891   ** If your spool mailbox is in a non-default place where Mutt cannot find
2892   ** it, you can specify its location with this variable.  Mutt will
2893   ** automatically set this variable to the value of the environment
2894   ** variable $$$MAIL if it is not set.
2895   */
2896   { "status_chars",     DT_STR,  R_BOTH, UL &StChars, UL "-*%A" },
2897   /*
2898   ** .pp
2899   ** Controls the characters used by the "%r" indicator in
2900   ** ``$$status_format''. The first character is used when the mailbox is
2901   ** unchanged. The second is used when the mailbox has been changed, and
2902   ** it needs to be resynchronized. The third is used if the mailbox is in
2903   ** read-only mode, or if the mailbox will not be written when exiting
2904   ** that mailbox (You can toggle whether to write changes to a mailbox
2905   ** with the toggle-write operation, bound by default to "%"). The fourth
2906   ** is used to indicate that the current folder has been opened in attach-
2907   ** message mode (Certain operations like composing a new mail, replying,
2908   ** forwarding, etc. are not permitted in this mode).
2909   */
2910   { "status_format",    DT_STR,  R_BOTH, UL &Status, UL "-%r-Mutt-ng: %f [Msgs:%?M?%M/?%m%?n? New:%n?%?o? Old:%o?%?d? Del:%d?%?F? Flag:%F?%?t? Tag:%t?%?p? Post:%p?%?b? Inc:%b?%?l? %l?]---(%s/%S)-%>-(%P)---" },
2911   /*
2912   ** .pp
2913   ** Controls the format of the status line displayed in the \fIindex\fP
2914   ** menu.  This string is similar to ``$$index_format'', but has its own
2915   ** set of printf()-like sequences:
2916   ** .pp
2917   ** .dl
2918   ** .dt %b  .dd number of mailboxes with new mail *
2919   ** .dt %B  .dd the short pathname of the current mailbox
2920   ** .dt %d  .dd number of deleted messages *
2921   ** .dt %f  .dd the full pathname of the current mailbox
2922   ** .dt %F  .dd number of flagged messages *
2923   ** .dt %h  .dd local hostname
2924   ** .dt %l  .dd size (in bytes) of the current mailbox *
2925   ** .dt %L  .dd size (in bytes) of the messages shown 
2926   **             (i.e., which match the current limit) *
2927   ** .dt %m  .dd the number of messages in the mailbox *
2928   ** .dt %M  .dd the number of messages shown (i.e., which match the current limit) *
2929   ** .dt %n  .dd number of new messages in the mailbox *
2930   ** .dt %o  .dd number of old unread messages *
2931   ** .dt %p  .dd number of postponed messages *
2932   ** .dt %P  .dd percentage of the way through the index
2933   ** .dt %r  .dd modified/read-only/won't-write/attach-message indicator,
2934   **             according to $$status_chars
2935   ** .dt %s  .dd current sorting mode ($$sort)
2936   ** .dt %S  .dd current aux sorting method ($$sort_aux)
2937   ** .dt %t  .dd number of tagged messages *
2938   ** .dt %u  .dd number of unread messages *
2939   ** .dt %v  .dd Mutt version string
2940   ** .dt %V  .dd currently active limit pattern, if any *
2941   ** .dt %>X .dd right justify the rest of the string and pad with "X"
2942   ** .dt %|X .dd pad to the end of the line with "X"
2943   ** .de
2944   ** .pp
2945   ** * = can be optionally printed if nonzero
2946   ** .pp
2947   ** Some of the above sequences can be used to optionally print a string
2948   ** if their value is nonzero.  For example, you may only want to see the
2949   ** number of flagged messages if such messages exist, since zero is not
2950   ** particularly meaningful.  To optionally print a string based upon one
2951   ** of the above sequences, the following construct is used
2952   ** .pp
2953   **  %?<sequence_char>?<optional_string>?
2954   ** .pp
2955   ** where \fIsequence_char\fP is a character from the table above, and
2956   ** \fIoptional_string\fP is the string you would like printed if
2957   ** \fIsequence_char\fP is nonzero.  \fIoptional_string\fP \fBmay\fP contain
2958   ** other sequences as well as normal text, but you may \fBnot\fP nest
2959   ** optional strings.
2960   ** .pp
2961   ** Here is an example illustrating how to optionally print the number of
2962   ** new messages in a mailbox:
2963   ** %?n?%n new messages.?
2964   ** .pp
2965   ** Additionally you can switch between two strings, the first one, if a
2966   ** value is zero, the second one, if the value is nonzero, by using the
2967   ** following construct:
2968   ** %?<sequence_char>?<if_string>&<else_string>?
2969   ** .pp
2970   ** You can additionally force the result of any printf-like sequence to
2971   ** be lowercase by prefixing the sequence character with an underscore
2972   ** (_) sign.  For example, if you want to display the local hostname in
2973   ** lowercase, you would use:
2974   ** %_h
2975   ** .pp
2976   ** If you prefix the sequence character with a colon (:) character, mutt
2977   ** will replace any dots in the expansion by underscores. This might be helpful 
2978   ** with IMAP folders that don't like dots in folder names.
2979   */
2980   { "status_on_top",    DT_BOOL, R_BOTH, OPTSTATUSONTOP, 0 },
2981   /*
2982   ** .pp
2983   ** Setting this variable causes the ``status bar'' to be displayed on
2984   ** the first line of the screen rather than near the bottom.
2985   */
2986   { "strict_mime",    DT_BOOL, R_NONE, OPTSTRICTMIME, 1 },
2987   /*
2988   ** .pp
2989   ** When unset, non MIME-compliant messages that doesn't have any
2990   ** charset indication in ``Content-Type'' field can be displayed
2991   ** (non MIME-compliant messages are often generated by old mailers
2992   ** or buggy mailers like MS Outlook Express).
2993   ** See also $$assumed_charset.
2994   ** .pp
2995   ** This option also replaces linear-white-space between encoded-word
2996   ** and *text to a single space to prevent the display of MIME-encoded
2997   ** ``Subject'' field from being devided into multiple lines.
2998   */
2999   { "strict_threads",   DT_BOOL, R_RESORT|R_RESORT_INIT|R_INDEX, OPTSTRICTTHREADS, 0 },
3000   /*
3001   ** .pp
3002   ** If set, threading will only make use of the ``In-Reply-To'' and
3003   ** ``References'' fields when you ``$$sort'' by message threads.  By
3004   ** default, messages with the same subject are grouped together in
3005   ** ``pseudo threads.''  This may not always be desirable, such as in a
3006   ** personal mailbox where you might have several unrelated messages with
3007   ** the subject ``hi'' which will get grouped together.
3008   */
3009   { "stuff_quoted",     DT_BOOL, R_BOTH, OPTSTUFFQUOTED, 0 },
3010   /*
3011   ** .pp
3012   ** If set, attachments with flowed format will have their quoting ``stuffed'',
3013   ** i.e. a space will be inserted between the quote characters and the actual
3014   ** text.
3015   */
3016   { "suspend",          DT_BOOL, R_NONE, OPTSUSPEND, 1 },
3017   /*
3018   ** .pp
3019   ** When \fIunset\fP, mutt won't stop when the user presses the terminal's
3020   ** \fIsusp\fP key, usually ``control-Z''. This is useful if you run mutt
3021   ** inside an xterm using a command like xterm -e mutt.
3022   */
3023   { "text_flowed",      DT_BOOL, R_NONE, OPTTEXTFLOWED,  0 },
3024   /*
3025   ** .pp
3026   ** When set, mutt will generate text/plain; format=flowed attachments.
3027   ** This format is easier to handle for some mailing software, and generally
3028   ** just looks like ordinary text.  To actually make use of this format's 
3029   ** features, you'll need support in your editor.
3030   ** .pp
3031   ** Note that $$indent_string is ignored when this option is set.
3032   */
3033   { "thread_received",  DT_BOOL, R_RESORT|R_RESORT_INIT|R_INDEX, OPTTHREADRECEIVED, 0 },
3034   /*
3035   ** .pp
3036   ** When set, mutt uses the date received rather than the date sent
3037   ** to thread messages by subject.
3038   */
3039   { "thorough_search",  DT_BOOL, R_NONE, OPTTHOROUGHSRC, 0 },
3040   /*
3041   ** .pp
3042   ** Affects the \fI~b\fP and \fI~h\fP search operations described in
3043   ** section ``$patterns'' above.  If set, the headers and attachments of
3044   ** messages to be searched are decoded before searching.  If unset,
3045   ** messages are searched as they appear in the folder.
3046   */
3047   { "tilde",            DT_BOOL, R_PAGER, OPTTILDE, 0 },
3048   /*
3049   ** .pp
3050   ** When set, the internal-pager will pad blank lines to the bottom of the
3051   ** screen with a tilde (~).
3052   */
3053   { "timeout",          DT_NUM,  R_NONE, UL &Timeout, 600 },
3054   /*
3055   ** .pp
3056   ** This variable controls the \fInumber of seconds\fP Mutt will wait
3057   ** for a key to be pressed in the main menu before timing out and
3058   ** checking for new mail.  A value of zero or less will cause Mutt
3059   ** to never time out.
3060   */
3061   { "tmpdir",           DT_PATH, R_NONE, UL &Tempdir, 0 },
3062   /*
3063   ** .pp
3064   ** This variable allows you to specify where Mutt will place its
3065   ** temporary files needed for displaying and composing messages.  If
3066   ** this variable is not set, the environment variable TMPDIR is
3067   ** used.  If TMPDIR is not set then "/tmp" is used.
3068   */
3069   { "to_chars",         DT_STR,  R_BOTH, UL &Tochars, UL " +TCFL" },
3070   /*
3071   ** .pp
3072   ** Controls the character used to indicate mail addressed to you.  The
3073   ** first character is the one used when the mail is NOT addressed to your
3074   ** address (default: space).  The second is used when you are the only
3075   ** recipient of the message (default: +).  The third is when your address
3076   ** appears in the TO header field, but you are not the only recipient of
3077   ** the message (default: T).  The fourth character is used when your
3078   ** address is specified in the CC header field, but you are not the only
3079   ** recipient.  The fifth character is used to indicate mail that was sent
3080   ** by \fIyou\fP.  The sixth character is used to indicate when a mail
3081   ** was sent to a mailing-list you subscribe to (default: L).
3082   */
3083   { "trash",            DT_PATH, R_NONE, UL &TrashPath, 0 },
3084   /*
3085   ** .pp
3086   ** If set, this variable specifies the path of the trash folder where the
3087   ** mails marked for deletion will be moved, instead of being irremediably
3088   ** purged.
3089   ** .pp
3090   ** NOTE: When you delete a message in the trash folder, it is really
3091   ** deleted, so that you have a way to clean the trash.
3092   */
3093 #ifdef USE_SOCKET
3094   { "tunnel",            DT_STR, R_NONE, UL &Tunnel, UL 0 },
3095   /*
3096   ** .pp
3097   ** Setting this variable will cause mutt to open a pipe to a command
3098   ** instead of a raw socket. You may be able to use this to set up
3099   ** preauthenticated connections to your IMAP/POP3 server. Example:
3100   ** .pp
3101   ** tunnel="ssh -q mailhost.net /usr/local/libexec/imapd"
3102   ** .pp
3103   ** NOTE: For this example to work you must be able to log in to the remote
3104   ** machine without having to enter a password.
3105   */
3106 #endif
3107   { "umask",    DT_NUM, R_NONE, UL &Umask, 0077 },
3108   /*
3109   ** .pp
3110   ** This sets the umask that will be used by mutt-ng when creating all
3111   ** kinds of files. If unset, the default value is 077.
3112   */
3113   { "use_8bitmime",     DT_BOOL, R_NONE, OPTUSE8BITMIME, 0 },
3114   /*
3115   ** .pp
3116   ** \fBWarning:\fP do not set this variable unless you are using a version
3117   ** of sendmail which supports the -B8BITMIME flag (such as sendmail
3118   ** 8.8.x) or you may not be able to send mail.
3119   ** .pp
3120   ** When \fIset\fP, Mutt will invoke ``$$sendmail'' with the -B8BITMIME
3121   ** flag when sending 8-bit messages to enable ESMTP negotiation.
3122   */
3123   { "use_domain",       DT_BOOL, R_NONE, OPTUSEDOMAIN, 1 },
3124   /*
3125   ** .pp
3126   ** When set, Mutt will qualify all local addresses (ones without the
3127   ** @host portion) with the value of ``$$hostname''.  If \fIunset\fP, no
3128   ** addresses will be qualified.
3129   */
3130   { "use_from",         DT_BOOL, R_NONE, OPTUSEFROM, 1 },
3131   /*
3132   ** .pp
3133   ** When \fIset\fP, Mutt will generate the `From:' header field when
3134   ** sending messages.  If \fIunset\fP, no `From:' header field will be
3135   ** generated unless the user explicitly sets one using the ``$my_hdr''
3136   ** command.
3137   */
3138 #ifdef HAVE_LIBIDN
3139   { "use_idn",          DT_BOOL, R_BOTH, OPTUSEIDN, 1},
3140   /*
3141   ** .pp
3142   ** When \fIset\fP, Mutt will show you international domain names decoded.
3143   ** Note: You can use IDNs for addresses even if this is \fIunset\fP.
3144   ** This variable only affects decoding.
3145   */
3146 #endif /* HAVE_LIBIDN */
3147 #ifdef HAVE_GETADDRINFO
3148   { "use_ipv6",         DT_BOOL, R_NONE, OPTUSEIPV6, 1},
3149   /*
3150   ** .pp
3151   ** When \fIset\fP, Mutt will look for IPv6 addresses of hosts it tries to
3152   ** contact.  If this option is unset, Mutt will restrict itself to IPv4 addresses.
3153   ** Normally, the default should work.
3154   */
3155 #endif /* HAVE_GETADDRINFO */
3156   { "user_agent",       DT_BOOL, R_NONE, OPTXMAILER, 1},
3157   /*
3158   ** .pp
3159   ** When \fIset\fP, mutt will add a "User-Agent" header to outgoing
3160   ** messages, indicating which version of mutt was used for composing
3161   ** them.
3162   */
3163   { "visual",           DT_PATH, R_NONE, UL &Visual, 0 },
3164   /*
3165   ** .pp
3166   ** Specifies the visual editor to invoke when the \fI~v\fP command is
3167   ** given in the builtin editor.
3168   */
3169   { "wait_key",         DT_BOOL, R_NONE, OPTWAITKEY, 1 },
3170   /*
3171   ** .pp
3172   ** Controls whether Mutt will ask you to press a key after \fIshell-
3173   ** escape\fP, \fIpipe-message\fP, \fIpipe-entry\fP, \fIprint-message\fP,
3174   ** and \fIprint-entry\fP commands.
3175   ** .pp
3176   ** It is also used when viewing attachments with ``$auto_view'', provided
3177   ** that the corresponding mailcap entry has a \fIneedsterminal\fP flag,
3178   ** and the external program is interactive.
3179   ** .pp
3180   ** When set, Mutt will always ask for a key. When unset, Mutt will wait
3181   ** for a key only if the external command returned a non-zero status.
3182   */
3183   { "weed",             DT_BOOL, R_NONE, OPTWEED, 1 },
3184   /*
3185   ** .pp
3186   ** When set, mutt will weed headers when displaying, forwarding,
3187   ** printing, or replying to messages.
3188   */
3189   { "wrap_search",      DT_BOOL, R_NONE, OPTWRAPSEARCH, 1 },
3190   /*
3191   ** .pp
3192   ** Controls whether searches wrap around the end of the mailbox.
3193   ** .pp
3194   ** When set, searches will wrap around the first (or last) message. When
3195   ** unset, searches will not wrap.
3196   */
3197   { "wrapmargin",       DT_NUM,  R_PAGER, UL &WrapMargin, 0 },
3198   /*
3199   ** .pp
3200   ** Controls the size of the margin remaining at the right side of
3201   ** the terminal when mutt's pager does smart wrapping.
3202   */
3203   { "write_inc",        DT_NUM,  R_NONE, UL &WriteInc, 10 },
3204   /*
3205   ** .pp
3206   ** When writing a mailbox, a message will be printed every
3207   ** \fIwrite_inc\fP messages to indicate progress.  If set to 0, only a
3208   ** single message will be displayed before writing a mailbox.
3209   ** .pp
3210   ** Also see the ``$$read_inc'' variable.
3211   */
3212   { "write_bcc",        DT_BOOL, R_NONE, OPTWRITEBCC, 1},
3213   /*
3214   ** .pp
3215   ** Controls whether mutt writes out the Bcc header when preparing
3216   ** messages to be sent.  Exim users may wish to unset this.
3217   */
3218   {"xterm_icon",       DT_STR,   R_BOTH, UL &XtermIcon,  UL "M%?n?AIL&ail?"},
3219   /*
3220   ** .pp
3221   ** Controls the format of the icon title, as long as xterm_set_titles
3222   ** is enabled. This string is identical in formatting to the one used by
3223   ** ``$$status_format''.
3224   */
3225   {"xterm_set_titles", DT_BOOL,  R_BOTH, OPTXTERMSETTITLES, 0},
3226   /*
3227   ** .pp
3228   ** Controls whether mutt sets the xterm title bar and icon name
3229   ** (as long as you're in an appropriate terminal). The default must
3230   ** be off to force in the validity checking.
3231   */
3232   {"xterm_title",      DT_STR,   R_BOTH, UL &XtermTitle, UL "Mutt with %?m?%m messages&no messages?%?n? [%n New]?"},
3233   /*
3234   ** .pp
3235   ** Controls the format of the title bar of the xterm provided that
3236   ** xterm_set_titles has been set. This string is identical in formatting
3237   ** to the one used by ``$$status_format''.
3238   */
3239 #ifdef USE_NNTP
3240   { "x_comment_to",   DT_BOOL, R_NONE, OPTXCOMMENTTO, 0 },
3241   /*
3242   ** .pp
3243   ** If \fIset\fP, Mutt will add ``X-Comment-To:'' field (that contains full
3244   ** name of original article author) to article that followuped to newsgroup.
3245   */
3246 #endif
3247   /*--*/
3248   { NULL }
3249 };
3250
3251 const struct mapping_t SortMethods[] = {
3252   { "date",             SORT_DATE },
3253   { "date-sent",        SORT_DATE },
3254   { "date-received",    SORT_RECEIVED },
3255   { "mailbox-order",    SORT_ORDER },
3256   { "subject",          SORT_SUBJECT },
3257   { "from",             SORT_FROM },
3258   { "size",             SORT_SIZE },
3259   { "threads",          SORT_THREADS },
3260   { "to",               SORT_TO },
3261   { "score",            SORT_SCORE },
3262   { "spam",             SORT_SPAM },
3263   { NULL,               0 }
3264 };
3265
3266 /* same as SortMethods, but with "threads" replaced by "date" */
3267
3268 const struct mapping_t SortAuxMethods[] = {
3269   { "date",             SORT_DATE },
3270   { "date-sent",        SORT_DATE },
3271   { "date-received",    SORT_RECEIVED },
3272   { "mailbox-order",    SORT_ORDER },
3273   { "subject",          SORT_SUBJECT },
3274   { "from",             SORT_FROM },
3275   { "size",             SORT_SIZE },
3276   { "threads",          SORT_DATE },    /* note: sort_aux == threads
3277                                          * isn't possible. 
3278                                          */
3279   { "to",               SORT_TO },
3280   { "score",            SORT_SCORE },
3281   { "spam",             SORT_SPAM },
3282   { NULL,               0 }
3283 };
3284   
3285
3286 const struct mapping_t SortBrowserMethods[] = {
3287   { "alpha",    SORT_SUBJECT },
3288   { "date",     SORT_DATE },
3289   { "size",     SORT_SIZE },
3290   { "unsorted", SORT_ORDER },
3291   { NULL }
3292 };
3293
3294 const struct mapping_t SortAliasMethods[] = {
3295   { "alias",    SORT_ALIAS },
3296   { "address",  SORT_ADDRESS },
3297   { "unsorted", SORT_ORDER },
3298   { NULL }
3299 };
3300
3301 const struct mapping_t SortKeyMethods[] = {
3302   { "address",  SORT_ADDRESS },
3303   { "date",     SORT_DATE },
3304   { "keyid",    SORT_KEYID },
3305   { "trust",    SORT_TRUST },
3306   { NULL }
3307 };
3308
3309
3310 /* functions used to parse commands in a rc file */
3311
3312 static int parse_list (BUFFER *, BUFFER *, unsigned long, BUFFER *);
3313 static int parse_rx_list (BUFFER *, BUFFER *, unsigned long, BUFFER *);
3314 static int parse_spam_list (BUFFER *, BUFFER *, unsigned long, BUFFER *);
3315 static int parse_unlist (BUFFER *, BUFFER *, unsigned long, BUFFER *);
3316 static int parse_rx_unlist (BUFFER *, BUFFER *, unsigned long, BUFFER *);
3317
3318 static int parse_lists (BUFFER *, BUFFER *, unsigned long, BUFFER *);
3319 static int parse_unlists (BUFFER *, BUFFER *, unsigned long, BUFFER *);
3320 static int parse_alias (BUFFER *, BUFFER *, unsigned long, BUFFER *);
3321 static int parse_unalias (BUFFER *, BUFFER *, unsigned long, BUFFER *);
3322 static int parse_ignore (BUFFER *, BUFFER *, unsigned long, BUFFER *);
3323 static int parse_unignore (BUFFER *, BUFFER *, unsigned long, BUFFER *);
3324 static int parse_source (BUFFER *, BUFFER *, unsigned long, BUFFER *);
3325 static int parse_set (BUFFER *, BUFFER *, unsigned long, BUFFER *);
3326 static int parse_my_hdr (BUFFER *, BUFFER *, unsigned long, BUFFER *);
3327 static int parse_unmy_hdr (BUFFER *, BUFFER *, unsigned long, BUFFER *);
3328 static int parse_subscribe (BUFFER *, BUFFER *, unsigned long, BUFFER *);
3329 static int parse_unsubscribe (BUFFER *, BUFFER *, unsigned long, BUFFER *);
3330
3331 static int parse_alternates (BUFFER *, BUFFER *, unsigned long, BUFFER *);
3332 static int parse_unalternates (BUFFER *, BUFFER *, unsigned long, BUFFER *);
3333
3334 struct command_t
3335 {
3336   char *name;
3337   int (*func) (BUFFER *, BUFFER *, unsigned long, BUFFER *);
3338   unsigned long data;
3339   unsigned long data1;
3340 };
3341
3342 struct command_t Commands[] = {
3343   { "alternates",       parse_alternates,       0 },
3344   { "unalternates",     parse_unalternates,     0 },
3345 #ifdef USE_SOCKET
3346   { "account-hook",     mutt_parse_hook,        M_ACCOUNTHOOK },
3347 #endif
3348   { "alias",            parse_alias,            0 },
3349   { "auto_view",        parse_list,             UL &AutoViewList },
3350   { "alternative_order",        parse_list,     UL &AlternativeOrderList},
3351   { "bind",             mutt_parse_bind,        0 },
3352   { "charset-hook",     mutt_parse_hook,        M_CHARSETHOOK },
3353 #ifdef HAVE_COLOR
3354   { "color",            mutt_parse_color,       0 },
3355   { "uncolor",          mutt_parse_uncolor,     0 },
3356 #endif
3357   { "exec",             mutt_parse_exec,        0 },
3358   { "fcc-hook",         mutt_parse_hook,        M_FCCHOOK },
3359   { "fcc-save-hook",    mutt_parse_hook,        M_FCCHOOK | M_SAVEHOOK },
3360   { "folder-hook",      mutt_parse_hook,        M_FOLDERHOOK },
3361 #ifdef USE_COMPRESSED
3362   { "open-hook",        mutt_parse_hook,        M_OPENHOOK },
3363   { "close-hook",       mutt_parse_hook,        M_CLOSEHOOK },
3364   { "append-hook",      mutt_parse_hook,        M_APPENDHOOK },
3365 #endif
3366   { "hdr_order",        parse_list,             UL &HeaderOrderList },
3367 #ifdef HAVE_ICONV
3368   { "iconv-hook",       mutt_parse_hook,        M_ICONVHOOK }, 
3369 #endif
3370   { "ignore",           parse_ignore,           0 },
3371   { "lists",            parse_lists,            0 },
3372   { "macro",            mutt_parse_macro,       0 },
3373   { "mailboxes",        mutt_parse_mailboxes,   M_MAILBOXES },
3374   { "unmailboxes",      mutt_parse_mailboxes,   M_UNMAILBOXES },
3375   { "message-hook",     mutt_parse_hook,        M_MESSAGEHOOK },
3376   { "mbox-hook",        mutt_parse_hook,        M_MBOXHOOK },
3377   { "mime_lookup",      parse_list,     UL &MimeLookupList },
3378   { "unmime_lookup",    parse_unlist,   UL &MimeLookupList },
3379   { "mono",             mutt_parse_mono,        0 },
3380   { "my_hdr",           parse_my_hdr,           0 },
3381   { "pgp-hook",         mutt_parse_hook,        M_CRYPTHOOK },
3382   { "crypt-hook",       mutt_parse_hook,        M_CRYPTHOOK },
3383   { "push",             mutt_parse_push,        0 },
3384   { "reply-hook",       mutt_parse_hook,        M_REPLYHOOK },
3385   { "reset",            parse_set,              M_SET_RESET },
3386   { "save-hook",        mutt_parse_hook,        M_SAVEHOOK },
3387   { "score",            mutt_parse_score,       0 },
3388   { "send-hook",        mutt_parse_hook,        M_SENDHOOK },
3389   { "send2-hook",       mutt_parse_hook,        M_SEND2HOOK },
3390   { "set",              parse_set,              0 },
3391   { "source",           parse_source,           0 },
3392   { "spam",             parse_spam_list,        M_SPAM },
3393   { "nospam",           parse_spam_list,        M_NOSPAM },
3394   { "subscribe",        parse_subscribe,        0 },
3395   { "toggle",           parse_set,              M_SET_INV },
3396   { "unalias",          parse_unalias,          0 },
3397   { "unalternative_order",parse_unlist,         UL &AlternativeOrderList },
3398   { "unauto_view",      parse_unlist,           UL &AutoViewList },
3399   { "unhdr_order",      parse_unlist,           UL &HeaderOrderList },
3400   { "unhook",           mutt_parse_unhook,      0 },
3401   { "unignore",         parse_unignore,         0 },
3402   { "unlists",          parse_unlists,          0 },
3403   { "unmono",           mutt_parse_unmono,      0 },
3404   { "unmy_hdr",         parse_unmy_hdr,         0 },
3405   { "unscore",          mutt_parse_unscore,     0 },
3406   { "unset",            parse_set,              M_SET_UNSET },
3407   { "unsubscribe",      parse_unsubscribe,      0 },
3408   { NULL }
3409 };