2 * Copyright (C) 1996-2002,2007 Michael R. Elkins <me@mutt.org>
3 * Copyright (C) 2004 g10 Code GmbH
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.
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.
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., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
22 # include "doc/makedoc-defs.h"
31 #define DT_BOOL 1 /* boolean option */
32 #define DT_NUM 2 /* a number */
33 #define DT_STR 3 /* a string */
34 #define DT_PATH 4 /* a pathname */
35 #define DT_QUAD 5 /* quad-option (yes/no/ask-yes/ask-no) */
36 #define DT_SORT 6 /* sorting methods */
37 #define DT_RX 7 /* regular expressions */
38 #define DT_MAGIC 8 /* mailbox type */
39 #define DT_SYN 9 /* synonym for another variable */
40 #define DT_ADDR 10 /* e-mail address */
42 #define DTYPE(x) ((x) & DT_MASK)
45 #define DT_SUBTYPE_MASK 0xf0
46 #define DT_SORT_ALIAS 0x10
47 #define DT_SORT_BROWSER 0x20
48 #define DT_SORT_KEYS 0x40
49 #define DT_SORT_AUX 0x80
51 /* flags to parse_set() */
52 #define M_SET_INV (1<<0) /* default is to invert all vars */
53 #define M_SET_UNSET (1<<1) /* default is to unset all vars */
54 #define M_SET_RESET (1<<2) /* default is to reset all vars to default */
56 /* forced redraw/resort types */
58 #define R_INDEX (1<<0)
59 #define R_PAGER (1<<1)
60 #define R_RESORT (1<<2) /* resort the mailbox */
61 #define R_RESORT_SUB (1<<3) /* resort subthreads */
62 #define R_RESORT_INIT (1<<4) /* resort from scratch */
63 #define R_TREE (1<<5) /* redraw the thread tree */
64 #define R_BOTH (R_INDEX | R_PAGER)
65 #define R_RESORT_BOTH (R_RESORT | R_RESORT_SUB)
73 unsigned long init; /* initial value */
76 #define UL (unsigned long)
81 #define ISPELL "ispell"
84 struct option_t MuttVars[] = {
86 { "abort_nosubject", DT_QUAD, R_NONE, OPT_SUBJECT, M_ASKYES },
89 ** If set to \fIyes\fP, when composing messages and no subject is given
90 ** at the subject prompt, composition will be aborted. If set to
91 ** \fIno\fP, composing messages with no subject given at the subject
92 ** prompt will never be aborted.
94 { "abort_unmodified", DT_QUAD, R_NONE, OPT_ABORT, M_YES },
97 ** If set to \fIyes\fP, composition will automatically abort after
98 ** editing the message body if no changes are made to the file (this
99 ** check only happens after the \fIfirst\fP edit of the file). When set
100 ** to \fIno\fP, composition will never be aborted.
102 { "alias_file", DT_PATH, R_NONE, UL &AliasFile, UL "~/.muttrc" },
105 ** The default file in which to save aliases created by the
106 ** \fC$<create-alias>\fP function. Entries added to this file are
107 ** encoded in the character set specified by $$config_charset if it
108 ** is \fIset\fP or the current character set otherwise.
110 ** \fBNote:\fP Mutt will not automatically source this file; you must
111 ** explicitly use the ``$source'' command for it to be executed in case
112 ** this option points to a dedicated alias file.
114 ** The default for this option is the currently used muttrc file, or
115 ** ``~/.muttrc'' if no user muttrc was found.
117 { "alias_format", DT_STR, R_NONE, UL &AliasFmt, UL "%4n %2f %t %-10a %r" },
120 ** Specifies the format of the data displayed for the ``$alias'' menu. The
121 ** following \fCprintf(3)\fP-style sequences are available:
123 ** .dt %a .dd alias name
124 ** .dt %f .dd flags - currently, a ``d'' for an alias marked for deletion
125 ** .dt %n .dd index number
126 ** .dt %r .dd address which alias expands to
127 ** .dt %t .dd character which indicates if the alias is tagged for inclusion
130 { "allow_8bit", DT_BOOL, R_NONE, OPTALLOW8BIT, 1 },
133 ** Controls whether 8-bit data is converted to 7-bit using either Quoted-
134 ** Printable or Base64 encoding when sending mail.
136 { "allow_ansi", DT_BOOL, R_NONE, OPTALLOWANSI, 0 },
139 ** Controls whether ANSI color codes in messages (and color tags in
140 ** rich text messages) are to be interpreted.
141 ** Messages containing these codes are rare, but if this option is \fIset\fP,
142 ** their text will be colored accordingly. Note that this may override
143 ** your color choices, and even present a security problem, since a
144 ** message could include a line like
146 ** [-- PGP output follows ...
149 ** and give it the same color as your attachment color (see also
150 ** $$crypt_timestamp).
152 { "arrow_cursor", DT_BOOL, R_BOTH, OPTARROWCURSOR, 0 },
155 ** When \fIset\fP, an arrow (``->'') will be used to indicate the current entry
156 ** in menus instead of highlighting the whole line. On slow network or modem
157 ** links this will make response faster because there is less that has to
158 ** be redrawn on the screen when moving to the next or previous entries
161 { "ascii_chars", DT_BOOL, R_BOTH, OPTASCIICHARS, 0 },
164 ** If \fIset\fP, Mutt will use plain ASCII characters when displaying thread
165 ** and attachment trees, instead of the default \fIACS\fP characters.
167 { "askbcc", DT_BOOL, R_NONE, OPTASKBCC, 0 },
170 ** If \fIset\fP, Mutt will prompt you for blind-carbon-copy (Bcc) recipients
171 ** before editing an outgoing message.
173 { "askcc", DT_BOOL, R_NONE, OPTASKCC, 0 },
176 ** If \fIset\fP, Mutt will prompt you for carbon-copy (Cc) recipients before
177 ** editing the body of an outgoing message.
179 { "assumed_charset", DT_STR, R_NONE, UL &AssumedCharset, UL 0},
182 ** This variable is a colon-separated list of character encoding
183 ** schemes for messages without character encoding indication.
184 ** Header field values and message body content without character encoding
185 ** indication would be assumed that they are written in one of this list.
186 ** By default, all the header fields and message body without any charset
187 ** indication are assumed to be in ``us-ascii''.
189 ** For example, Japanese users might prefer this:
191 ** set assumed_charset="iso-2022-jp:euc-jp:shift_jis:utf-8"
194 ** However, only the first content is valid for the message body.
196 { "attach_charset", DT_STR, R_NONE, UL &AttachCharset, UL 0 },
199 ** This variable is a colon-separated list of character encoding
200 ** schemes for text file attachments. Mutt uses this setting to guess
201 ** which encoding files being attached are encoded in to convert them to
202 ** a proper character set given in $$send_charset.
204 ** If \fIunset\fP, the value of $$charset will be used instead.
205 ** For example, the following configuration would work for Japanese
208 ** set attach_charset="iso-2022-jp:euc-jp:shift_jis:utf-8"
211 ** Note: for Japanese users, ``iso-2022-*'' must be put at the head
212 ** of the value as shown above if included.
214 { "attach_format", DT_STR, R_NONE, UL &AttachFormat, UL "%u%D%I %t%4n %T%.40d%> [%.7m/%.10M, %.6e%?C?, %C?, %s] " },
217 ** This variable describes the format of the ``attachment'' menu. The
218 ** following \fCprintf(3)\fP-style sequences are understood:
220 ** .dt %C .dd charset
221 ** .dt %c .dd requires charset conversion (``n'' or ``c'')
222 ** .dt %D .dd deleted flag
223 ** .dt %d .dd description
224 ** .dt %e .dd MIME content-transfer-encoding
225 ** .dt %f .dd filename
226 ** .dt %I .dd disposition (``I'' for inline, ``A'' for attachment)
227 ** .dt %m .dd major MIME type
228 ** .dt %M .dd MIME subtype
229 ** .dt %n .dd attachment number
230 ** .dt %Q .dd ``Q'', if MIME part qualifies for attachment counting
232 ** .dt %t .dd tagged flag
233 ** .dt %T .dd graphic tree characters
234 ** .dt %u .dd unlink (=to delete) flag
235 ** .dt %X .dd number of qualifying MIME parts in this part and its children
236 ** (please see the ``$attachments'' section for possible speed effects)
237 ** .dt %>X .dd right justify the rest of the string and pad with character ``X''
238 ** .dt %|X .dd pad to the end of the line with character ``X''
239 ** .dt %*X .dd soft-fill with character ``X'' as pad
242 ** For an explanation of ``soft-fill'', see the $$index_format documentation.
244 { "attach_sep", DT_STR, R_NONE, UL &AttachSep, UL "\n" },
247 ** The separator to add between attachments when operating (saving,
248 ** printing, piping, etc) on a list of tagged attachments.
250 { "attach_split", DT_BOOL, R_NONE, OPTATTACHSPLIT, 1 },
253 ** If this variable is \fIunset\fP, when operating (saving, printing, piping,
254 ** etc) on a list of tagged attachments, Mutt will concatenate the
255 ** attachments and will operate on them as a single attachment. The
256 ** $$attach_sep separator is added after each attachment. When \fIset\fP,
257 ** Mutt will operate on the attachments one by one.
259 { "attribution", DT_STR, R_NONE, UL &Attribution, UL "On %d, %n wrote:" },
262 ** This is the string that will precede a message which has been included
263 ** in a reply. For a full listing of defined \fCprintf(3)\fP-like sequences see
264 ** the section on $$index_format.
266 { "auto_tag", DT_BOOL, R_NONE, OPTAUTOTAG, 0 },
269 ** When \fIset\fP, functions in the \fIindex\fP menu which affect a message
270 ** will be applied to all tagged messages (if there are any). When
271 ** unset, you must first use the \fC<tag-prefix>\fP function (bound to ``;''
272 ** by default) to make the next function apply to all tagged messages.
274 { "autoedit", DT_BOOL, R_NONE, OPTAUTOEDIT, 0 },
277 ** When \fIset\fP along with $$edit_headers, Mutt will skip the initial
278 ** send-menu (prompting for subject and recipients) and allow you to
279 ** immediately begin editing the body of your
280 ** message. The send-menu may still be accessed once you have finished
281 ** editing the body of your message.
284 ** \fBNote:\fP when this option is \fIset\fP, you cannot use send-hooks that depend
285 ** on the recipients when composing a new (non-reply) message, as the initial
286 ** list of recipients is empty.
288 ** Also see $$fast_reply.
290 { "beep", DT_BOOL, R_NONE, OPTBEEP, 1 },
293 ** When this variable is \fIset\fP, mutt will beep when an error occurs.
295 { "beep_new", DT_BOOL, R_NONE, OPTBEEPNEW, 0 },
298 ** When this variable is \fIset\fP, mutt will beep whenever it prints a message
299 ** notifying you of new mail. This is independent of the setting of the
302 { "bounce", DT_QUAD, R_NONE, OPT_BOUNCE, M_ASKYES },
305 ** Controls whether you will be asked to confirm bouncing messages.
306 ** If set to \fIyes\fP you don't get asked if you want to bounce a
307 ** message. Setting this variable to \fIno\fP is not generally useful,
308 ** and thus not recommended, because you are unable to bounce messages.
310 { "bounce_delivered", DT_BOOL, R_NONE, OPTBOUNCEDELIVERED, 1 },
313 ** When this variable is \fIset\fP, mutt will include Delivered-To headers when
314 ** bouncing messages. Postfix users may wish to \fIunset\fP this variable.
316 { "braille_friendly", DT_BOOL, R_NONE, OPTBRAILLEFRIENDLY, 0 },
319 ** When this variable is \fIset\fP, mutt will place the cursor at the beginning
320 ** of the current line in menus, even when the $$arrow_cursor variable
321 ** is \fIunset\fP, making it easier for blind persons using Braille displays to
322 ** follow these menus. The option is \fIunset\fP by default because many
323 ** visual terminals don't permit making the cursor invisible.
326 { "certificate_file", DT_PATH, R_NONE, UL &SslCertFile, UL "~/.mutt_certificates" },
329 ** This variable specifies the file where the certificates you trust
330 ** are saved. When an unknown certificate is encountered, you are asked
331 ** if you accept it or not. If you accept it, the certificate can also
332 ** be saved in this file and further connections are automatically
335 ** You can also manually add CA certificates in this file. Any server
336 ** certificate that is signed with one of these CA certificates is
337 ** also automatically accepted.
341 ** set certificate_file=~/.mutt/certificates
346 { "charset", DT_STR, R_NONE, UL &Charset, UL 0 },
349 ** Character set your terminal uses to display and enter textual data.
350 ** It is also the fallback for $$send_charset.
352 ** Upon startup Mutt tries to derive this value from environment variables
353 ** such as \fC$$$LC_CTYPE\fP or \fC$$$LANG\fP.
355 ** \fBNote:\fP It should only be set in case Mutt isn't able to determine the
356 ** character set used correctly.
358 { "check_mbox_size", DT_BOOL, R_NONE, OPTCHECKMBOXSIZE, 0 },
361 ** When this variable is \fIset\fP, mutt will use file size attribute instead of
362 ** access time when checking for new mail in mbox and mmdf folders.
364 ** This variable is \fIunset\fP by default and should only be enabled when
365 ** new mail detection for these folder types is unreliable or doesn't work.
367 ** Note that enabling this variable should happen before any ``$mailboxes''
368 ** directives occur in configuration files regarding mbox or mmdf folders
369 ** because mutt needs to determine the initial new mail status of such a
370 ** mailbox by performing a fast mailbox scan when it is defined.
371 ** Afterwards the new mail status is tracked by file size changes.
373 { "check_new", DT_BOOL, R_NONE, OPTCHECKNEW, 1 },
376 ** \fBNote:\fP this option only affects \fImaildir\fP and \fIMH\fP style
379 ** When \fIset\fP, Mutt will check for new mail delivered while the
380 ** mailbox is open. Especially with MH mailboxes, this operation can
381 ** take quite some time since it involves scanning the directory and
382 ** checking each file to see if it has already been looked at. If
383 ** this variable is \fIunset\fP, no check for new mail is performed
384 ** while the mailbox is open.
386 { "collapse_unread", DT_BOOL, R_NONE, OPTCOLLAPSEUNREAD, 1 },
389 ** When \fIunset\fP, Mutt will not collapse a thread if it contains any
392 { "compose_format", DT_STR, R_BOTH, UL &ComposeFormat, UL "-- Mutt: Compose [Approx. msg size: %l Atts: %a]%>-" },
395 ** Controls the format of the status line displayed in the ``compose''
396 ** menu. This string is similar to $$status_format, but has its own
397 ** set of \fCprintf(3)\fP-like sequences:
399 ** .dt %a .dd total number of attachments
400 ** .dt %h .dd local hostname
401 ** .dt %l .dd approximate size (in bytes) of the current message
402 ** .dt %v .dd Mutt version string
405 ** See the text describing the $$status_format option for more
406 ** information on how to set $$compose_format.
408 { "config_charset", DT_STR, R_NONE, UL &ConfigCharset, UL 0 },
411 ** When defined, Mutt will recode commands in rc files from this
412 ** encoding to the current character set as specified by $$charset
413 ** and aliases written to $$alias_file from the current character set.
415 ** Please note that if setting $$charset it must be done before
416 ** setting $$config_charset.
418 ** Recoding should be avoided as it may render unconvertable
419 ** characters as question marks which can lead to undesired
420 ** side effects (for example in regular expressions).
422 { "confirmappend", DT_BOOL, R_NONE, OPTCONFIRMAPPEND, 1 },
425 ** When \fIset\fP, Mutt will prompt for confirmation when appending messages to
426 ** an existing mailbox.
428 { "confirmcreate", DT_BOOL, R_NONE, OPTCONFIRMCREATE, 1 },
431 ** When \fIset\fP, Mutt will prompt for confirmation when saving messages to a
432 ** mailbox which does not yet exist before creating it.
434 { "connect_timeout", DT_NUM, R_NONE, UL &ConnectTimeout, 30 },
437 ** Causes Mutt to timeout a network connection (for IMAP, POP or SMTP) after this
438 ** many seconds if the connection is not able to be established. A negative
439 ** value causes Mutt to wait indefinitely for the connection attempt to succeed.
441 { "content_type", DT_STR, R_NONE, UL &ContentType, UL "text/plain" },
444 ** Sets the default Content-Type for the body of newly composed messages.
446 { "copy", DT_QUAD, R_NONE, OPT_COPY, M_YES },
449 ** This variable controls whether or not copies of your outgoing messages
450 ** will be saved for later references. Also see $$record,
451 ** $$save_name, $$force_name and ``$fcc-hook''.
453 { "pgp_autoencrypt", DT_SYN, R_NONE, UL "crypt_autoencrypt", 0 },
454 { "crypt_autoencrypt", DT_BOOL, R_NONE, OPTCRYPTAUTOENCRYPT, 0 },
457 ** Setting this variable will cause Mutt to always attempt to PGP
458 ** encrypt outgoing messages. This is probably only useful in
459 ** connection to the ``$send-hook'' command. It can be overridden
460 ** by use of the pgp menu, when encryption is not required or
461 ** signing is requested as well. If $$smime_is_default is \fIset\fP,
462 ** then OpenSSL is used instead to create S/MIME messages and
463 ** settings can be overridden by use of the smime menu instead.
466 { "crypt_autopgp", DT_BOOL, R_NONE, OPTCRYPTAUTOPGP, 1 },
469 ** This variable controls whether or not mutt may automatically enable
470 ** PGP encryption/signing for messages. See also $$crypt_autoencrypt,
471 ** $$crypt_replyencrypt,
472 ** $$crypt_autosign, $$crypt_replysign and $$smime_is_default.
474 { "pgp_autosign", DT_SYN, R_NONE, UL "crypt_autosign", 0 },
475 { "crypt_autosign", DT_BOOL, R_NONE, OPTCRYPTAUTOSIGN, 0 },
478 ** Setting this variable will cause Mutt to always attempt to
479 ** cryptographically sign outgoing messages. This can be overridden
480 ** by use of the pgp menu, when signing is not required or
481 ** encryption is requested as well. If $$smime_is_default is \fIset\fP,
482 ** then OpenSSL is used instead to create S/MIME messages and settings can
483 ** be overridden by use of the smime menu instead of the pgp menu.
486 { "crypt_autosmime", DT_BOOL, R_NONE, OPTCRYPTAUTOSMIME, 1 },
489 ** This variable controls whether or not mutt may automatically enable
490 ** S/MIME encryption/signing for messages. See also $$crypt_autoencrypt,
491 ** $$crypt_replyencrypt,
492 ** $$crypt_autosign, $$crypt_replysign and $$smime_is_default.
494 { "pgp_replyencrypt", DT_SYN, R_NONE, UL "crypt_replyencrypt", 1 },
495 { "crypt_replyencrypt", DT_BOOL, R_NONE, OPTCRYPTREPLYENCRYPT, 1 },
498 ** If \fIset\fP, automatically PGP or OpenSSL encrypt replies to messages which are
502 { "pgp_replysign", DT_SYN, R_NONE, UL "crypt_replysign", 0 },
503 { "crypt_replysign", DT_BOOL, R_NONE, OPTCRYPTREPLYSIGN, 0 },
506 ** If \fIset\fP, automatically PGP or OpenSSL sign replies to messages which are
509 ** \fBNote:\fP this does not work on messages that are encrypted
513 { "pgp_replysignencrypted", DT_SYN, R_NONE, UL "crypt_replysignencrypted", 0},
514 { "crypt_replysignencrypted", DT_BOOL, R_NONE, OPTCRYPTREPLYSIGNENCRYPTED, 0 },
517 ** If \fIset\fP, automatically PGP or OpenSSL sign replies to messages
518 ** which are encrypted. This makes sense in combination with
519 ** $$crypt_replyencrypt, because it allows you to sign all
520 ** messages which are automatically encrypted. This works around
521 ** the problem noted in $$crypt_replysign, that mutt is not able
522 ** to find out whether an encrypted message is also signed.
525 { "crypt_timestamp", DT_BOOL, R_NONE, OPTCRYPTTIMESTAMP, 1 },
528 ** If \fIset\fP, mutt will include a time stamp in the lines surrounding
529 ** PGP or S/MIME output, so spoofing such lines is more difficult.
530 ** If you are using colors to mark these lines, and rely on these,
531 ** you may \fIunset\fP this setting.
534 { "crypt_use_gpgme", DT_BOOL, R_NONE, OPTCRYPTUSEGPGME, 0 },
537 ** This variable controls the use of the GPGME-enabled crypto backends.
538 ** If it is \fIset\fP and Mutt was built with gpgme support, the gpgme code for
539 ** S/MIME and PGP will be used instead of the classic code. Note that
540 ** you need to set this option in .muttrc; it won't have any effect when
541 ** used interactively.
543 { "crypt_use_pka", DT_BOOL, R_NONE, OPTCRYPTUSEPKA, 0 },
546 ** Controls whether mutt uses PKA
547 ** (see http://www.g10code.de/docs/pka-intro.de.pdf) during signature
548 ** verification (only supported by the GPGME backend).
550 { "pgp_verify_sig", DT_SYN, R_NONE, UL "crypt_verify_sig", 0},
551 { "crypt_verify_sig", DT_QUAD, R_NONE, OPT_VERIFYSIG, M_YES },
554 ** If \fI``yes''\fP, always attempt to verify PGP or S/MIME signatures.
555 ** If \fI``ask-*''\fP, ask whether or not to verify the signature.
556 ** If \fI``no''\fP, never attempt to verify cryptographic signatures.
559 { "date_format", DT_STR, R_BOTH, UL &DateFmt, UL "!%a, %b %d, %Y at %I:%M:%S%p %Z" },
562 ** This variable controls the format of the date printed by the ``%d''
563 ** sequence in $$index_format. This is passed to the \fCstrftime(3)\fP
564 ** function to process the date, see the man page for the proper syntax.
566 ** Unless the first character in the string is a bang (``!''), the month
567 ** and week day names are expanded according to the locale specified in
568 ** the variable $$locale. If the first character in the string is a
569 ** bang, the bang is discarded, and the month and week day names in the
570 ** rest of the string are expanded in the \fIC\fP locale (that is in US
573 { "default_hook", DT_STR, R_NONE, UL &DefaultHook, UL "~f %s !~P | (~P ~C %s)" },
576 ** This variable controls how ``$message-hook'', ``$reply-hook'', ``$send-hook'',
577 ** ``$send2-hook'', ``$save-hook'', and ``$fcc-hook'' will
578 ** be interpreted if they are specified with only a simple regexp,
579 ** instead of a matching pattern. The hooks are expanded when they are
580 ** declared, so a hook will be interpreted according to the value of this
581 ** variable at the time the hook is declared.
583 ** The default value matches
584 ** if the message is either from a user matching the regular expression
585 ** given, or if it is from you (if the from address matches
586 ** ``$alternates'') and is to or cc'ed to a user matching the given
587 ** regular expression.
589 { "delete", DT_QUAD, R_NONE, OPT_DELETE, M_ASKYES },
592 ** Controls whether or not messages are really deleted when closing or
593 ** synchronizing a mailbox. If set to \fIyes\fP, messages marked for
594 ** deleting will automatically be purged without prompting. If set to
595 ** \fIno\fP, messages marked for deletion will be kept in the mailbox.
597 { "delete_untag", DT_BOOL, R_NONE, OPTDELETEUNTAG, 1 },
600 ** If this option is \fIset\fP, mutt will untag messages when marking them
601 ** for deletion. This applies when you either explicitly delete a message,
602 ** or when you save it to another folder.
604 { "digest_collapse", DT_BOOL, R_NONE, OPTDIGESTCOLLAPSE, 1},
607 ** If this option is \fIset\fP, mutt's received-attachments menu will not show the subparts of
608 ** individual messages in a multipart/digest. To see these subparts, press ``v'' on that menu.
610 { "display_filter", DT_PATH, R_PAGER, UL &DisplayFilter, UL "" },
613 ** When set, specifies a command used to filter messages. When a message
614 ** is viewed it is passed as standard input to $$display_filter, and the
615 ** filtered message is read from the standard output.
617 #if defined(DL_STANDALONE) && defined(USE_DOTLOCK)
618 { "dotlock_program", DT_PATH, R_NONE, UL &MuttDotlock, UL BINDIR "/mutt_dotlock" },
621 ** Contains the path of the \fCmutt_dotlock(8)\fP binary to be used by
625 { "dsn_notify", DT_STR, R_NONE, UL &DsnNotify, UL "" },
628 ** This variable sets the request for when notification is returned. The
629 ** string consists of a comma separated list (no spaces!) of one or more
630 ** of the following: \fInever\fP, to never request notification,
631 ** \fIfailure\fP, to request notification on transmission failure,
632 ** \fIdelay\fP, to be notified of message delays, \fIsuccess\fP, to be
633 ** notified of successful transmission.
637 ** set dsn_notify="failure,delay"
640 ** \fBNote:\fP when using $$sendmail for delivery, you should not enable
641 ** this unless you are either using Sendmail 8.8.x or greater or a MTA
642 ** providing a \fCsendmail(1)\fP-compatible interface supporting the \fC-N\fP option
643 ** for DSN. For SMTP delivery, DSN support is auto-detected so that it
644 ** depends on the server whether DSN will be used or not.
646 { "dsn_return", DT_STR, R_NONE, UL &DsnReturn, UL "" },
649 ** This variable controls how much of your message is returned in DSN
650 ** messages. It may be set to either \fIhdrs\fP to return just the
651 ** message header, or \fIfull\fP to return the full message.
655 ** set dsn_return=hdrs
658 ** \fBNote:\fP when using $$sendmail for delivery, you should not enable
659 ** this unless you are either using Sendmail 8.8.x or greater or a MTA
660 ** providing a \fCsendmail(1)\fP-compatible interface supporting the \fC-R\fP option
661 ** for DSN. For SMTP delivery, DSN support is auto-detected so that it
662 ** depends on the server whether DSN will be used or not.
664 { "duplicate_threads", DT_BOOL, R_RESORT|R_RESORT_INIT|R_INDEX, OPTDUPTHREADS, 1 },
667 ** This variable controls whether mutt, when $$sort is set to \fIthreads\fP, threads
668 ** messages with the same Message-Id together. If it is \fIset\fP, it will indicate
669 ** that it thinks they are duplicates of each other with an equals sign
670 ** in the thread tree.
672 { "edit_headers", DT_BOOL, R_NONE, OPTEDITHDRS, 0 },
675 ** This option allows you to edit the header of your outgoing messages
676 ** along with the body of your message.
678 ** \fBNote\fP that changes made to the References: and Date: headers are
679 ** ignored for interoperability reasons.
681 { "edit_hdrs", DT_SYN, R_NONE, UL "edit_headers", 0 },
684 { "editor", DT_PATH, R_NONE, UL &Editor, 0 },
687 ** This variable specifies which editor is used by mutt.
688 ** It defaults to the value of the \fC$$$VISUAL\fP, or \fC$$$EDITOR\fP, environment
689 ** variable, or to the string ``vi'' if neither of those are set.
691 { "encode_from", DT_BOOL, R_NONE, OPTENCODEFROM, 0 },
694 ** When \fIset\fP, mutt will quoted-printable encode messages when
695 ** they contain the string ``From '' (note the trailing space) in the beginning of a line.
696 ** This is useful to avoid the tampering certain mail delivery and transport
697 ** agents tend to do with messages (in order to prevent tools from
698 ** misinterpreting the line as a mbox message separator).
700 #if defined(USE_SSL_OPENSSL)
701 { "entropy_file", DT_PATH, R_NONE, UL &SslEntropyFile, 0 },
704 ** The file which includes random data that is used to initialize SSL
705 ** library functions.
708 { "envelope_from_address", DT_ADDR, R_NONE, UL &EnvFrom, 0 },
711 ** Manually sets the \fIenvelope\fP sender for outgoing messages.
712 ** This value is ignored if $$use_envelope_from is \fIunset\fP.
714 { "escape", DT_STR, R_NONE, UL &EscChar, UL "~" },
717 ** Escape character to use for functions in the built-in editor.
719 { "fast_reply", DT_BOOL, R_NONE, OPTFASTREPLY, 0 },
722 ** When \fIset\fP, the initial prompt for recipients and subject are skipped
723 ** when replying to messages, and the initial prompt for subject is
724 ** skipped when forwarding messages.
726 ** \fBNote:\fP this variable has no effect when the $$autoedit
727 ** variable is \fIset\fP.
729 { "fcc_attach", DT_QUAD, R_NONE, OPT_FCCATTACH, M_YES },
732 ** This variable controls whether or not attachments on outgoing messages
733 ** are saved along with the main body of your message.
735 { "fcc_clear", DT_BOOL, R_NONE, OPTFCCCLEAR, 0 },
738 ** When this variable is \fIset\fP, FCCs will be stored unencrypted and
739 ** unsigned, even when the actual message is encrypted and/or
743 { "folder", DT_PATH, R_NONE, UL &Maildir, UL "~/Mail" },
746 ** Specifies the default location of your mailboxes. A ``+'' or ``='' at the
747 ** beginning of a pathname will be expanded to the value of this
748 ** variable. Note that if you change this variable (from the default)
749 ** value you need to make sure that the assignment occurs \fIbefore\fP
750 ** you use ``+'' or ``='' for any other variables since expansion takes place
751 ** when handling the ``$mailboxes'' command.
753 { "folder_format", DT_STR, R_INDEX, UL &FolderFormat, UL "%2C %t %N %F %2l %-8.8u %-8.8g %8s %d %f" },
756 ** This variable allows you to customize the file browser display to your
757 ** personal taste. This string is similar to $$index_format, but has
758 ** its own set of \fCprintf(3)\fP-like sequences:
760 ** .dt %C .dd current file number
761 ** .dt %d .dd date/time folder was last modified
762 ** .dt %D .dd date/time folder was last modified using $$date_format.
763 ** .dt %f .dd filename (``/'' is appended to directory names,
764 ** ``@'' to symbolic links and ``*'' to executable
766 ** .dt %F .dd file permissions
767 ** .dt %g .dd group name (or numeric gid, if missing)
768 ** .dt %l .dd number of hard links
769 ** .dt %N .dd N if folder has new mail, blank otherwise
770 ** .dt %s .dd size in bytes
771 ** .dt %t .dd ``*'' if the file is tagged, blank otherwise
772 ** .dt %u .dd owner name (or numeric uid, if missing)
773 ** .dt %>X .dd right justify the rest of the string and pad with character ``X''
774 ** .dt %|X .dd pad to the end of the line with character ``X''
775 ** .dt %*X .dd soft-fill with character ``X'' as pad
778 ** For an explanation of ``soft-fill'', see the $$index_format documentation.
780 { "followup_to", DT_BOOL, R_NONE, OPTFOLLOWUPTO, 1 },
783 ** Controls whether or not the ``Mail-Followup-To:'' header field is
784 ** generated when sending mail. When \fIset\fP, Mutt will generate this
785 ** field when you are replying to a known mailing list, specified with
786 ** the ``$subscribe'' or ``$lists'' commands.
788 ** This field has two purposes. First, preventing you from
789 ** receiving duplicate copies of replies to messages which you send
790 ** to mailing lists, and second, ensuring that you do get a reply
791 ** separately for any messages sent to known lists to which you are
794 ** The header will contain only the list's address
795 ** for subscribed lists, and both the list address and your own
796 ** email address for unsubscribed lists. Without this header, a
797 ** group reply to your message sent to a subscribed list will be
798 ** sent to both the list and your address, resulting in two copies
799 ** of the same email for you.
801 { "force_name", DT_BOOL, R_NONE, OPTFORCENAME, 0 },
804 ** This variable is similar to $$save_name, except that Mutt will
805 ** store a copy of your outgoing message by the username of the address
806 ** you are sending to even if that mailbox does not exist.
808 ** Also see the $$record variable.
810 { "forward_decode", DT_BOOL, R_NONE, OPTFORWDECODE, 1 },
813 ** Controls the decoding of complex MIME messages into \fCtext/plain\fP when
814 ** forwarding a message. The message header is also RFC2047 decoded.
815 ** This variable is only used, if $$mime_forward is \fIunset\fP,
816 ** otherwise $$mime_forward_decode is used instead.
818 { "forw_decode", DT_SYN, R_NONE, UL "forward_decode", 0 },
821 { "forward_decrypt", DT_BOOL, R_NONE, OPTFORWDECRYPT, 1 },
824 ** Controls the handling of encrypted messages when forwarding a message.
825 ** When \fIset\fP, the outer layer of encryption is stripped off. This
826 ** variable is only used if $$mime_forward is \fIset\fP and
827 ** $$mime_forward_decode is \fIunset\fP.
830 { "forw_decrypt", DT_SYN, R_NONE, UL "forward_decrypt", 0 },
833 { "forward_edit", DT_QUAD, R_NONE, OPT_FORWEDIT, M_YES },
836 ** This quadoption controls whether or not the user is automatically
837 ** placed in the editor when forwarding messages. For those who always want
838 ** to forward with no modification, use a setting of ``no''.
840 { "forward_format", DT_STR, R_NONE, UL &ForwFmt, UL "[%a: %s]" },
843 ** This variable controls the default subject when forwarding a message.
844 ** It uses the same format sequences as the $$index_format variable.
846 { "forw_format", DT_SYN, R_NONE, UL "forward_format", 0 },
849 { "forward_quote", DT_BOOL, R_NONE, OPTFORWQUOTE, 0 },
852 ** When \fIset\fP, forwarded messages included in the main body of the
853 ** message (when $$mime_forward is \fIunset\fP) will be quoted using
856 { "forw_quote", DT_SYN, R_NONE, UL "forward_quote", 0 },
859 { "from", DT_ADDR, R_NONE, UL &From, UL 0 },
862 ** When \fIset\fP, this variable contains a default from address. It
863 ** can be overridden using ``$my_hdr'' (including from a ``$send-hook'') and
864 ** $$reverse_name. This variable is ignored if $$use_from is \fIunset\fP.
866 ** This setting defaults to the contents of the environment variable \fC$$$EMAIL\fP.
868 { "gecos_mask", DT_RX, R_NONE, UL &GecosMask, UL "^[^,]*" },
871 ** A regular expression used by mutt to parse the GECOS field of a password
872 ** entry when expanding the alias. The default value
873 ** will return the string up to the first ``,'' encountered.
874 ** If the GECOS field contains a string like ``lastname, firstname'' then you
875 ** should set it to ``\fC.*\fP''.
877 ** This can be useful if you see the following behavior: you address an e-mail
878 ** to user ID ``stevef'' whose full name is ``Steve Franklin''. If mutt expands
879 ** ``stevef'' to ``"Franklin" stevef@foo.bar'' then you should set the $$gecos_mask to
880 ** a regular expression that will match the whole name so mutt will expand
881 ** ``Franklin'' to ``Franklin, Steve''.
883 { "hdr_format", DT_SYN, R_NONE, UL "index_format", 0 },
886 { "hdrs", DT_BOOL, R_NONE, OPTHDRS, 1 },
889 ** When \fIunset\fP, the header fields normally added by the ``$my_hdr''
890 ** command are not created. This variable \fImust\fP be unset before
891 ** composing a new message or replying in order to take effect. If \fIset\fP,
892 ** the user defined header fields are added to every new message.
894 { "header", DT_BOOL, R_NONE, OPTHEADER, 0 },
897 ** When \fIset\fP, this variable causes Mutt to include the header
898 ** of the message you are replying to into the edit buffer.
899 ** The $$weed setting applies.
902 { "header_cache", DT_PATH, R_NONE, UL &HeaderCache, 0 },
905 ** This variable points to the header cache database.
906 ** If pointing to a directory Mutt will contain a header cache
907 ** database file per folder, if pointing to a file that file will
908 ** be a single global header cache. By default it is \fIunset\fP so no header
909 ** caching will be used.
911 ** Header caching can greatly improve speed when opening POP, IMAP
912 ** MH or Maildir folders, see ``$caching'' for details.
914 #if defined(HAVE_QDBM) || defined(HAVE_TC)
915 { "header_cache_compress", DT_BOOL, R_NONE, OPTHCACHECOMPRESS, 1 },
918 ** When mutt is compiled with qdbm or tokyocabinet as header cache backend,
919 ** this option determines whether the database will be compressed.
920 ** Compression results in database files roughly being one fifth
921 ** of the usual diskspace, but the decompression can result in a
922 ** slower opening of cached folder(s) which in general is still
923 ** much faster than opening non header cached folders.
925 #endif /* HAVE_QDBM */
926 #if defined(HAVE_GDBM) || defined(HAVE_DB4)
927 { "header_cache_pagesize", DT_STR, R_NONE, UL &HeaderCachePageSize, UL "16384" },
930 ** When mutt is compiled with either gdbm or bdb4 as the header cache backend,
931 ** this option changes the database page size. Too large or too small
932 ** values can waste space, memory, or CPU time. The default should be more
933 ** or less optimal for most use cases.
935 #endif /* HAVE_GDBM || HAVE_DB4 */
936 #endif /* USE_HCACHE */
937 { "help", DT_BOOL, R_BOTH, OPTHELP, 1 },
940 ** When \fIset\fP, help lines describing the bindings for the major functions
941 ** provided by each menu are displayed on the first line of the screen.
943 ** \fBNote:\fP The binding will not be displayed correctly if the
944 ** function is bound to a sequence rather than a single keystroke. Also,
945 ** the help line may not be updated if a binding is changed while Mutt is
946 ** running. Since this variable is primarily aimed at new users, neither
947 ** of these should present a major problem.
949 { "hidden_host", DT_BOOL, R_NONE, OPTHIDDENHOST, 0 },
952 ** When \fIset\fP, mutt will skip the host name part of $$hostname variable
953 ** when adding the domain part to addresses. This variable does not
954 ** affect the generation of Message-IDs, and it will not lead to the
955 ** cut-off of first-level domains.
957 { "hide_limited", DT_BOOL, R_TREE|R_INDEX, OPTHIDELIMITED, 0 },
960 ** When \fIset\fP, mutt will not show the presence of messages that are hidden
961 ** by limiting, in the thread tree.
963 { "hide_missing", DT_BOOL, R_TREE|R_INDEX, OPTHIDEMISSING, 1 },
966 ** When \fIset\fP, mutt will not show the presence of missing messages in the
969 { "hide_thread_subject", DT_BOOL, R_TREE|R_INDEX, OPTHIDETHREADSUBJECT, 1 },
972 ** When \fIset\fP, mutt will not show the subject of messages in the thread
973 ** tree that have the same subject as their parent or closest previously
974 ** displayed sibling.
976 { "hide_top_limited", DT_BOOL, R_TREE|R_INDEX, OPTHIDETOPLIMITED, 0 },
979 ** When \fIset\fP, mutt will not show the presence of messages that are hidden
980 ** by limiting, at the top of threads in the thread tree. Note that when
981 ** $$hide_limited is \fIset\fP, this option will have no effect.
983 { "hide_top_missing", DT_BOOL, R_TREE|R_INDEX, OPTHIDETOPMISSING, 1 },
986 ** When \fIset\fP, mutt will not show the presence of missing messages at the
987 ** top of threads in the thread tree. Note that when $$hide_missing is
988 ** \fIset\fP, this option will have no effect.
990 { "history", DT_NUM, R_NONE, UL &HistSize, 10 },
993 ** This variable controls the size (in number of strings remembered) of
994 ** the string history buffer per category. The buffer is cleared each time the
997 { "history_file", DT_PATH, R_NONE, UL &HistFile, UL "~/.mutthistory" },
1000 ** The file in which Mutt will save its history.
1002 { "honor_disposition", DT_BOOL, R_NONE, OPTHONORDISP, 0 },
1005 ** When \fIset\fP, Mutt will not display attachments with a
1006 ** disposition of ``attachment'' inline even if it could
1007 ** render the part to plain text. These MIME parts can only
1008 ** be viewed from the attachment menu.
1010 ** If \fIunset\fP, Mutt will render all MIME parts it can
1011 ** properly transform to plain text.
1013 { "honor_followup_to", DT_QUAD, R_NONE, OPT_MFUPTO, M_YES },
1016 ** This variable controls whether or not a Mail-Followup-To header is
1017 ** honored when group-replying to a message.
1019 { "hostname", DT_STR, R_NONE, UL &Fqdn, 0 },
1022 ** Specifies the fully-qualified hostname of the system mutt is running on
1023 ** containing the host's name and the DNS domain it belongs to. It is used
1024 ** as the domain part (after ``@'') for local email addresses as well as
1025 ** Message-Id headers.
1027 ** Its value is determined at startup as follows: If the node's name
1028 ** as returned by the \fCuname(3)\fP function contains the hostname and the
1029 ** domain, these are used to construct $$hostname. If there is no
1030 ** domain part returned, Mutt will look for a ``domain'' or ``search''
1031 ** line in \fC/etc/resolv.conf\fP to determine the domain. Optionally, Mutt
1032 ** can be compiled with a fixed domain name in which case a detected
1035 ** Also see $$use_domain and $$hidden_host.
1037 { "ignore_linear_white_space", DT_BOOL, R_NONE, OPTIGNORELWS, 0 },
1040 ** This option replaces linear-white-space between encoded-word
1041 ** and text to a single space to prevent the display of MIME-encoded
1042 ** ``Subject:'' field from being divided into multiple lines.
1044 { "ignore_list_reply_to", DT_BOOL, R_NONE, OPTIGNORELISTREPLYTO, 0 },
1047 ** Affects the behavior of the \fC<reply>\fP function when replying to
1048 ** messages from mailing lists (as defined by the ``$subscribe'' or
1049 ** ``$lists'' commands). When \fIset\fP, if the ``Reply-To:'' field is
1050 ** set to the same value as the ``To:'' field, Mutt assumes that the
1051 ** ``Reply-To:'' field was set by the mailing list to automate responses
1052 ** to the list, and will ignore this field. To direct a response to the
1053 ** mailing list when this option is \fIset\fP, use the \fC$<list-reply>\fP
1054 ** function; \fC<group-reply>\fP will reply to both the sender and the
1058 { "imap_authenticators", DT_STR, R_NONE, UL &ImapAuthenticators, UL 0 },
1061 ** This is a colon-delimited list of authentication methods mutt may
1062 ** attempt to use to log in to an IMAP server, in the order mutt should
1063 ** try them. Authentication methods are either ``login'' or the right
1064 ** side of an IMAP ``AUTH=xxx'' capability string, e.g. ``digest-md5'', ``gssapi''
1065 ** or ``cram-md5''. This option is case-insensitive. If it's
1066 ** \fIunset\fP (the default) mutt will try all available methods,
1067 ** in order from most-secure to least-secure.
1071 ** set imap_authenticators="gssapi:cram-md5:login"
1074 ** \fBNote:\fP Mutt will only fall back to other authentication methods if
1075 ** the previous methods are unavailable. If a method is available but
1076 ** authentication fails, mutt will not connect to the IMAP server.
1078 { "imap_check_subscribed", DT_BOOL, R_NONE, OPTIMAPCHECKSUBSCRIBED, 0 },
1081 ** When \fIset\fP, mutt will fetch the set of subscribed folders from
1082 ** your server on connection, and add them to the set of mailboxes
1083 ** it polls for new mail just as if you had issued individual ``$mailboxes''
1086 { "imap_delim_chars", DT_STR, R_NONE, UL &ImapDelimChars, UL "/." },
1089 ** This contains the list of characters which you would like to treat
1090 ** as folder separators for displaying IMAP paths. In particular it
1091 ** helps in using the ``='' shortcut for your \fIfolder\fP variable.
1093 { "imap_headers", DT_STR, R_INDEX, UL &ImapHeaders, UL 0},
1096 ** Mutt requests these header fields in addition to the default headers
1097 ** (``Date:'', ``From:'', ``Subject:'', ``To:'', ``Cc:'', ``Message-Id:'',
1098 ** ``References:'', ``Content-Type:'', ``Content-Description:'', ``In-Reply-To:'',
1099 ** ``Reply-To:'', ``Lines:'', ``List-Post:'', ``X-Label:'') from IMAP
1100 ** servers before displaying the index menu. You may want to add more
1101 ** headers for spam detection.
1103 ** \fBNote:\fP This is a space separated list, items should be uppercase
1104 ** and not contain the colon, e.g. ``X-BOGOSITY X-SPAM-STATUS'' for the
1105 ** ``X-Bogosity:'' and ``X-Spam-Status:'' header fields.
1107 { "imap_idle", DT_BOOL, R_NONE, OPTIMAPIDLE, 0 },
1110 ** When \fIset\fP, mutt will attempt to use the IMAP IDLE extension
1111 ** to check for new mail in the current mailbox. Some servers
1112 ** (dovecot was the inspiration for this option) react badly
1113 ** to mutt's implementation. If your connection seems to freeze
1114 ** up periodically, try unsetting this.
1116 { "imap_keepalive", DT_NUM, R_NONE, UL &ImapKeepalive, 900 },
1119 ** This variable specifies the maximum amount of time in seconds that mutt
1120 ** will wait before polling open IMAP connections, to prevent the server
1121 ** from closing them before mutt has finished with them. The default is
1122 ** well within the RFC-specified minimum amount of time (30 minutes) before
1123 ** a server is allowed to do this, but in practice the RFC does get
1124 ** violated every now and then. Reduce this number if you find yourself
1125 ** getting disconnected from your IMAP server due to inactivity.
1127 { "imap_list_subscribed", DT_BOOL, R_NONE, OPTIMAPLSUB, 0 },
1130 ** This variable configures whether IMAP folder browsing will look for
1131 ** only subscribed folders or all folders. This can be toggled in the
1132 ** IMAP browser with the \fC<toggle-subscribed>\fP function.
1134 { "imap_login", DT_STR, R_NONE, UL &ImapLogin, UL 0 },
1137 ** Your login name on the IMAP server.
1139 ** This variable defaults to the value of $$imap_user.
1141 { "imap_pass", DT_STR, R_NONE, UL &ImapPass, UL 0 },
1144 ** Specifies the password for your IMAP account. If \fIunset\fP, Mutt will
1145 ** prompt you for your password when you invoke the \fC<imap-fetch-mail>\fP function
1146 ** or try to open an IMAP folder.
1148 ** \fBWarning\fP: you should only use this option when you are on a
1149 ** fairly secure machine, because the superuser can read your muttrc even
1150 ** if you are the only one who can read the file.
1152 { "imap_passive", DT_BOOL, R_NONE, OPTIMAPPASSIVE, 1 },
1155 ** When \fIset\fP, mutt will not open new IMAP connections to check for new
1156 ** mail. Mutt will only check for new mail over existing IMAP
1157 ** connections. This is useful if you don't want to be prompted to
1158 ** user/password pairs on mutt invocation, or if opening the connection
1161 { "imap_peek", DT_BOOL, R_NONE, OPTIMAPPEEK, 1 },
1164 ** When \fIset\fP, mutt will avoid implicitly marking your mail as read whenever
1165 ** you fetch a message from the server. This is generally a good thing,
1166 ** but can make closing an IMAP folder somewhat slower. This option
1167 ** exists to appease speed freaks.
1169 { "imap_pipeline_depth", DT_NUM, R_NONE, UL &ImapPipelineDepth, 15 },
1172 ** Controls the number of IMAP commands that may be queued up before they
1173 ** are sent to the server. A deeper pipeline reduces the amount of time
1174 ** mutt must wait for the server, and can make IMAP servers feel much
1175 ** more responsive. But not all servers correctly handle pipelined commands,
1176 ** so if you have problems you might want to try setting this variable to 0.
1178 ** \fBNote:\fP Changes to this variable have no effect on open connections.
1180 { "imap_servernoise", DT_BOOL, R_NONE, OPTIMAPSERVERNOISE, 1 },
1183 ** When \fIset\fP, mutt will display warning messages from the IMAP
1184 ** server as error messages. Since these messages are often
1185 ** harmless, or generated due to configuration problems on the
1186 ** server which are out of the users' hands, you may wish to suppress
1187 ** them at some point.
1189 { "imap_user", DT_STR, R_NONE, UL &ImapUser, UL 0 },
1192 ** The name of the user whose mail you intend to access on the IMAP
1195 ** This variable defaults to your user name on the local machine.
1198 { "implicit_autoview", DT_BOOL,R_NONE, OPTIMPLICITAUTOVIEW, 0},
1201 ** If set to ``yes'', mutt will look for a mailcap entry with the
1202 ** ``\fCcopiousoutput\fP'' flag set for \fIevery\fP MIME attachment it doesn't have
1203 ** an internal viewer defined for. If such an entry is found, mutt will
1204 ** use the viewer defined in that entry to convert the body part to text
1207 { "include", DT_QUAD, R_NONE, OPT_INCLUDE, M_ASKYES },
1210 ** Controls whether or not a copy of the message(s) you are replying to
1211 ** is included in your reply.
1213 { "include_onlyfirst", DT_BOOL, R_NONE, OPTINCLUDEONLYFIRST, 0},
1216 ** Controls whether or not Mutt includes only the first attachment
1217 ** of the message you are replying.
1219 { "indent_string", DT_STR, R_NONE, UL &Prefix, UL "> " },
1222 ** Specifies the string to prepend to each line of text quoted in a
1223 ** message to which you are replying. You are strongly encouraged not to
1224 ** change this value, as it tends to agitate the more fanatical netizens.
1226 ** The value of this option is ignored if $$text_flowed is set, too because
1227 ** the quoting mechanism is strictly defined for format=flowed.
1229 ** This option is a format string, please see the description of
1230 ** $$index_format for supported \fCprintf(3)\fP-style sequences.
1232 { "indent_str", DT_SYN, R_NONE, UL "indent_string", 0 },
1235 { "index_format", DT_STR, R_BOTH, UL &HdrFmt, UL "%4C %Z %{%b %d} %-15.15L (%?l?%4l&%4c?) %s" },
1238 ** This variable allows you to customize the message index display to
1239 ** your personal taste.
1241 ** ``Format strings'' are similar to the strings used in the C
1242 ** function \fCprintf(3)\fP to format output (see the man page for more details).
1243 ** The following sequences are defined in Mutt:
1245 ** .dt %a .dd address of the author
1246 ** .dt %A .dd reply-to address (if present; otherwise: address of author)
1247 ** .dt %b .dd filename of the original message folder (think mailbox)
1248 ** .dt %B .dd the list to which the letter was sent, or else the folder name (%b).
1249 ** .dt %c .dd number of characters (bytes) in the message
1250 ** .dt %C .dd current message number
1251 ** .dt %d .dd date and time of the message in the format specified by
1252 ** $$date_format converted to sender's time zone
1253 ** .dt %D .dd date and time of the message in the format specified by
1254 ** $$date_format converted to the local time zone
1255 ** .dt %e .dd current message number in thread
1256 ** .dt %E .dd number of messages in current thread
1257 ** .dt %f .dd sender (address + real name), either From: or Return-Path:
1258 ** .dt %F .dd author name, or recipient name if the message is from you
1259 ** .dt %H .dd spam attribute(s) of this message
1260 ** .dt %i .dd message-id of the current message
1261 ** .dt %l .dd number of lines in the message (does not work with maildir,
1262 ** mh, and possibly IMAP folders)
1263 ** .dt %L .dd If an address in the ``To:'' or ``Cc:'' header field matches an address
1264 ** defined by the users ``$subscribe'' command, this displays
1265 ** "To <list-name>", otherwise the same as %F.
1266 ** .dt %m .dd total number of message in the mailbox
1267 ** .dt %M .dd number of hidden messages if the thread is collapsed.
1268 ** .dt %N .dd message score
1269 ** .dt %n .dd author's real name (or address if missing)
1270 ** .dt %O .dd original save folder where mutt would formerly have
1271 ** stashed the message: list name or recipient name
1272 ** if not sent to a list
1273 ** .dt %P .dd progress indicator for the built-in pager (how much of the file has been displayed)
1274 ** .dt %s .dd subject of the message
1275 ** .dt %S .dd status of the message (``N''/``D''/``d''/``!''/``r''/\(as)
1276 ** .dt %t .dd ``To:'' field (recipients)
1277 ** .dt %T .dd the appropriate character from the $$to_chars string
1278 ** .dt %u .dd user (login) name of the author
1279 ** .dt %v .dd first name of the author, or the recipient if the message is from you
1280 ** .dt %X .dd number of attachments
1281 ** (please see the ``$attachments'' section for possible speed effects)
1282 ** .dt %y .dd ``X-Label:'' field, if present
1283 ** .dt %Y .dd ``X-Label:'' field, if present, and \fI(1)\fP not at part of a thread tree,
1284 ** \fI(2)\fP at the top of a thread, or \fI(3)\fP ``X-Label:'' is different from
1285 ** preceding message's ``X-Label:''.
1286 ** .dt %Z .dd message status flags
1287 ** .dt %{fmt} .dd the date and time of the message is converted to sender's
1288 ** time zone, and ``fmt'' is expanded by the library function
1289 ** \fCstrftime(3)\fP; a leading bang disables locales
1290 ** .dt %[fmt] .dd the date and time of the message is converted to the local
1291 ** time zone, and ``fmt'' is expanded by the library function
1292 ** \fCstrftime(3)\fP; a leading bang disables locales
1293 ** .dt %(fmt) .dd the local date and time when the message was received.
1294 ** ``fmt'' is expanded by the library function \fCstrftime(3)\fP;
1295 ** a leading bang disables locales
1296 ** .dt %<fmt> .dd the current local time. ``fmt'' is expanded by the library
1297 ** function \fCstrftime(3)\fP; a leading bang disables locales.
1298 ** .dt %>X .dd right justify the rest of the string and pad with character ``X''
1299 ** .dt %|X .dd pad to the end of the line with character ``X''
1300 ** .dt %*X .dd soft-fill with character ``X'' as pad
1303 ** ``Soft-fill'' deserves some explanation: Normal right-justification
1304 ** will print everything to the left of the ``%>'', displaying padding and
1305 ** whatever lies to the right only if there's room. By contrast,
1306 ** soft-fill gives priority to the right-hand side, guaranteeing space
1307 ** to display it and showing padding only if there's still room. If
1308 ** necessary, soft-fill will eat text leftwards to make room for
1311 ** Note that these expandos are supported in
1312 ** ``$save-hook'', ``$fcc-hook'' and ``$fcc-save-hook'', too.
1314 { "ispell", DT_PATH, R_NONE, UL &Ispell, UL ISPELL },
1317 ** How to invoke ispell (GNU's spell-checking software).
1319 { "keep_flagged", DT_BOOL, R_NONE, OPTKEEPFLAGGED, 0 },
1322 ** If \fIset\fP, read messages marked as flagged will not be moved
1323 ** from your spool mailbox to your $$mbox mailbox, or as a result of
1324 ** a ``$mbox-hook'' command.
1326 { "locale", DT_STR, R_BOTH, UL &Locale, UL "C" },
1329 ** The locale used by \fCstrftime(3)\fP to format dates. Legal values are
1330 ** the strings your system accepts for the locale environment variable \fC$$$LC_TIME\fP.
1332 { "mail_check", DT_NUM, R_NONE, UL &BuffyTimeout, 5 },
1335 ** This variable configures how often (in seconds) mutt should look for
1336 ** new mail. Also see the $$timeout variable.
1338 { "mail_check_recent",DT_BOOL, R_NONE, OPTMAILCHECKRECENT, 1 },
1341 ** When \fIset\fP, Mutt will only notify you about new mail that has been received
1342 ** since the last time you opened the mailbox. When \fIunset\fP, Mutt will notify you
1343 ** if any new mail exists in the mailbox, regardless of whether you have visited it
1346 ** When \fI$$mark_old\fP is set, Mutt does not consider the mailbox to contain new
1347 ** mail if only old messages exist.
1349 { "mailcap_path", DT_STR, R_NONE, UL &MailcapPath, 0 },
1352 ** This variable specifies which files to consult when attempting to
1353 ** display MIME bodies not directly supported by Mutt.
1355 { "mailcap_sanitize", DT_BOOL, R_NONE, OPTMAILCAPSANITIZE, 1 },
1358 ** If \fIset\fP, mutt will restrict possible characters in mailcap % expandos
1359 ** to a well-defined set of safe characters. This is the safe setting,
1360 ** but we are not sure it doesn't break some more advanced MIME stuff.
1362 ** \fBDON'T CHANGE THIS SETTING UNLESS YOU ARE REALLY SURE WHAT YOU ARE
1366 { "maildir_header_cache_verify", DT_BOOL, R_NONE, OPTHCACHEVERIFY, 1 },
1369 ** Check for Maildir unaware programs other than mutt having modified maildir
1370 ** files when the header cache is in use. This incurs one \fCstat(2)\fP per
1371 ** message every time the folder is opened (which can be very slow for NFS
1375 { "maildir_trash", DT_BOOL, R_NONE, OPTMAILDIRTRASH, 0 },
1378 ** If \fIset\fP, messages marked as deleted will be saved with the maildir
1379 ** trashed flag instead of unlinked. \fBNote:\fP this only applies
1380 ** to maildir-style mailboxes. Setting it will have no effect on other
1383 { "mark_old", DT_BOOL, R_BOTH, OPTMARKOLD, 1 },
1386 ** Controls whether or not mutt marks \fInew\fP \fBunread\fP
1387 ** messages as \fIold\fP if you exit a mailbox without reading them.
1388 ** With this option \fIset\fP, the next time you start mutt, the messages
1389 ** will show up with an ``O'' next to them in the index menu,
1390 ** indicating that they are old.
1392 { "markers", DT_BOOL, R_PAGER, OPTMARKERS, 1 },
1395 ** Controls the display of wrapped lines in the internal pager. If set, a
1396 ** ``+'' marker is displayed at the beginning of wrapped lines.
1398 ** Also see the $$smart_wrap variable.
1400 { "mask", DT_RX, R_NONE, UL &Mask, UL "!^\\.[^.]" },
1403 ** A regular expression used in the file browser, optionally preceded by
1404 ** the \fInot\fP operator ``!''. Only files whose names match this mask
1405 ** will be shown. The match is always case-sensitive.
1407 { "mbox", DT_PATH, R_BOTH, UL &Inbox, UL "~/mbox" },
1410 ** This specifies the folder into which read mail in your $$spoolfile
1411 ** folder will be appended.
1413 ** Also see the $$move variable.
1415 { "mbox_type", DT_MAGIC,R_NONE, UL &DefaultMagic, M_MBOX },
1418 ** The default mailbox type used when creating new folders. May be any of
1419 ** ``mbox'', ``MMDF'', ``MH'' and ``Maildir''. This is overridden by the
1420 ** \fC-m\fP command-line option.
1422 { "menu_context", DT_NUM, R_NONE, UL &MenuContext, 0 },
1425 ** This variable controls the number of lines of context that are given
1426 ** when scrolling through menus. (Similar to $$pager_context.)
1428 { "menu_move_off", DT_BOOL, R_NONE, OPTMENUMOVEOFF, 1 },
1431 ** When \fIunset\fP, the bottom entry of menus will never scroll up past
1432 ** the bottom of the screen, unless there are less entries than lines.
1433 ** When \fIset\fP, the bottom entry may move off the bottom.
1435 { "menu_scroll", DT_BOOL, R_NONE, OPTMENUSCROLL, 0 },
1438 ** When \fIset\fP, menus will be scrolled up or down one line when you
1439 ** attempt to move across a screen boundary. If \fIunset\fP, the screen
1440 ** is cleared and the next or previous page of the menu is displayed
1441 ** (useful for slow links to avoid many redraws).
1443 #if defined(USE_IMAP) || defined(USE_POP)
1444 { "message_cache_clean", DT_BOOL, R_NONE, OPTMESSAGECACHECLEAN, 0 },
1447 ** If \fIset\fP, mutt will clean out obsolete entries from the message cache when
1448 ** the mailbox is synchronized. You probably only want to set it
1449 ** every once in a while, since it can be a little slow
1450 ** (especially for large folders).
1452 { "message_cachedir", DT_PATH, R_NONE, UL &MessageCachedir, 0 },
1455 ** Set this to a directory and mutt will cache copies of messages from
1456 ** your IMAP and POP servers here. You are free to remove entries at any
1459 ** When setting this variable to a directory, mutt needs to fetch every
1460 ** remote message only once and can perform regular expression searches
1461 ** as fast as for local folders.
1463 ** Also see the $$message_cache_clean variable.
1466 { "message_format", DT_STR, R_NONE, UL &MsgFmt, UL "%s" },
1469 ** This is the string displayed in the ``attachment'' menu for
1470 ** attachments of type \fCmessage/rfc822\fP. For a full listing of defined
1471 ** \fCprintf(3)\fP-like sequences see the section on $$index_format.
1473 { "msg_format", DT_SYN, R_NONE, UL "message_format", 0 },
1476 { "meta_key", DT_BOOL, R_NONE, OPTMETAKEY, 0 },
1479 ** If \fIset\fP, forces Mutt to interpret keystrokes with the high bit (bit 8)
1480 ** set as if the user had pressed the Esc key and whatever key remains
1481 ** after having the high bit removed. For example, if the key pressed
1482 ** has an ASCII value of \fC0xf8\fP, then this is treated as if the user had
1483 ** pressed Esc then ``x''. This is because the result of removing the
1484 ** high bit from \fC0xf8\fP is \fC0x78\fP, which is the ASCII character
1487 { "metoo", DT_BOOL, R_NONE, OPTMETOO, 0 },
1490 ** If \fIunset\fP, Mutt will remove your address (see the ``$alternates''
1491 ** command) from the list of recipients when replying to a message.
1493 { "mh_purge", DT_BOOL, R_NONE, OPTMHPURGE, 0 },
1496 ** When \fIunset\fP, mutt will mimic mh's behavior and rename deleted messages
1497 ** to \fI,<old file name>\fP in mh folders instead of really deleting
1498 ** them. This leaves the message on disk but makes programs reading the folder
1499 ** ignore it. If the variable is \fIset\fP, the message files will simply be
1502 ** This option is similar to $$maildir_trash for Maildir folders.
1504 { "mh_seq_flagged", DT_STR, R_NONE, UL &MhFlagged, UL "flagged" },
1507 ** The name of the MH sequence used for flagged messages.
1509 { "mh_seq_replied", DT_STR, R_NONE, UL &MhReplied, UL "replied" },
1512 ** The name of the MH sequence used to tag replied messages.
1514 { "mh_seq_unseen", DT_STR, R_NONE, UL &MhUnseen, UL "unseen" },
1517 ** The name of the MH sequence used for unseen messages.
1519 { "mime_forward", DT_QUAD, R_NONE, OPT_MIMEFWD, M_NO },
1522 ** When \fIset\fP, the message you are forwarding will be attached as a
1523 ** separate \fCmessage/rfc822\fP MIME part instead of included in the main body of the
1524 ** message. This is useful for forwarding MIME messages so the receiver
1525 ** can properly view the message as it was delivered to you. If you like
1526 ** to switch between MIME and not MIME from mail to mail, set this
1527 ** variable to ``ask-no'' or ``ask-yes''.
1529 ** Also see $$forward_decode and $$mime_forward_decode.
1531 { "mime_forward_decode", DT_BOOL, R_NONE, OPTMIMEFORWDECODE, 0 },
1534 ** Controls the decoding of complex MIME messages into \fCtext/plain\fP when
1535 ** forwarding a message while $$mime_forward is \fIset\fP. Otherwise
1536 ** $$forward_decode is used instead.
1538 { "mime_fwd", DT_SYN, R_NONE, UL "mime_forward", 0 },
1541 { "mime_forward_rest", DT_QUAD, R_NONE, OPT_MIMEFWDREST, M_YES },
1544 ** When forwarding multiple attachments of a MIME message from the attachment
1545 ** menu, attachments which cannot be decoded in a reasonable manner will
1546 ** be attached to the newly composed message if this option is \fIset\fP.
1549 { "mix_entry_format", DT_STR, R_NONE, UL &MixEntryFormat, UL "%4n %c %-16s %a" },
1552 ** This variable describes the format of a remailer line on the mixmaster
1553 ** chain selection screen. The following \fCprintf(3)\fP-like sequences are
1556 ** .dt %n .dd The running number on the menu.
1557 ** .dt %c .dd Remailer capabilities.
1558 ** .dt %s .dd The remailer's short name.
1559 ** .dt %a .dd The remailer's e-mail address.
1562 { "mixmaster", DT_PATH, R_NONE, UL &Mixmaster, UL MIXMASTER },
1565 ** This variable contains the path to the Mixmaster binary on your
1566 ** system. It is used with various sets of parameters to gather the
1567 ** list of known remailers, and to finally send a message through the
1571 { "move", DT_QUAD, R_NONE, OPT_MOVE, M_NO },
1574 ** Controls whether or not Mutt will move read messages
1575 ** from your spool mailbox to your $$mbox mailbox, or as a result of
1576 ** a ``$mbox-hook'' command.
1578 { "narrow_tree", DT_BOOL, R_TREE|R_INDEX, OPTNARROWTREE, 0 },
1581 ** This variable, when \fIset\fP, makes the thread tree narrower, allowing
1582 ** deeper threads to fit on the screen.
1585 { "net_inc", DT_NUM, R_NONE, UL &NetInc, 10 },
1588 ** Operations that expect to transfer a large amount of data over the
1589 ** network will update their progress every $$net_inc kilobytes.
1590 ** If set to 0, no progress messages will be displayed.
1592 ** See also $$read_inc, $$write_inc and $$net_inc.
1595 { "pager", DT_PATH, R_NONE, UL &Pager, UL "builtin" },
1598 ** This variable specifies which pager you would like to use to view
1599 ** messages. The value ``builtin'' means to use the built-in pager, otherwise this
1600 ** variable should specify the pathname of the external pager you would
1603 ** Using an external pager may have some disadvantages: Additional
1604 ** keystrokes are necessary because you can't call mutt functions
1605 ** directly from the pager, and screen resizes cause lines longer than
1606 ** the screen width to be badly formatted in the help menu.
1608 { "pager_context", DT_NUM, R_NONE, UL &PagerContext, 0 },
1611 ** This variable controls the number of lines of context that are given
1612 ** when displaying the next or previous page in the internal pager. By
1613 ** default, Mutt will display the line after the last one on the screen
1614 ** at the top of the next page (0 lines of context).
1616 ** This variable also specifies the amount of context given for search
1617 ** results. If positive, this many lines will be given before a match,
1618 ** if 0, the match will be top-aligned.
1620 { "pager_format", DT_STR, R_PAGER, UL &PagerFmt, UL "-%Z- %C/%m: %-20.20n %s%* -- (%P)" },
1623 ** This variable controls the format of the one-line message ``status''
1624 ** displayed before each message in either the internal or an external
1625 ** pager. The valid sequences are listed in the $$index_format
1628 { "pager_index_lines",DT_NUM, R_PAGER, UL &PagerIndexLines, 0 },
1631 ** Determines the number of lines of a mini-index which is shown when in
1632 ** the pager. The current message, unless near the top or bottom of the
1633 ** folder, will be roughly one third of the way down this mini-index,
1634 ** giving the reader the context of a few messages before and after the
1635 ** message. This is useful, for example, to determine how many messages
1636 ** remain to be read in the current thread. One of the lines is reserved
1637 ** for the status bar from the index, so a setting of 6
1638 ** will only show 5 lines of the actual index. A value of 0 results in
1639 ** no index being shown. If the number of messages in the current folder
1640 ** is less than $$pager_index_lines, then the index will only use as
1641 ** many lines as it needs.
1643 { "pager_stop", DT_BOOL, R_NONE, OPTPAGERSTOP, 0 },
1646 ** When \fIset\fP, the internal-pager will \fBnot\fP move to the next message
1647 ** when you are at the end of a message and invoke the \fC<next-page>\fP
1650 { "pgp_auto_decode", DT_BOOL, R_NONE, OPTPGPAUTODEC, 0 },
1653 ** If \fIset\fP, mutt will automatically attempt to decrypt traditional PGP
1654 ** messages whenever the user performs an operation which ordinarily would
1655 ** result in the contents of the message being operated on. For example,
1656 ** if the user displays a pgp-traditional message which has not been manually
1657 ** checked with the \fC$<check-traditional-pgp>\fP function, mutt will automatically
1658 ** check the message for traditional pgp.
1660 { "pgp_create_traditional", DT_SYN, R_NONE, UL "pgp_autoinline", 0 },
1661 { "pgp_autoinline", DT_BOOL, R_NONE, OPTPGPAUTOINLINE, 0 },
1664 ** This option controls whether Mutt generates old-style inline
1665 ** (traditional) PGP encrypted or signed messages under certain
1666 ** circumstances. This can be overridden by use of the pgp menu,
1667 ** when inline is not required.
1669 ** Note that Mutt might automatically use PGP/MIME for messages
1670 ** which consist of more than a single MIME part. Mutt can be
1671 ** configured to ask before sending PGP/MIME messages when inline
1672 ** (traditional) would not work.
1674 ** Also see the $$pgp_mime_auto variable.
1676 ** Also note that using the old-style PGP message format is \fBstrongly\fP
1677 ** \fBdeprecated\fP.
1680 { "pgp_check_exit", DT_BOOL, R_NONE, OPTPGPCHECKEXIT, 1 },
1683 ** If \fIset\fP, mutt will check the exit code of the PGP subprocess when
1684 ** signing or encrypting. A non-zero exit code means that the
1685 ** subprocess failed.
1688 { "pgp_clearsign_command", DT_STR, R_NONE, UL &PgpClearSignCommand, 0 },
1691 ** This format is used to create an old-style ``clearsigned'' PGP
1692 ** message. Note that the use of this format is \fBstrongly\fP
1693 ** \fBdeprecated\fP.
1695 ** This is a format string, see the $$pgp_decode_command command for
1696 ** possible \fCprintf(3)\fP-like sequences.
1699 { "pgp_decode_command", DT_STR, R_NONE, UL &PgpDecodeCommand, 0},
1702 ** This format strings specifies a command which is used to decode
1703 ** application/pgp attachments.
1705 ** The PGP command formats have their own set of \fCprintf(3)\fP-like sequences:
1707 ** .dt %p .dd Expands to PGPPASSFD=0 when a pass phrase is needed, to an empty
1708 ** string otherwise. Note: This may be used with a %? construct.
1709 ** .dt %f .dd Expands to the name of a file containing a message.
1710 ** .dt %s .dd Expands to the name of a file containing the signature part
1711 ** . of a \fCmultipart/signed\fP attachment when verifying it.
1712 ** .dt %a .dd The value of $$pgp_sign_as.
1713 ** .dt %r .dd One or more key IDs.
1716 ** For examples on how to configure these formats for the various versions
1717 ** of PGP which are floating around, see the pgp and gpg sample configuration files in
1718 ** the \fCsamples/\fP subdirectory which has been installed on your system
1719 ** alongside the documentation.
1722 { "pgp_decrypt_command", DT_STR, R_NONE, UL &PgpDecryptCommand, 0},
1725 ** This command is used to decrypt a PGP encrypted message.
1727 ** This is a format string, see the $$pgp_decode_command command for
1728 ** possible \fCprintf(3)\fP-like sequences.
1731 { "pgp_encrypt_only_command", DT_STR, R_NONE, UL &PgpEncryptOnlyCommand, 0},
1734 ** This command is used to encrypt a body part without signing it.
1736 ** This is a format string, see the $$pgp_decode_command command for
1737 ** possible \fCprintf(3)\fP-like sequences.
1740 { "pgp_encrypt_sign_command", DT_STR, R_NONE, UL &PgpEncryptSignCommand, 0},
1743 ** This command is used to both sign and encrypt a body part.
1745 ** This is a format string, see the $$pgp_decode_command command for
1746 ** possible \fCprintf(3)\fP-like sequences.
1749 { "pgp_entry_format", DT_STR, R_NONE, UL &PgpEntryFormat, UL "%4n %t%f %4l/0x%k %-4a %2c %u" },
1752 ** This variable allows you to customize the PGP key selection menu to
1753 ** your personal taste. This string is similar to $$index_format, but
1754 ** has its own set of \fCprintf(3)\fP-like sequences:
1756 ** .dt %n .dd number
1757 ** .dt %k .dd key id
1758 ** .dt %u .dd user id
1759 ** .dt %a .dd algorithm
1760 ** .dt %l .dd key length
1762 ** .dt %c .dd capabilities
1763 ** .dt %t .dd trust/validity of the key-uid association
1764 ** .dt %[<s>] .dd date of the key where <s> is an \fCstrftime(3)\fP expression
1769 { "pgp_export_command", DT_STR, R_NONE, UL &PgpExportCommand, 0},
1772 ** This command is used to export a public key from the user's
1775 ** This is a format string, see the $$pgp_decode_command command for
1776 ** possible \fCprintf(3)\fP-like sequences.
1779 { "pgp_getkeys_command", DT_STR, R_NONE, UL &PgpGetkeysCommand, 0},
1782 ** This command is invoked whenever mutt will need public key information.
1783 ** Of the sequences supported by $$pgp_decode_command, %r is the only
1784 ** \fCprintf(3)\fP-like sequence used with this format.
1787 { "pgp_good_sign", DT_RX, R_NONE, UL &PgpGoodSign, 0 },
1790 ** If you assign a text to this variable, then a PGP signature is only
1791 ** considered verified if the output from $$pgp_verify_command contains
1792 ** the text. Use this variable if the exit code from the command is 0
1793 ** even for bad signatures.
1796 { "pgp_ignore_subkeys", DT_BOOL, R_NONE, OPTPGPIGNORESUB, 1},
1799 ** Setting this variable will cause Mutt to ignore OpenPGP subkeys. Instead,
1800 ** the principal key will inherit the subkeys' capabilities. \fIUnset\fP this
1801 ** if you want to play interesting key selection games.
1804 { "pgp_import_command", DT_STR, R_NONE, UL &PgpImportCommand, 0},
1807 ** This command is used to import a key from a message into
1808 ** the user's public key ring.
1810 ** This is a format string, see the $$pgp_decode_command command for
1811 ** possible \fCprintf(3)\fP-like sequences.
1814 { "pgp_list_pubring_command", DT_STR, R_NONE, UL &PgpListPubringCommand, 0},
1817 ** This command is used to list the public key ring's contents. The
1818 ** output format must be analogous to the one used by
1820 ** gpg --list-keys --with-colons.
1823 ** This format is also generated by the \fCpgpring\fP utility which comes
1826 ** This is a format string, see the $$pgp_decode_command command for
1827 ** possible \fCprintf(3)\fP-like sequences.
1830 { "pgp_list_secring_command", DT_STR, R_NONE, UL &PgpListSecringCommand, 0},
1833 ** This command is used to list the secret key ring's contents. The
1834 ** output format must be analogous to the one used by:
1836 ** gpg --list-keys --with-colons.
1839 ** This format is also generated by the \fCpgpring\fP utility which comes
1842 ** This is a format string, see the $$pgp_decode_command command for
1843 ** possible \fCprintf(3)\fP-like sequences.
1846 { "pgp_long_ids", DT_BOOL, R_NONE, OPTPGPLONGIDS, 0 },
1849 ** If \fIset\fP, use 64 bit PGP key IDs, if \fIunset\fP use the normal 32 bit key IDs.
1852 { "pgp_mime_auto", DT_QUAD, R_NONE, OPT_PGPMIMEAUTO, M_ASKYES },
1855 ** This option controls whether Mutt will prompt you for
1856 ** automatically sending a (signed/encrypted) message using
1857 ** PGP/MIME when inline (traditional) fails (for any reason).
1859 ** Also note that using the old-style PGP message format is \fBstrongly\fP
1860 ** \fBdeprecated\fP.
1863 { "pgp_auto_traditional", DT_SYN, R_NONE, UL "pgp_replyinline", 0 },
1864 { "pgp_replyinline", DT_BOOL, R_NONE, OPTPGPREPLYINLINE, 0 },
1867 ** Setting this variable will cause Mutt to always attempt to
1868 ** create an inline (traditional) message when replying to a
1869 ** message which is PGP encrypted/signed inline. This can be
1870 ** overridden by use of the pgp menu, when inline is not
1871 ** required. This option does not automatically detect if the
1872 ** (replied-to) message is inline; instead it relies on Mutt
1873 ** internals for previously checked/flagged messages.
1875 ** Note that Mutt might automatically use PGP/MIME for messages
1876 ** which consist of more than a single MIME part. Mutt can be
1877 ** configured to ask before sending PGP/MIME messages when inline
1878 ** (traditional) would not work.
1880 ** Also see the $$pgp_mime_auto variable.
1882 ** Also note that using the old-style PGP message format is \fBstrongly\fP
1883 ** \fBdeprecated\fP.
1887 { "pgp_retainable_sigs", DT_BOOL, R_NONE, OPTPGPRETAINABLESIG, 0 },
1890 ** If \fIset\fP, signed and encrypted messages will consist of nested
1891 ** \fCmultipart/signed\fP and \fCmultipart/encrypted\fP body parts.
1893 ** This is useful for applications like encrypted and signed mailing
1894 ** lists, where the outer layer (\fCmultipart/encrypted\fP) can be easily
1895 ** removed, while the inner \fCmultipart/signed\fP part is retained.
1898 { "pgp_show_unusable", DT_BOOL, R_NONE, OPTPGPSHOWUNUSABLE, 1 },
1901 ** If \fIset\fP, mutt will display non-usable keys on the PGP key selection
1902 ** menu. This includes keys which have been revoked, have expired, or
1903 ** have been marked as ``disabled'' by the user.
1906 { "pgp_sign_as", DT_STR, R_NONE, UL &PgpSignAs, 0 },
1909 ** If you have more than one key pair, this option allows you to specify
1910 ** which of your private keys to use. It is recommended that you use the
1911 ** keyid form to specify your key (e.g. \fC0x00112233\fP).
1914 { "pgp_sign_command", DT_STR, R_NONE, UL &PgpSignCommand, 0},
1917 ** This command is used to create the detached PGP signature for a
1918 ** \fCmultipart/signed\fP PGP/MIME body part.
1920 ** This is a format string, see the $$pgp_decode_command command for
1921 ** possible \fCprintf(3)\fP-like sequences.
1924 { "pgp_sort_keys", DT_SORT|DT_SORT_KEYS, R_NONE, UL &PgpSortKeys, SORT_ADDRESS },
1927 ** Specifies how the entries in the pgp menu are sorted. The
1928 ** following are legal values:
1930 ** .dt address .dd sort alphabetically by user id
1931 ** .dt keyid .dd sort alphabetically by key id
1932 ** .dt date .dd sort by key creation date
1933 ** .dt trust .dd sort by the trust of the key
1936 ** If you prefer reverse order of the above values, prefix it with
1940 { "pgp_strict_enc", DT_BOOL, R_NONE, OPTPGPSTRICTENC, 1 },
1943 ** If \fIset\fP, Mutt will automatically encode PGP/MIME signed messages as
1944 ** quoted-printable. Please note that unsetting this variable may
1945 ** lead to problems with non-verifyable PGP signatures, so only change
1946 ** this if you know what you are doing.
1949 { "pgp_timeout", DT_NUM, R_NONE, UL &PgpTimeout, 300 },
1952 ** The number of seconds after which a cached passphrase will expire if
1956 { "pgp_use_gpg_agent", DT_BOOL, R_NONE, OPTUSEGPGAGENT, 0},
1959 ** If \fIset\fP, mutt will use a possibly-running \fCgpg-agent(1)\fP process.
1962 { "pgp_verify_command", DT_STR, R_NONE, UL &PgpVerifyCommand, 0},
1965 ** This command is used to verify PGP signatures.
1967 ** This is a format string, see the $$pgp_decode_command command for
1968 ** possible \fCprintf(3)\fP-like sequences.
1971 { "pgp_verify_key_command", DT_STR, R_NONE, UL &PgpVerifyKeyCommand, 0},
1974 ** This command is used to verify key information from the key selection
1977 ** This is a format string, see the $$pgp_decode_command command for
1978 ** possible \fCprintf(3)\fP-like sequences.
1981 { "pipe_decode", DT_BOOL, R_NONE, OPTPIPEDECODE, 0 },
1984 ** Used in connection with the \fC<pipe-message>\fP command. When \fIunset\fP,
1985 ** Mutt will pipe the messages without any preprocessing. When \fIset\fP, Mutt
1986 ** will weed headers and will attempt to decode the messages
1989 { "pipe_sep", DT_STR, R_NONE, UL &PipeSep, UL "\n" },
1992 ** The separator to add between messages when piping a list of tagged
1993 ** messages to an external Unix command.
1995 { "pipe_split", DT_BOOL, R_NONE, OPTPIPESPLIT, 0 },
1998 ** Used in connection with the \fC<pipe-message>\fP function following
1999 ** \fC<tag-prefix>\fP. If this variable is \fIunset\fP, when piping a list of
2000 ** tagged messages Mutt will concatenate the messages and will pipe them
2001 ** all concatenated. When \fIset\fP, Mutt will pipe the messages one by one.
2002 ** In both cases the messages are piped in the current sorted order,
2003 ** and the $$pipe_sep separator is added after each message.
2006 { "pop_auth_try_all", DT_BOOL, R_NONE, OPTPOPAUTHTRYALL, 1 },
2009 ** If \fIset\fP, Mutt will try all available authentication methods.
2010 ** When \fIunset\fP, Mutt will only fall back to other authentication
2011 ** methods if the previous methods are unavailable. If a method is
2012 ** available but authentication fails, Mutt will not connect to the POP server.
2014 { "pop_authenticators", DT_STR, R_NONE, UL &PopAuthenticators, UL 0 },
2017 ** This is a colon-delimited list of authentication methods mutt may
2018 ** attempt to use to log in to an POP server, in the order mutt should
2019 ** try them. Authentication methods are either ``user'', ``apop'' or any
2020 ** SASL mechanism, e.g. ``digest-md5'', ``gssapi'' or ``cram-md5''.
2021 ** This option is case-insensitive. If this option is \fIunset\fP
2022 ** (the default) mutt will try all available methods, in order from
2023 ** most-secure to least-secure.
2027 ** set pop_authenticators="digest-md5:apop:user"
2030 { "pop_checkinterval", DT_NUM, R_NONE, UL &PopCheckTimeout, 60 },
2033 ** This variable configures how often (in seconds) mutt should look for
2034 ** new mail in the currently selected mailbox if it is a POP mailbox.
2036 { "pop_delete", DT_QUAD, R_NONE, OPT_POPDELETE, M_ASKNO },
2039 ** If \fIset\fP, Mutt will delete successfully downloaded messages from the POP
2040 ** server when using the \fC$<fetch-mail>\fP function. When \fIunset\fP, Mutt will
2041 ** download messages but also leave them on the POP server.
2043 { "pop_host", DT_STR, R_NONE, UL &PopHost, UL "" },
2046 ** The name of your POP server for the \fC$<fetch-mail>\fP function. You
2047 ** can also specify an alternative port, username and password, i.e.:
2049 ** [pop[s]://][username[:password]@]popserver[:port]
2052 ** where ``[...]'' denotes an optional part.
2054 { "pop_last", DT_BOOL, R_NONE, OPTPOPLAST, 0 },
2057 ** If this variable is \fIset\fP, mutt will try to use the ``\fCLAST\fP'' POP command
2058 ** for retrieving only unread messages from the POP server when using
2059 ** the \fC$<fetch-mail>\fP function.
2061 { "pop_pass", DT_STR, R_NONE, UL &PopPass, UL "" },
2064 ** Specifies the password for your POP account. If \fIunset\fP, Mutt will
2065 ** prompt you for your password when you open a POP mailbox.
2067 ** \fBWarning\fP: you should only use this option when you are on a
2068 ** fairly secure machine, because the superuser can read your muttrc
2069 ** even if you are the only one who can read the file.
2071 { "pop_reconnect", DT_QUAD, R_NONE, OPT_POPRECONNECT, M_ASKYES },
2074 ** Controls whether or not Mutt will try to reconnect to the POP server if
2075 ** the connection is lost.
2077 { "pop_user", DT_STR, R_NONE, UL &PopUser, 0 },
2080 ** Your login name on the POP server.
2082 ** This variable defaults to your user name on the local machine.
2084 #endif /* USE_POP */
2085 { "post_indent_string",DT_STR, R_NONE, UL &PostIndentString, UL "" },
2088 ** Similar to the $$attribution variable, Mutt will append this
2089 ** string after the inclusion of a message which is being replied to.
2091 { "post_indent_str", DT_SYN, R_NONE, UL "post_indent_string", 0 },
2094 { "postpone", DT_QUAD, R_NONE, OPT_POSTPONE, M_ASKYES },
2097 ** Controls whether or not messages are saved in the $$postponed
2098 ** mailbox when you elect not to send immediately.
2100 ** Also see the $$recall variable.
2102 { "postponed", DT_PATH, R_INDEX, UL &Postponed, UL "~/postponed" },
2105 ** Mutt allows you to indefinitely ``$postpone sending a message'' which
2106 ** you are editing. When you choose to postpone a message, Mutt saves it
2107 ** in the mailbox specified by this variable.
2109 ** Also see the $$postpone variable.
2112 { "preconnect", DT_STR, R_NONE, UL &Preconnect, UL 0},
2115 ** If \fIset\fP, a shell command to be executed if mutt fails to establish
2116 ** a connection to the server. This is useful for setting up secure
2117 ** connections, e.g. with \fCssh(1)\fP. If the command returns a nonzero
2118 ** status, mutt gives up opening the server. Example:
2120 ** set preconnect="ssh -f -q -L 1234:mailhost.net:143 mailhost.net \(rs
2121 ** sleep 20 < /dev/null > /dev/null"
2124 ** Mailbox ``foo'' on ``mailhost.net'' can now be reached
2125 ** as ``{localhost:1234}foo''.
2127 ** Note: For this example to work, you must be able to log in to the
2128 ** remote machine without having to enter a password.
2130 #endif /* USE_SOCKET */
2131 { "print", DT_QUAD, R_NONE, OPT_PRINT, M_ASKNO },
2134 ** Controls whether or not Mutt really prints messages.
2135 ** This is set to ``ask-no'' by default, because some people
2136 ** accidentally hit ``p'' often.
2138 { "print_command", DT_PATH, R_NONE, UL &PrintCmd, UL "lpr" },
2141 ** This specifies the command pipe that should be used to print messages.
2143 { "print_cmd", DT_SYN, R_NONE, UL "print_command", 0 },
2146 { "print_decode", DT_BOOL, R_NONE, OPTPRINTDECODE, 1 },
2149 ** Used in connection with the \fC<print-message>\fP command. If this
2150 ** option is \fIset\fP, the message is decoded before it is passed to the
2151 ** external command specified by $$print_command. If this option
2152 ** is \fIunset\fP, no processing will be applied to the message when
2153 ** printing it. The latter setting may be useful if you are using
2154 ** some advanced printer filter which is able to properly format
2155 ** e-mail messages for printing.
2157 { "print_split", DT_BOOL, R_NONE, OPTPRINTSPLIT, 0 },
2160 ** Used in connection with the \fC<print-message>\fP command. If this option
2161 ** is \fIset\fP, the command specified by $$print_command is executed once for
2162 ** each message which is to be printed. If this option is \fIunset\fP,
2163 ** the command specified by $$print_command is executed only once, and
2164 ** all the messages are concatenated, with a form feed as the message
2167 ** Those who use the \fCenscript\fP(1) program's mail-printing mode will
2168 ** most likely want to \fIset\fP this option.
2170 { "prompt_after", DT_BOOL, R_NONE, OPTPROMPTAFTER, 1 },
2173 ** If you use an \fIexternal\fP $$pager, setting this variable will
2174 ** cause Mutt to prompt you for a command when the pager exits rather
2175 ** than returning to the index menu. If \fIunset\fP, Mutt will return to the
2176 ** index menu when the external pager exits.
2178 { "query_command", DT_PATH, R_NONE, UL &QueryCmd, UL "" },
2181 ** This specifies the command Mutt will use to make external address
2182 ** queries. The string may contain a ``%s'', which will be substituted
2183 ** with the query string the user types. Mutt will add quotes around the
2184 ** string substituted for ``%s'' automatically according to shell quoting
2185 ** rules, so you should avoid adding your own. If no ``%s'' is found in
2186 ** the string, Mutt will append the user's query to the end of the string.
2187 ** See ``$query'' for more information.
2189 { "query_format", DT_STR, R_NONE, UL &QueryFormat, UL "%4c %t %-25.25a %-25.25n %?e?(%e)?" },
2192 ** This variable describes the format of the ``query'' menu. The
2193 ** following \fCprintf(3)\fP-style sequences are understood:
2195 ** .dt %a .dd destination address
2196 ** .dt %c .dd current entry number
2197 ** .dt %e .dd extra information *
2198 ** .dt %n .dd destination name
2199 ** .dt %t .dd ``*'' if current entry is tagged, a space otherwise
2200 ** .dt %>X .dd right justify the rest of the string and pad with ``X''
2201 ** .dt %|X .dd pad to the end of the line with ``X''
2202 ** .dt %*X .dd soft-fill with character ``X'' as pad
2205 ** For an explanation of ``soft-fill'', see the $$index_format documentation.
2207 ** * = can be optionally printed if nonzero, see the $$status_format documentation.
2209 { "quit", DT_QUAD, R_NONE, OPT_QUIT, M_YES },
2212 ** This variable controls whether ``quit'' and ``exit'' actually quit
2213 ** from mutt. If this option is \fIset\fP, they do quit, if it is \fIunset\fP, they
2214 ** have no effect, and if it is set to \fIask-yes\fP or \fIask-no\fP, you are
2215 ** prompted for confirmation when you try to quit.
2217 { "quote_regexp", DT_RX, R_PAGER, UL &QuoteRegexp, UL "^([ \t]*[|>:}#])+" },
2220 ** A regular expression used in the internal pager to determine quoted
2221 ** sections of text in the body of a message. Quoted text may be filtered
2222 ** out using the \fC<toggle-quoted>\fP command, or colored according to the
2223 ** ``color quoted'' family of directives.
2225 ** Higher levels of quoting may be colored differently (``color quoted1'',
2226 ** ``color quoted2'', etc.). The quoting level is determined by removing
2227 ** the last character from the matched text and recursively reapplying
2228 ** the regular expression until it fails to produce a match.
2230 ** Match detection may be overridden by the $$smileys regular expression.
2232 { "read_inc", DT_NUM, R_NONE, UL &ReadInc, 10 },
2235 ** If set to a value greater than 0, Mutt will display which message it
2236 ** is currently on when reading a mailbox or when performing search actions
2237 ** such as search and limit. The message is printed after
2238 ** this many messages have been read or searched (e.g., if set to 25, Mutt will
2239 ** print a message when it is at message 25, and then again when it gets
2240 ** to message 50). This variable is meant to indicate progress when
2241 ** reading or searching large mailboxes which may take some time.
2242 ** When set to 0, only a single message will appear before the reading
2245 ** Also see the $$write_inc, $$net_inc and $$time_inc variables and the
2246 ** ``$tuning'' section of the manual for performance considerations.
2248 { "read_only", DT_BOOL, R_NONE, OPTREADONLY, 0 },
2251 ** If \fIset\fP, all folders are opened in read-only mode.
2253 { "realname", DT_STR, R_BOTH, UL &Realname, 0 },
2256 ** This variable specifies what ``real'' or ``personal'' name should be used
2257 ** when sending messages.
2259 ** By default, this is the GECOS field from \fC/etc/passwd\fP. Note that this
2260 ** variable will \fInot\fP be used when the user has set a real name
2261 ** in the $$from variable.
2263 { "recall", DT_QUAD, R_NONE, OPT_RECALL, M_ASKYES },
2266 ** Controls whether or not Mutt recalls postponed messages
2267 ** when composing a new message.
2269 ** \fISetting\fP this variable to is not generally useful, and thus not
2272 ** Also see $$postponed variable.
2274 { "record", DT_PATH, R_NONE, UL &Outbox, UL "~/sent" },
2277 ** This specifies the file into which your outgoing messages should be
2278 ** appended. (This is meant as the primary method for saving a copy of
2279 ** your messages, but another way to do this is using the ``$my_hdr''
2280 ** command to create a ``Bcc:'' field with your email address in it.)
2282 ** The value of \fI$$record\fP is overridden by the $$force_name and
2283 ** $$save_name variables, and the ``$fcc-hook'' command.
2285 { "reply_regexp", DT_RX, R_INDEX|R_RESORT, UL &ReplyRegexp, UL "^(re([\\[0-9\\]+])*|aw):[ \t]*" },
2288 ** A regular expression used to recognize reply messages when threading
2289 ** and replying. The default value corresponds to the English "Re:" and
2290 ** the German "Aw:".
2292 { "reply_self", DT_BOOL, R_NONE, OPTREPLYSELF, 0 },
2295 ** If \fIunset\fP and you are replying to a message sent by you, Mutt will
2296 ** assume that you want to reply to the recipients of that message rather
2297 ** than to yourself.
2299 ** Also see the ``$alternates'' command.
2301 { "reply_to", DT_QUAD, R_NONE, OPT_REPLYTO, M_ASKYES },
2304 ** If \fIset\fP, when replying to a message, Mutt will use the address listed
2305 ** in the Reply-to: header as the recipient of the reply. If \fIunset\fP,
2306 ** it will use the address in the From: header field instead. This
2307 ** option is useful for reading a mailing list that sets the Reply-To:
2308 ** header field to the list address and you want to send a private
2309 ** message to the author of a message.
2311 { "resolve", DT_BOOL, R_NONE, OPTRESOLVE, 1 },
2314 ** When \fIset\fP, the cursor will be automatically advanced to the next
2315 ** (possibly undeleted) message whenever a command that modifies the
2316 ** current message is executed.
2318 { "reverse_alias", DT_BOOL, R_BOTH, OPTREVALIAS, 0 },
2321 ** This variable controls whether or not Mutt will display the ``personal''
2322 ** name from your aliases in the index menu if it finds an alias that
2323 ** matches the message's sender. For example, if you have the following
2326 ** alias juser abd30425@somewhere.net (Joe User)
2329 ** and then you receive mail which contains the following header:
2331 ** From: abd30425@somewhere.net
2334 ** It would be displayed in the index menu as ``Joe User'' instead of
2335 ** ``abd30425@somewhere.net.'' This is useful when the person's e-mail
2336 ** address is not human friendly.
2338 { "reverse_name", DT_BOOL, R_BOTH, OPTREVNAME, 0 },
2341 ** It may sometimes arrive that you receive mail to a certain machine,
2342 ** move the messages to another machine, and reply to some the messages
2343 ** from there. If this variable is \fIset\fP, the default \fIFrom:\fP line of
2344 ** the reply messages is built using the address where you received the
2345 ** messages you are replying to \fBif\fP that address matches your
2346 ** ``$alternates''. If the variable is \fIunset\fP, or the address that would be
2347 ** used doesn't match your ``$alternates'', the \fIFrom:\fP line will use
2348 ** your address on the current machine.
2350 ** Also see the ``$alternates'' command.
2352 { "reverse_realname", DT_BOOL, R_BOTH, OPTREVREAL, 1 },
2355 ** This variable fine-tunes the behavior of the $$reverse_name feature.
2356 ** When it is \fIset\fP, mutt will use the address from incoming messages as-is,
2357 ** possibly including eventual real names. When it is \fIunset\fP, mutt will
2358 ** override any such real names with the setting of the $$realname variable.
2360 { "rfc2047_parameters", DT_BOOL, R_NONE, OPTRFC2047PARAMS, 0 },
2363 ** When this variable is \fIset\fP, Mutt will decode RFC2047-encoded MIME
2364 ** parameters. You want to set this variable when mutt suggests you
2365 ** to save attachments to files named like:
2367 ** =?iso-8859-1?Q?file=5F=E4=5F991116=2Ezip?=
2370 ** When this variable is \fIset\fP interactively, the change won't be
2371 ** active until you change folders.
2373 ** Note that this use of RFC2047's encoding is explicitly
2374 ** prohibited by the standard, but nevertheless encountered in the
2377 ** Also note that setting this parameter will \fInot\fP have the effect
2378 ** that mutt \fIgenerates\fP this kind of encoding. Instead, mutt will
2379 ** unconditionally use the encoding specified in RFC2231.
2381 { "save_address", DT_BOOL, R_NONE, OPTSAVEADDRESS, 0 },
2384 ** If \fIset\fP, mutt will take the sender's full address when choosing a
2385 ** default folder for saving a mail. If $$save_name or $$force_name
2386 ** is \fIset\fP too, the selection of the Fcc folder will be changed as well.
2388 { "save_empty", DT_BOOL, R_NONE, OPTSAVEEMPTY, 1 },
2391 ** When \fIunset\fP, mailboxes which contain no saved messages will be removed
2392 ** when closed (the exception is $$spoolfile which is never removed).
2393 ** If \fIset\fP, mailboxes are never removed.
2395 ** \fBNote:\fP This only applies to mbox and MMDF folders, Mutt does not
2396 ** delete MH and Maildir directories.
2398 { "save_history", DT_NUM, R_NONE, UL &SaveHist, 0 },
2401 ** This variable controls the size of the history (per category) saved in the
2402 ** $$history_file file.
2404 { "save_name", DT_BOOL, R_NONE, OPTSAVENAME, 0 },
2407 ** This variable controls how copies of outgoing messages are saved.
2408 ** When \fIset\fP, a check is made to see if a mailbox specified by the
2409 ** recipient address exists (this is done by searching for a mailbox in
2410 ** the $$folder directory with the \fIusername\fP part of the
2411 ** recipient address). If the mailbox exists, the outgoing message will
2412 ** be saved to that mailbox, otherwise the message is saved to the
2413 ** $$record mailbox.
2415 ** Also see the $$force_name variable.
2417 { "score", DT_BOOL, R_NONE, OPTSCORE, 1 },
2420 ** When this variable is \fIunset\fP, scoring is turned off. This can
2421 ** be useful to selectively disable scoring for certain folders when the
2422 ** $$score_threshold_delete variable and related are used.
2425 { "score_threshold_delete", DT_NUM, R_NONE, UL &ScoreThresholdDelete, UL -1 },
2428 ** Messages which have been assigned a score equal to or lower than the value
2429 ** of this variable are automatically marked for deletion by mutt. Since
2430 ** mutt scores are always greater than or equal to zero, the default setting
2431 ** of this variable will never mark a message for deletion.
2433 { "score_threshold_flag", DT_NUM, R_NONE, UL &ScoreThresholdFlag, 9999 },
2436 ** Messages which have been assigned a score greater than or equal to this
2437 ** variable's value are automatically marked "flagged".
2439 { "score_threshold_read", DT_NUM, R_NONE, UL &ScoreThresholdRead, UL -1 },
2442 ** Messages which have been assigned a score equal to or lower than the value
2443 ** of this variable are automatically marked as read by mutt. Since
2444 ** mutt scores are always greater than or equal to zero, the default setting
2445 ** of this variable will never mark a message read.
2447 { "search_context", DT_NUM, R_NONE, UL &SearchContext, UL 0 },
2450 ** For the pager, this variable specifies the number of lines shown
2451 ** before search results. By default, search results will be top-aligned.
2453 { "send_charset", DT_STR, R_NONE, UL &SendCharset, UL "us-ascii:iso-8859-1:utf-8" },
2456 ** A colon-delimited list of character sets for outgoing messages. Mutt will use the
2457 ** first character set into which the text can be converted exactly.
2458 ** If your $$charset is not ``iso-8859-1'' and recipients may not
2459 ** understand ``UTF-8'', it is advisable to include in the list an
2460 ** appropriate widely used standard character set (such as
2461 ** ``iso-8859-2'', ``koi8-r'' or ``iso-2022-jp'') either instead of or after
2464 ** In case the text cannot be converted into one of these exactly,
2465 ** mutt uses $$charset as a fallback.
2467 { "sendmail", DT_PATH, R_NONE, UL &Sendmail, UL SENDMAIL " -oem -oi" },
2470 ** Specifies the program and arguments used to deliver mail sent by Mutt.
2471 ** Mutt expects that the specified program interprets additional
2472 ** arguments as recipient addresses.
2474 { "sendmail_wait", DT_NUM, R_NONE, UL &SendmailWait, 0 },
2477 ** Specifies the number of seconds to wait for the $$sendmail process
2478 ** to finish before giving up and putting delivery in the background.
2480 ** Mutt interprets the value of this variable as follows:
2482 ** .dt >0 .dd number of seconds to wait for sendmail to finish before continuing
2483 ** .dt 0 .dd wait forever for sendmail to finish
2484 ** .dt <0 .dd always put sendmail in the background without waiting
2487 ** Note that if you specify a value other than 0, the output of the child
2488 ** process will be put in a temporary file. If there is some error, you
2489 ** will be informed as to where to find the output.
2491 { "shell", DT_PATH, R_NONE, UL &Shell, 0 },
2494 ** Command to use when spawning a subshell. By default, the user's login
2495 ** shell from \fC/etc/passwd\fP is used.
2497 { "sig_dashes", DT_BOOL, R_NONE, OPTSIGDASHES, 1 },
2500 ** If \fIset\fP, a line containing ``-- '' (note the trailing space) will be inserted before your
2501 ** $$signature. It is \fBstrongly\fP recommended that you not \fIunset\fP
2502 ** this variable unless your signature contains just your name. The
2503 ** reason for this is because many software packages use ``-- \n'' to
2504 ** detect your signature. For example, Mutt has the ability to highlight
2505 ** the signature in a different color in the built-in pager.
2507 { "sig_on_top", DT_BOOL, R_NONE, OPTSIGONTOP, 0},
2510 ** If \fIset\fP, the signature will be included before any quoted or forwarded
2511 ** text. It is \fBstrongly\fP recommended that you do not set this variable
2512 ** unless you really know what you are doing, and are prepared to take
2513 ** some heat from netiquette guardians.
2515 { "signature", DT_PATH, R_NONE, UL &Signature, UL "~/.signature" },
2518 ** Specifies the filename of your signature, which is appended to all
2519 ** outgoing messages. If the filename ends with a pipe (``|''), it is
2520 ** assumed that filename is a shell command and input should be read from
2521 ** its standard output.
2523 { "simple_search", DT_STR, R_NONE, UL &SimpleSearch, UL "~f %s | ~s %s" },
2526 ** Specifies how Mutt should expand a simple search into a real search
2527 ** pattern. A simple search is one that does not contain any of the ``~'' pattern
2528 ** operators. See ``$patterns'' for more information on search patterns.
2530 ** For example, if you simply type ``joe'' at a search or limit prompt, Mutt
2531 ** will automatically expand it to the value specified by this variable by
2532 ** replacing ``%s'' with the supplied string.
2533 ** For the default value, ``joe'' would be expanded to: ``~f joe | ~s joe''.
2535 { "sleep_time", DT_NUM, R_NONE, UL &SleepTime, 1 },
2538 ** Specifies time, in seconds, to pause while displaying certain informational
2539 ** messages, while moving from folder to folder and after expunging
2540 ** messages from the current folder. The default is to pause one second, so
2541 ** a value of zero for this option suppresses the pause.
2543 { "smart_wrap", DT_BOOL, R_PAGER, OPTWRAP, 1 },
2546 ** Controls the display of lines longer than the screen width in the
2547 ** internal pager. If \fIset\fP, long lines are wrapped at a word boundary. If
2548 ** \fIunset\fP, lines are simply wrapped at the screen edge. Also see the
2549 ** $$markers variable.
2551 { "smileys", DT_RX, R_PAGER, UL &Smileys, UL "(>From )|(:[-^]?[][)(><}{|/DP])" },
2554 ** The \fIpager\fP uses this variable to catch some common false
2555 ** positives of $$quote_regexp, most notably smileys and not consider
2556 ** a line quoted text if it also matches $$smileys. This mostly
2557 ** happens at the beginning of a line.
2562 { "smime_ask_cert_label", DT_BOOL, R_NONE, OPTASKCERTLABEL, 1 },
2565 ** This flag controls whether you want to be asked to enter a label
2566 ** for a certificate about to be added to the database or not. It is
2567 ** \fIset\fP by default.
2570 { "smime_ca_location", DT_PATH, R_NONE, UL &SmimeCALocation, 0 },
2573 ** This variable contains the name of either a directory, or a file which
2574 ** contains trusted certificates for use with OpenSSL.
2577 { "smime_certificates", DT_PATH, R_NONE, UL &SmimeCertificates, 0 },
2580 ** Since for S/MIME there is no pubring/secring as with PGP, mutt has to handle
2581 ** storage and retrieval of keys by itself. This is very basic right
2582 ** now, and keys and certificates are stored in two different
2583 ** directories, both named as the hash-value retrieved from
2584 ** OpenSSL. There is an index file which contains mailbox-address
2585 ** keyid pairs, and which can be manually edited. This option points to
2586 ** the location of the certificates.
2589 { "smime_decrypt_command", DT_STR, R_NONE, UL &SmimeDecryptCommand, 0},
2592 ** This format string specifies a command which is used to decrypt
2593 ** \fCapplication/x-pkcs7-mime\fP attachments.
2595 ** The OpenSSL command formats have their own set of \fCprintf(3)\fP-like sequences
2596 ** similar to PGP's:
2598 ** .dt %f .dd Expands to the name of a file containing a message.
2599 ** .dt %s .dd Expands to the name of a file containing the signature part
2600 ** . of a \fCmultipart/signed\fP attachment when verifying it.
2601 ** .dt %k .dd The key-pair specified with $$smime_default_key
2602 ** .dt %c .dd One or more certificate IDs.
2603 ** .dt %a .dd The algorithm used for encryption.
2604 ** .dt %C .dd CA location: Depending on whether $$smime_ca_location
2605 ** . points to a directory or file, this expands to
2606 ** . ``-CApath $$smime_ca_location'' or ``-CAfile $$smime_ca_location''.
2609 ** For examples on how to configure these formats, see the \fCsmime.rc\fP in
2610 ** the \fCsamples/\fP subdirectory which has been installed on your system
2611 ** alongside the documentation.
2614 { "smime_decrypt_use_default_key", DT_BOOL, R_NONE, OPTSDEFAULTDECRYPTKEY, 1 },
2617 ** If \fIset\fP (default) this tells mutt to use the default key for decryption. Otherwise,
2618 ** if managing multiple certificate-key-pairs, mutt will try to use the mailbox-address
2619 ** to determine the key to use. It will ask you to supply a key, if it can't find one.
2622 { "smime_sign_as", DT_SYN, R_NONE, UL "smime_default_key", 0 },
2623 { "smime_default_key", DT_STR, R_NONE, UL &SmimeDefaultKey, 0 },
2626 ** This is the default key-pair to use for signing. This must be set to the
2627 ** keyid (the hash-value that OpenSSL generates) to work properly
2630 { "smime_encrypt_command", DT_STR, R_NONE, UL &SmimeEncryptCommand, 0},
2633 ** This command is used to create encrypted S/MIME messages.
2635 ** This is a format string, see the $$smime_decrypt_command command for
2636 ** possible \fCprintf(3)\fP-like sequences.
2639 { "smime_encrypt_with", DT_STR, R_NONE, UL &SmimeCryptAlg, 0 },
2642 ** This sets the algorithm that should be used for encryption.
2643 ** Valid choices are ``des'', ``des3'', ``rc2-40'', ``rc2-64'', ``rc2-128''.
2644 ** If \fIunset\fP, ``3des'' (TripleDES) is used.
2647 { "smime_get_cert_command", DT_STR, R_NONE, UL &SmimeGetCertCommand, 0},
2650 ** This command is used to extract X509 certificates from a PKCS7 structure.
2652 ** This is a format string, see the $$smime_decrypt_command command for
2653 ** possible \fCprintf(3)\fP-like sequences.
2656 { "smime_get_cert_email_command", DT_STR, R_NONE, UL &SmimeGetCertEmailCommand, 0},
2659 ** This command is used to extract the mail address(es) used for storing
2660 ** X509 certificates, and for verification purposes (to check whether the
2661 ** certificate was issued for the sender's mailbox).
2663 ** This is a format string, see the $$smime_decrypt_command command for
2664 ** possible \fCprintf(3)\fP-like sequences.
2667 { "smime_get_signer_cert_command", DT_STR, R_NONE, UL &SmimeGetSignerCertCommand, 0},
2670 ** This command is used to extract only the signers X509 certificate from a S/MIME
2671 ** signature, so that the certificate's owner may get compared to the
2672 ** email's ``From:'' field.
2674 ** This is a format string, see the $$smime_decrypt_command command for
2675 ** possible \fCprintf(3)\fP-like sequences.
2678 { "smime_import_cert_command", DT_STR, R_NONE, UL &SmimeImportCertCommand, 0},
2681 ** This command is used to import a certificate via smime_keys.
2683 ** This is a format string, see the $$smime_decrypt_command command for
2684 ** possible \fCprintf(3)\fP-like sequences.
2687 { "smime_is_default", DT_BOOL, R_NONE, OPTSMIMEISDEFAULT, 0},
2690 ** The default behavior of mutt is to use PGP on all auto-sign/encryption
2691 ** operations. To override and to use OpenSSL instead this must be \fIset\fP.
2692 ** However, this has no effect while replying, since mutt will automatically
2693 ** select the same application that was used to sign/encrypt the original
2694 ** message. (Note that this variable can be overridden by unsetting $$crypt_autosmime.)
2697 { "smime_keys", DT_PATH, R_NONE, UL &SmimeKeys, 0 },
2700 ** Since for S/MIME there is no pubring/secring as with PGP, mutt has to handle
2701 ** storage and retrieval of keys/certs by itself. This is very basic right now,
2702 ** and stores keys and certificates in two different directories, both
2703 ** named as the hash-value retrieved from OpenSSL. There is an index file
2704 ** which contains mailbox-address keyid pair, and which can be manually
2705 ** edited. This option points to the location of the private keys.
2708 { "smime_pk7out_command", DT_STR, R_NONE, UL &SmimePk7outCommand, 0},
2711 ** This command is used to extract PKCS7 structures of S/MIME signatures,
2712 ** in order to extract the public X509 certificate(s).
2714 ** This is a format string, see the $$smime_decrypt_command command for
2715 ** possible \fCprintf(3)\fP-like sequences.
2718 { "smime_sign_command", DT_STR, R_NONE, UL &SmimeSignCommand, 0},
2721 ** This command is used to created S/MIME signatures of type
2722 ** \fCmultipart/signed\fP, which can be read by all mail clients.
2724 ** This is a format string, see the $$smime_decrypt_command command for
2725 ** possible \fCprintf(3)\fP-like sequences.
2728 { "smime_sign_opaque_command", DT_STR, R_NONE, UL &SmimeSignOpaqueCommand, 0},
2731 ** This command is used to created S/MIME signatures of type
2732 ** \fCapplication/x-pkcs7-signature\fP, which can only be handled by mail
2733 ** clients supporting the S/MIME extension.
2735 ** This is a format string, see the $$smime_decrypt_command command for
2736 ** possible \fCprintf(3)\fP-like sequences.
2739 { "smime_timeout", DT_NUM, R_NONE, UL &SmimeTimeout, 300 },
2742 ** The number of seconds after which a cached passphrase will expire if
2746 { "smime_verify_command", DT_STR, R_NONE, UL &SmimeVerifyCommand, 0},
2749 ** This command is used to verify S/MIME signatures of type \fCmultipart/signed\fP.
2751 ** This is a format string, see the $$smime_decrypt_command command for
2752 ** possible \fCprintf(3)\fP-like sequences.
2755 { "smime_verify_opaque_command", DT_STR, R_NONE, UL &SmimeVerifyOpaqueCommand, 0},
2758 ** This command is used to verify S/MIME signatures of type
2759 ** \fCapplication/x-pkcs7-mime\fP.
2761 ** This is a format string, see the $$smime_decrypt_command command for
2762 ** possible \fCprintf(3)\fP-like sequences.
2767 { "smtp_authenticators", DT_STR, R_NONE, UL &SmtpAuthenticators, UL 0 },
2770 ** This is a colon-delimited list of authentication methods mutt may
2771 ** attempt to use to log in to an SMTP server, in the order mutt should
2772 ** try them. Authentication methods are any SASL mechanism, e.g.
2773 ** ``digest-md5'', ``gssapi'' or ``cram-md5''.
2774 ** This option is case-insensitive. If it is ``unset''
2775 ** (the default) mutt will try all available methods, in order from
2776 ** most-secure to least-secure.
2780 ** set smtp_authenticators="digest-md5:cram-md5"
2783 # endif /* USE_SASL */
2784 { "smtp_pass", DT_STR, R_NONE, UL &SmtpPass, UL 0 },
2787 ** Specifies the password for your SMTP account. If \fIunset\fP, Mutt will
2788 ** prompt you for your password when you first send mail via SMTP.
2789 ** See $$smtp_url to configure mutt to send mail via SMTP.
2791 ** \fBWarning\fP: you should only use this option when you are on a
2792 ** fairly secure machine, because the superuser can read your muttrc even
2793 ** if you are the only one who can read the file.
2795 { "smtp_url", DT_STR, R_NONE, UL &SmtpUrl, UL 0 },
2798 ** Defines the SMTP smarthost where sent messages should relayed for
2799 ** delivery. This should take the form of an SMTP URL, e.g.:
2801 ** smtp[s]://[user[:pass]@]host[:port]
2804 ** where ``[...]'' denotes an optional part.
2805 ** Setting this variable overrides the value of the $$sendmail
2808 #endif /* USE_SMTP */
2809 { "sort", DT_SORT, R_INDEX|R_RESORT, UL &Sort, SORT_DATE },
2812 ** Specifies how to sort messages in the ``index'' menu. Valid values
2815 ** .dd date or date-sent
2816 ** .dd date-received
2818 ** .dd mailbox-order (unsorted)
2827 ** You may optionally use the ``reverse-'' prefix to specify reverse sorting
2828 ** order (example: ``\fCset sort=reverse-date-sent\fP'').
2830 { "sort_alias", DT_SORT|DT_SORT_ALIAS, R_NONE, UL &SortAlias, SORT_ALIAS },
2833 ** Specifies how the entries in the ``alias'' menu are sorted. The
2834 ** following are legal values:
2836 ** .dd address (sort alphabetically by email address)
2837 ** .dd alias (sort alphabetically by alias name)
2838 ** .dd unsorted (leave in order specified in .muttrc)
2841 { "sort_aux", DT_SORT|DT_SORT_AUX, R_INDEX|R_RESORT_BOTH, UL &SortAux, SORT_DATE },
2844 ** When sorting by threads, this variable controls how threads are sorted
2845 ** in relation to other threads, and how the branches of the thread trees
2846 ** are sorted. This can be set to any value that $$sort can, except
2847 ** ``threads'' (in that case, mutt will just use ``date-sent''). You can also
2848 ** specify the ``last-'' prefix in addition to the ``reverse-'' prefix, but ``last-''
2849 ** must come after ``reverse-''. The ``last-'' prefix causes messages to be
2850 ** sorted against its siblings by which has the last descendant, using
2851 ** the rest of $$sort_aux as an ordering. For instance,
2853 ** set sort_aux=last-date-received
2856 ** would mean that if a new message is received in a
2857 ** thread, that thread becomes the last one displayed (or the first, if
2858 ** you have ``\fCset sort=reverse-threads\fP''.)
2860 ** Note: For reversed $$sort
2861 ** order $$sort_aux is reversed again (which is not the right thing to do,
2862 ** but kept to not break any existing configuration setting).
2864 { "sort_browser", DT_SORT|DT_SORT_BROWSER, R_NONE, UL &BrowserSort, SORT_ALPHA },
2867 ** Specifies how to sort entries in the file browser. By default, the
2868 ** entries are sorted alphabetically. Valid values:
2870 ** .dd alpha (alphabetically)
2876 ** You may optionally use the ``reverse-'' prefix to specify reverse sorting
2877 ** order (example: ``\fCset sort_browser=reverse-date\fP'').
2879 { "sort_re", DT_BOOL, R_INDEX|R_RESORT|R_RESORT_INIT, OPTSORTRE, 1 },
2882 ** This variable is only useful when sorting by threads with
2883 ** $$strict_threads \fIunset\fP. In that case, it changes the heuristic
2884 ** mutt uses to thread messages by subject. With $$sort_re \fIset\fP, mutt will
2885 ** only attach a message as the child of another message by subject if
2886 ** the subject of the child message starts with a substring matching the
2887 ** setting of $$reply_regexp. With $$sort_re \fIunset\fP, mutt will attach
2888 ** the message whether or not this is the case, as long as the
2889 ** non-$$reply_regexp parts of both messages are identical.
2891 { "spam_separator", DT_STR, R_NONE, UL &SpamSep, UL "," },
2894 ** This variable controls what happens when multiple spam headers
2895 ** are matched: if \fIunset\fP, each successive header will overwrite any
2896 ** previous matches value for the spam label. If \fIset\fP, each successive
2897 ** match will append to the previous, using this variable's value as a
2900 { "spoolfile", DT_PATH, R_NONE, UL &Spoolfile, 0 },
2903 ** If your spool mailbox is in a non-default place where Mutt cannot find
2904 ** it, you can specify its location with this variable. Mutt will
2905 ** initially set this variable to the value of the environment
2906 ** variable \fC$$$MAIL\fP or \fC$$$MAILDIR\fP if either is defined.
2908 #if defined(USE_SSL)
2909 #ifdef USE_SSL_GNUTLS
2910 { "ssl_ca_certificates_file", DT_PATH, R_NONE, UL &SslCACertFile, 0 },
2913 ** This variable specifies a file containing trusted CA certificates.
2914 ** Any server certificate that is signed with one of these CA
2915 ** certificates is also automatically accepted.
2919 ** set ssl_ca_certificates_file=/etc/ssl/certs/ca-certificates.crt
2922 #endif /* USE_SSL_GNUTLS */
2923 { "ssl_client_cert", DT_PATH, R_NONE, UL &SslClientCert, 0 },
2926 ** The file containing a client certificate and its associated private
2929 { "ssl_force_tls", DT_BOOL, R_NONE, OPTSSLFORCETLS, 0 },
2932 ** If this variable is \fIset\fP, Mutt will require that all connections
2933 ** to remote servers be encrypted. Furthermore it will attempt to
2934 ** negotiate TLS even if the server does not advertise the capability,
2935 ** since it would otherwise have to abort the connection anyway. This
2936 ** option supersedes $$ssl_starttls.
2938 # ifdef USE_SSL_GNUTLS
2939 { "ssl_min_dh_prime_bits", DT_NUM, R_NONE, UL &SslDHPrimeBits, 0 },
2942 ** This variable specifies the minimum acceptable prime size (in bits)
2943 ** for use in any Diffie-Hellman key exchange. A value of 0 will use
2944 ** the default from the GNUTLS library.
2946 # endif /* USE_SSL_GNUTLS */
2947 { "ssl_starttls", DT_QUAD, R_NONE, OPT_SSLSTARTTLS, M_YES },
2950 ** If \fIset\fP (the default), mutt will attempt to use \fCSTARTTLS\fP on servers
2951 ** advertising the capability. When \fIunset\fP, mutt will not attempt to
2952 ** use \fCSTARTTLS\fP regardless of the server's capabilities.
2954 # ifdef USE_SSL_OPENSSL
2955 { "ssl_use_sslv2", DT_BOOL, R_NONE, OPTSSLV2, 0 },
2958 ** This variable specifies whether to attempt to use SSLv2 in the
2959 ** SSL authentication process.
2961 # endif /* defined USE_SSL_OPENSSL */
2962 { "ssl_use_sslv3", DT_BOOL, R_NONE, OPTSSLV3, 1 },
2965 ** This variable specifies whether to attempt to use SSLv3 in the
2966 ** SSL authentication process.
2968 { "ssl_use_tlsv1", DT_BOOL, R_NONE, OPTTLSV1, 1 },
2971 ** This variable specifies whether to attempt to use TLSv1 in the
2972 ** SSL authentication process.
2974 #ifdef USE_SSL_OPENSSL
2975 { "ssl_usesystemcerts", DT_BOOL, R_NONE, OPTSSLSYSTEMCERTS, 1 },
2978 ** If set to \fIyes\fP, mutt will use CA certificates in the
2979 ** system-wide certificate store when checking if a server certificate
2980 ** is signed by a trusted CA.
2983 { "ssl_verify_dates", DT_BOOL, R_NONE, OPTSSLVERIFYDATES, 1 },
2986 ** If \fIset\fP (the default), mutt will not automatically accept a server
2987 ** certificate that is either not yet valid or already expired. You should
2988 ** only unset this for particular known hosts, using the
2989 ** \fC$<account-hook>\fP function.
2991 { "ssl_verify_host", DT_BOOL, R_NONE, OPTSSLVERIFYHOST, 1 },
2994 ** If \fIset\fP (the default), mutt will not automatically accept a server
2995 ** certificate whose host name does not match the host used in your folder
2996 ** URL. You should only unset this for particular known hosts, using
2997 ** the \fC$<account-hook>\fP function.
2999 #endif /* defined(USE_SSL) */
3000 { "status_chars", DT_STR, R_BOTH, UL &StChars, UL "-*%A" },
3003 ** Controls the characters used by the ``%r'' indicator in
3004 ** $$status_format. The first character is used when the mailbox is
3005 ** unchanged. The second is used when the mailbox has been changed, and
3006 ** it needs to be resynchronized. The third is used if the mailbox is in
3007 ** read-only mode, or if the mailbox will not be written when exiting
3008 ** that mailbox (You can toggle whether to write changes to a mailbox
3009 ** with the \fC<toggle-write>\fP operation, bound by default to ``%''). The fourth
3010 ** is used to indicate that the current folder has been opened in attach-
3011 ** message mode (Certain operations like composing a new mail, replying,
3012 ** forwarding, etc. are not permitted in this mode).
3014 { "status_format", DT_STR, R_BOTH, UL &Status, UL "-%r-Mutt: %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)---" },
3017 ** Controls the format of the status line displayed in the ``index''
3018 ** menu. This string is similar to $$index_format, but has its own
3019 ** set of \fCprintf(3)\fP-like sequences:
3021 ** .dt %b .dd number of mailboxes with new mail *
3022 ** .dt %d .dd number of deleted messages *
3023 ** .dt %f .dd the full pathname of the current mailbox
3024 ** .dt %F .dd number of flagged messages *
3025 ** .dt %h .dd local hostname
3026 ** .dt %l .dd size (in bytes) of the current mailbox *
3027 ** .dt %L .dd size (in bytes) of the messages shown
3028 ** (i.e., which match the current limit) *
3029 ** .dt %m .dd the number of messages in the mailbox *
3030 ** .dt %M .dd the number of messages shown (i.e., which match the current limit) *
3031 ** .dt %n .dd number of new messages in the mailbox *
3032 ** .dt %o .dd number of old unread messages *
3033 ** .dt %p .dd number of postponed messages *
3034 ** .dt %P .dd percentage of the way through the index
3035 ** .dt %r .dd modified/read-only/won't-write/attach-message indicator,
3036 ** according to $$status_chars
3037 ** .dt %s .dd current sorting mode ($$sort)
3038 ** .dt %S .dd current aux sorting method ($$sort_aux)
3039 ** .dt %t .dd number of tagged messages *
3040 ** .dt %u .dd number of unread messages *
3041 ** .dt %v .dd Mutt version string
3042 ** .dt %V .dd currently active limit pattern, if any *
3043 ** .dt %>X .dd right justify the rest of the string and pad with ``X''
3044 ** .dt %|X .dd pad to the end of the line with ``X''
3045 ** .dt %*X .dd soft-fill with character ``X'' as pad
3048 ** For an explanation of ``soft-fill'', see the $$index_format documentation.
3050 ** * = can be optionally printed if nonzero
3052 ** Some of the above sequences can be used to optionally print a string
3053 ** if their value is nonzero. For example, you may only want to see the
3054 ** number of flagged messages if such messages exist, since zero is not
3055 ** particularly meaningful. To optionally print a string based upon one
3056 ** of the above sequences, the following construct is used:
3058 ** \fC%?<sequence_char>?<optional_string>?\fP
3060 ** where \fIsequence_char\fP is a character from the table above, and
3061 ** \fIoptional_string\fP is the string you would like printed if
3062 ** \fIsequence_char\fP is nonzero. \fIoptional_string\fP \fBmay\fP contain
3063 ** other sequences as well as normal text, but you may \fBnot\fP nest
3064 ** optional strings.
3066 ** Here is an example illustrating how to optionally print the number of
3067 ** new messages in a mailbox:
3069 ** \fC%?n?%n new messages.?\fP
3071 ** You can also switch between two strings using the following construct:
3073 ** \fC%?<sequence_char>?<if_string>&<else_string>?\fP
3075 ** If the value of \fIsequence_char\fP is non-zero, \fIif_string\fP will
3076 ** be expanded, otherwise \fIelse_string\fP will be expanded.
3078 ** You can force the result of any \fCprintf(3)\fP-like sequence to be lowercase
3079 ** by prefixing the sequence character with an underscore (``_'') sign.
3080 ** For example, if you want to display the local hostname in lowercase,
3081 ** you would use: ``\fC%_h\fP''.
3083 ** If you prefix the sequence character with a colon (``:'') character, mutt
3084 ** will replace any dots in the expansion by underscores. This might be helpful
3085 ** with IMAP folders that don't like dots in folder names.
3087 { "status_on_top", DT_BOOL, R_BOTH, OPTSTATUSONTOP, 0 },
3090 ** Setting this variable causes the ``status bar'' to be displayed on
3091 ** the first line of the screen rather than near the bottom. If $$help
3092 ** is \fIset\fP, too it'll be placed at the bottom.
3094 { "strict_threads", DT_BOOL, R_RESORT|R_RESORT_INIT|R_INDEX, OPTSTRICTTHREADS, 0 },
3097 ** If \fIset\fP, threading will only make use of the ``In-Reply-To'' and
3098 ** ``References:'' fields when you $$sort by message threads. By
3099 ** default, messages with the same subject are grouped together in
3100 ** ``pseudo threads.''. This may not always be desirable, such as in a
3101 ** personal mailbox where you might have several unrelated messages with
3102 ** the subjects like ``hi'' which will get grouped together. See also
3103 ** $$sort_re for a less drastic way of controlling this
3106 { "suspend", DT_BOOL, R_NONE, OPTSUSPEND, 1 },
3109 ** When \fIunset\fP, mutt won't stop when the user presses the terminal's
3110 ** \fIsusp\fP key, usually ``^Z''. This is useful if you run mutt
3111 ** inside an xterm using a command like ``\fCxterm -e mutt\fP''.
3113 { "text_flowed", DT_BOOL, R_NONE, OPTTEXTFLOWED, 0 },
3116 ** When \fIset\fP, mutt will generate ``format=flowed'' bodies with a content type
3117 ** of ``\fCtext/plain; format=flowed\fP''.
3118 ** This format is easier to handle for some mailing software, and generally
3119 ** just looks like ordinary text. To actually make use of this format's
3120 ** features, you'll need support in your editor.
3122 ** Note that $$indent_string is ignored when this option is \fIset\fP.
3124 { "thorough_search", DT_BOOL, R_NONE, OPTTHOROUGHSRC, 1 },
3127 ** Affects the \fC~b\fP and \fC~h\fP search operations described in
3128 ** section ``$patterns''. If \fIset\fP, the headers and body/attachments of
3129 ** messages to be searched are decoded before searching. If \fIunset\fP,
3130 ** messages are searched as they appear in the folder.
3132 ** Users searching attachments or for non-ASCII characters should \fIset\fP
3133 ** this value because decoding also includes MIME parsing/decoding and possible
3134 ** character set conversions. Otherwise mutt will attempt to match against the
3135 ** raw message received (for example quoted-printable encoded or with encoded
3136 ** headers) which may lead to incorrect search results.
3138 { "thread_received", DT_BOOL, R_RESORT|R_RESORT_INIT|R_INDEX, OPTTHREADRECEIVED, 0 },
3141 ** When \fIset\fP, mutt uses the date received rather than the date sent
3142 ** to thread messages by subject.
3144 { "tilde", DT_BOOL, R_PAGER, OPTTILDE, 0 },
3147 ** When \fIset\fP, the internal-pager will pad blank lines to the bottom of the
3148 ** screen with a tilde (``~'').
3150 { "time_inc", DT_NUM, R_NONE, UL &TimeInc, 0 },
3153 ** Along with $$read_inc, $$write_inc, and $$net_inc, this
3154 ** variable controls the frequency with which progress updates are
3155 ** displayed. It suppresses updates less than $$time_inc milliseconds
3156 ** apart. This can improve throughput on systems with slow terminals,
3157 ** or when running mutt on a remote system.
3159 ** Also see the ``$tuning'' section of the manual for performance considerations.
3161 { "timeout", DT_NUM, R_NONE, UL &Timeout, 600 },
3164 ** When Mutt is waiting for user input either idling in menus or
3165 ** in an interactive prompt, Mutt would block until input is
3166 ** present. Depending on the context, this would prevent certain
3167 ** operations from working, like checking for new mail or keeping
3168 ** an IMAP connection alive.
3170 ** This variable controls how many seconds Mutt will at most wait
3171 ** until it aborts waiting for input, performs these operations and
3172 ** continues to wait for input.
3174 ** A value of zero or less will cause Mutt to never time out.
3176 { "tmpdir", DT_PATH, R_NONE, UL &Tempdir, 0 },
3179 ** This variable allows you to specify where Mutt will place its
3180 ** temporary files needed for displaying and composing messages. If
3181 ** this variable is not set, the environment variable \fC$$$TMPDIR\fP is
3182 ** used. If \fC$$$TMPDIR\fP is not set then ``\fC/tmp\fP'' is used.
3184 { "to_chars", DT_STR, R_BOTH, UL &Tochars, UL " +TCFL" },
3187 ** Controls the character used to indicate mail addressed to you. The
3188 ** first character is the one used when the mail is \fInot\fP addressed to your
3189 ** address. The second is used when you are the only
3190 ** recipient of the message. The third is when your address
3191 ** appears in the ``To:'' header field, but you are not the only recipient of
3192 ** the message. The fourth character is used when your
3193 ** address is specified in the ``Cc:'' header field, but you are not the only
3194 ** recipient. The fifth character is used to indicate mail that was sent
3195 ** by \fIyou\fP. The sixth character is used to indicate when a mail
3196 ** was sent to a mailing-list you subscribe to.
3199 { "tunnel", DT_STR, R_NONE, UL &Tunnel, UL 0 },
3202 ** Setting this variable will cause mutt to open a pipe to a command
3203 ** instead of a raw socket. You may be able to use this to set up
3204 ** preauthenticated connections to your IMAP/POP3/SMTP server. Example:
3206 ** set tunnel="ssh -q mailhost.net /usr/local/libexec/imapd"
3209 ** Note: For this example to work you must be able to log in to the remote
3210 ** machine without having to enter a password.
3212 ** When set, Mutt uses the tunnel for all remote connections.
3213 ** Please see ``$account-hook'' in the manual for how to use different
3214 ** tunnel commands per connection.
3217 { "uncollapse_jump", DT_BOOL, R_NONE, OPTUNCOLLAPSEJUMP, 0 },
3220 ** When \fIset\fP, Mutt will jump to the next unread message, if any,
3221 ** when the current thread is \fIun\fPcollapsed.
3223 { "use_8bitmime", DT_BOOL, R_NONE, OPTUSE8BITMIME, 0 },
3226 ** \fBWarning:\fP do not set this variable unless you are using a version
3227 ** of sendmail which supports the \fC-B8BITMIME\fP flag (such as sendmail
3228 ** 8.8.x) or you may not be able to send mail.
3230 ** When \fIset\fP, Mutt will invoke $$sendmail with the \fC-B8BITMIME\fP
3231 ** flag when sending 8-bit messages to enable ESMTP negotiation.
3233 { "use_domain", DT_BOOL, R_NONE, OPTUSEDOMAIN, 1 },
3236 ** When \fIset\fP, Mutt will qualify all local addresses (ones without the
3237 ** ``@host'' portion) with the value of $$hostname. If \fIunset\fP, no
3238 ** addresses will be qualified.
3240 { "use_envelope_from", DT_BOOL, R_NONE, OPTENVFROM, 0 },
3243 ** When \fIset\fP, mutt will set the \fIenvelope\fP sender of the message.
3244 ** If $$envelope_from_address is \fIset\fP, it will be used as the sender
3245 ** address. If \fIunset\fP, mutt will attempt to derive the sender from the
3246 ** ``From:'' header.
3248 ** Note that this information is passed to sendmail command using the
3249 ** \fC-f\fP command line switch. Therefore setting this option is not useful
3250 ** if the $$sendmail variable already contains \fC-f\fP or if the
3251 ** executable pointed to by $$sendmail doesn't support the \fC-f\fP switch.
3253 { "envelope_from", DT_SYN, R_NONE, UL "use_envelope_from", 0 },
3256 { "use_from", DT_BOOL, R_NONE, OPTUSEFROM, 1 },
3259 ** When \fIset\fP, Mutt will generate the ``From:'' header field when
3260 ** sending messages. If \fIunset\fP, no ``From:'' header field will be
3261 ** generated unless the user explicitly sets one using the ``$my_hdr''
3265 { "use_idn", DT_BOOL, R_BOTH, OPTUSEIDN, 1},
3268 ** When \fIset\fP, Mutt will show you international domain names decoded.
3269 ** Note: You can use IDNs for addresses even if this is \fIunset\fP.
3270 ** This variable only affects decoding.
3272 #endif /* HAVE_LIBIDN */
3273 #ifdef HAVE_GETADDRINFO
3274 { "use_ipv6", DT_BOOL, R_NONE, OPTUSEIPV6, 1},
3277 ** When \fIset\fP, Mutt will look for IPv6 addresses of hosts it tries to
3278 ** contact. If this option is \fIunset\fP, Mutt will restrict itself to IPv4 addresses.
3279 ** Normally, the default should work.
3281 #endif /* HAVE_GETADDRINFO */
3282 { "user_agent", DT_BOOL, R_NONE, OPTXMAILER, 1},
3285 ** When \fIset\fP, mutt will add a ``User-Agent:'' header to outgoing
3286 ** messages, indicating which version of mutt was used for composing
3289 { "visual", DT_PATH, R_NONE, UL &Visual, 0 },
3292 ** Specifies the visual editor to invoke when the ``\fC~v\fP'' command is
3293 ** given in the built-in editor.
3295 { "wait_key", DT_BOOL, R_NONE, OPTWAITKEY, 1 },
3298 ** Controls whether Mutt will ask you to press a key after an external command
3299 ** has been invoked by these functions: \fC<shell-escape>\fP,
3300 ** \fC<pipe-message>\fP, \fC<pipe-entry>\fP, \fC<print-message>\fP,
3301 ** and \fC<print-entry>\fP commands.
3303 ** It is also used when viewing attachments with ``$auto_view'', provided
3304 ** that the corresponding mailcap entry has a \fIneedsterminal\fP flag,
3305 ** and the external program is interactive.
3307 ** When \fIset\fP, Mutt will always ask for a key. When \fIunset\fP, Mutt will wait
3308 ** for a key only if the external command returned a non-zero status.
3310 { "weed", DT_BOOL, R_NONE, OPTWEED, 1 },
3313 ** When \fIset\fP, mutt will weed headers when displaying, forwarding,
3314 ** printing, or replying to messages.
3316 { "wrap", DT_NUM, R_PAGER, UL &Wrap, 0 },
3319 ** When set to a positive value, mutt will wrap text at $$wrap characters.
3320 ** When set to a negative value, mutt will wrap text so that there are $$wrap
3321 ** characters of empty space on the right side of the terminal. Setting it
3322 ** to zero makes mutt wrap at the terminal width.
3324 { "wrap_headers", DT_NUM, R_PAGER, UL &WrapHeaders, 78 },
3327 ** This option specifies the number of characters to use for wrapping
3328 ** an outgoing message's headers. Allowed values are between 78 and 998
3331 ** \fBNote:\fP This option usually shouldn't be changed. RFC5233
3332 ** recommends a line length of 78 (the default), so \fBplease only change
3333 ** this setting when you know what you're doing\fP.
3335 { "wrap_search", DT_BOOL, R_NONE, OPTWRAPSEARCH, 1 },
3338 ** Controls whether searches wrap around the end.
3340 ** When \fIset\fP, searches will wrap around the first (or last) item. When
3341 ** \fIunset\fP, incremental searches will not wrap.
3343 { "wrapmargin", DT_NUM, R_PAGER, UL &Wrap, 0 },
3346 ** (DEPRECATED) Equivalent to setting $$wrap with a negative value.
3348 { "write_bcc", DT_BOOL, R_NONE, OPTWRITEBCC, 1},
3351 ** Controls whether mutt writes out the ``Bcc:'' header when preparing
3352 ** messages to be sent. Exim users may wish to unset this. If mutt
3353 ** is set to deliver directly via SMTP (see $$smtp_url), this
3354 ** option does nothing: mutt will never write out the ``Bcc:'' header
3357 { "write_inc", DT_NUM, R_NONE, UL &WriteInc, 10 },
3360 ** When writing a mailbox, a message will be printed every
3361 ** $$write_inc messages to indicate progress. If set to 0, only a
3362 ** single message will be displayed before writing a mailbox.
3364 ** Also see the $$read_inc, $$net_inc and $$time_inc variables and the
3365 ** ``$tuning'' section of the manual for performance considerations.
3368 { NULL, 0, 0, 0, 0 }
3371 const struct mapping_t SortMethods[] = {
3372 { "date", SORT_DATE },
3373 { "date-sent", SORT_DATE },
3374 { "date-received", SORT_RECEIVED },
3375 { "mailbox-order", SORT_ORDER },
3376 { "subject", SORT_SUBJECT },
3377 { "from", SORT_FROM },
3378 { "size", SORT_SIZE },
3379 { "threads", SORT_THREADS },
3381 { "score", SORT_SCORE },
3382 { "spam", SORT_SPAM },
3386 /* same as SortMethods, but with "threads" replaced by "date" */
3388 const struct mapping_t SortAuxMethods[] = {
3389 { "date", SORT_DATE },
3390 { "date-sent", SORT_DATE },
3391 { "date-received", SORT_RECEIVED },
3392 { "mailbox-order", SORT_ORDER },
3393 { "subject", SORT_SUBJECT },
3394 { "from", SORT_FROM },
3395 { "size", SORT_SIZE },
3396 { "threads", SORT_DATE }, /* note: sort_aux == threads
3400 { "score", SORT_SCORE },
3401 { "spam", SORT_SPAM },
3406 const struct mapping_t SortBrowserMethods[] = {
3407 { "alpha", SORT_SUBJECT },
3408 { "date", SORT_DATE },
3409 { "size", SORT_SIZE },
3410 { "unsorted", SORT_ORDER },
3414 const struct mapping_t SortAliasMethods[] = {
3415 { "alias", SORT_ALIAS },
3416 { "address", SORT_ADDRESS },
3417 { "unsorted", SORT_ORDER },
3421 const struct mapping_t SortKeyMethods[] = {
3422 { "address", SORT_ADDRESS },
3423 { "date", SORT_DATE },
3424 { "keyid", SORT_KEYID },
3425 { "trust", SORT_TRUST },
3430 /* functions used to parse commands in a rc file */
3432 static int parse_list (BUFFER *, BUFFER *, unsigned long, BUFFER *);
3433 static int parse_spam_list (BUFFER *, BUFFER *, unsigned long, BUFFER *);
3434 static int parse_unlist (BUFFER *, BUFFER *, unsigned long, BUFFER *);
3436 static int parse_group (BUFFER *, BUFFER *, unsigned long, BUFFER *);
3438 static int parse_lists (BUFFER *, BUFFER *, unsigned long, BUFFER *);
3439 static int parse_unlists (BUFFER *, BUFFER *, unsigned long, BUFFER *);
3440 static int parse_alias (BUFFER *, BUFFER *, unsigned long, BUFFER *);
3441 static int parse_unalias (BUFFER *, BUFFER *, unsigned long, BUFFER *);
3442 static int parse_ignore (BUFFER *, BUFFER *, unsigned long, BUFFER *);
3443 static int parse_unignore (BUFFER *, BUFFER *, unsigned long, BUFFER *);
3444 static int parse_source (BUFFER *, BUFFER *, unsigned long, BUFFER *);
3445 static int parse_set (BUFFER *, BUFFER *, unsigned long, BUFFER *);
3446 static int parse_my_hdr (BUFFER *, BUFFER *, unsigned long, BUFFER *);
3447 static int parse_unmy_hdr (BUFFER *, BUFFER *, unsigned long, BUFFER *);
3448 static int parse_subscribe (BUFFER *, BUFFER *, unsigned long, BUFFER *);
3449 static int parse_unsubscribe (BUFFER *, BUFFER *, unsigned long, BUFFER *);
3450 static int parse_attachments (BUFFER *, BUFFER *, unsigned long, BUFFER *);
3451 static int parse_unattachments (BUFFER *, BUFFER *, unsigned long, BUFFER *);
3454 static int parse_alternates (BUFFER *, BUFFER *, unsigned long, BUFFER *);
3455 static int parse_unalternates (BUFFER *, BUFFER *, unsigned long, BUFFER *);
3457 /* Parse -group arguments */
3458 static int parse_group_context (group_context_t **ctx, BUFFER *buf, BUFFER *s, unsigned long data, BUFFER *err);
3464 int (*func) (BUFFER *, BUFFER *, unsigned long, BUFFER *);
3468 struct command_t Commands[] = {
3469 { "alternates", parse_alternates, 0 },
3470 { "unalternates", parse_unalternates, 0 },
3472 { "account-hook", mutt_parse_hook, M_ACCOUNTHOOK },
3474 { "alias", parse_alias, 0 },
3475 { "attachments", parse_attachments, 0 },
3476 { "unattachments",parse_unattachments,0 },
3477 { "auto_view", parse_list, UL &AutoViewList },
3478 { "alternative_order", parse_list, UL &AlternativeOrderList},
3479 { "bind", mutt_parse_bind, 0 },
3480 { "charset-hook", mutt_parse_hook, M_CHARSETHOOK },
3482 { "color", mutt_parse_color, 0 },
3483 { "uncolor", mutt_parse_uncolor, 0 },
3485 { "exec", mutt_parse_exec, 0 },
3486 { "fcc-hook", mutt_parse_hook, M_FCCHOOK },
3487 { "fcc-save-hook", mutt_parse_hook, M_FCCHOOK | M_SAVEHOOK },
3488 { "folder-hook", mutt_parse_hook, M_FOLDERHOOK },
3489 { "group", parse_group, M_GROUP },
3490 { "ungroup", parse_group, M_UNGROUP },
3491 { "hdr_order", parse_list, UL &HeaderOrderList },
3493 { "iconv-hook", mutt_parse_hook, M_ICONVHOOK },
3495 { "ignore", parse_ignore, 0 },
3496 { "lists", parse_lists, 0 },
3497 { "macro", mutt_parse_macro, 0 },
3498 { "mailboxes", mutt_parse_mailboxes, M_MAILBOXES },
3499 { "unmailboxes", mutt_parse_mailboxes, M_UNMAILBOXES },
3500 { "message-hook", mutt_parse_hook, M_MESSAGEHOOK },
3501 { "mbox-hook", mutt_parse_hook, M_MBOXHOOK },
3502 { "mime_lookup", parse_list, UL &MimeLookupList },
3503 { "unmime_lookup", parse_unlist, UL &MimeLookupList },
3504 { "mono", mutt_parse_mono, 0 },
3505 { "my_hdr", parse_my_hdr, 0 },
3506 { "pgp-hook", mutt_parse_hook, M_CRYPTHOOK },
3507 { "crypt-hook", mutt_parse_hook, M_CRYPTHOOK },
3508 { "push", mutt_parse_push, 0 },
3509 { "reply-hook", mutt_parse_hook, M_REPLYHOOK },
3510 { "reset", parse_set, M_SET_RESET },
3511 { "save-hook", mutt_parse_hook, M_SAVEHOOK },
3512 { "score", mutt_parse_score, 0 },
3513 { "send-hook", mutt_parse_hook, M_SENDHOOK },
3514 { "send2-hook", mutt_parse_hook, M_SEND2HOOK },
3515 { "set", parse_set, 0 },
3516 { "source", parse_source, 0 },
3517 { "spam", parse_spam_list, M_SPAM },
3518 { "nospam", parse_spam_list, M_NOSPAM },
3519 { "subscribe", parse_subscribe, 0 },
3520 { "toggle", parse_set, M_SET_INV },
3521 { "unalias", parse_unalias, 0 },
3522 { "unalternative_order",parse_unlist, UL &AlternativeOrderList },
3523 { "unauto_view", parse_unlist, UL &AutoViewList },
3524 { "unhdr_order", parse_unlist, UL &HeaderOrderList },
3525 { "unhook", mutt_parse_unhook, 0 },
3526 { "unignore", parse_unignore, 0 },
3527 { "unlists", parse_unlists, 0 },
3528 { "unmono", mutt_parse_unmono, 0 },
3529 { "unmy_hdr", parse_unmy_hdr, 0 },
3530 { "unscore", mutt_parse_unscore, 0 },
3531 { "unset", parse_set, M_SET_UNSET },
3532 { "unsubscribe", parse_unsubscribe, 0 },