init.h 87.4 KB
Newer Older
Thomas Roessler's avatar
Thomas Roessler committed
1
/*
2
 * Copyright (C) 1996-2000 Michael R. Elkins <me@cs.hmc.edu>
Thomas Roessler's avatar
Thomas Roessler committed
3 4 5 6 7 8 9 10 11 12 13 14 15
 * 
 *     This program is free software; you can redistribute it and/or modify
 *     it under the terms of the GNU General Public License as published by
 *     the Free Software Foundation; either version 2 of the License, or
 *     (at your option) any later version.
 * 
 *     This program is distributed in the hope that it will be useful,
 *     but WITHOUT ANY WARRANTY; without even the implied warranty of
 *     MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 *     GNU General Public License for more details.
 * 
 *     You should have received a copy of the GNU General Public License
 *     along with this program; if not, write to the Free Software
16
 *     Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111, USA.
Thomas Roessler's avatar
Thomas Roessler committed
17 18
 */ 

19 20 21 22
#ifdef _MAKEDOC
# include "config.h"
#else
# include "sort.h"
23
#endif
24

Thomas Roessler's avatar
Thomas Roessler committed
25 26
#include "buffy.h"

27
#ifndef _MAKEDOC
Thomas Roessler's avatar
Thomas Roessler committed
28 29 30 31 32 33 34 35 36 37
#define DT_MASK		0x0f
#define DT_BOOL		1 /* boolean option */
#define DT_NUM		2 /* a number */
#define DT_STR		3 /* a string */
#define DT_PATH		4 /* a pathname */
#define DT_QUAD		5 /* quad-option (yes/no/ask-yes/ask-no) */
#define DT_SORT		6 /* sorting methods */
#define DT_RX		7 /* regular expressions */
#define DT_MAGIC	8 /* mailbox type */
#define DT_SYN		9 /* synonym for another variable */
38
#define DT_ADDR	       10 /* e-mail address */
Thomas Roessler's avatar
Thomas Roessler committed
39 40 41 42 43 44 45

#define DTYPE(x) ((x) & DT_MASK)

/* subtypes */
#define DT_SUBTYPE_MASK	0xf0
#define DT_SORT_ALIAS	0x10
#define DT_SORT_BROWSER 0x20
46
#define DT_SORT_KEYS	0x40
47
#define DT_SORT_AUX	0x80
Thomas Roessler's avatar
Thomas Roessler committed
48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73

/* flags to parse_set() */
#define M_SET_INV	(1<<0)	/* default is to invert all vars */
#define M_SET_UNSET	(1<<1)	/* default is to unset all vars */
#define M_SET_RESET	(1<<2)	/* default is to reset all vars to default */

/* forced redraw/resort types */
#define R_NONE		0
#define R_INDEX		(1<<0)
#define R_PAGER		(1<<1)
#define R_RESORT	(1<<2)	/* resort the mailbox */
#define R_RESORT_SUB	(1<<3)	/* resort subthreads */
#define R_BOTH		(R_INDEX | R_PAGER)
#define R_RESORT_BOTH	(R_RESORT | R_RESORT_SUB)

struct option_t
{
  char *option;
  short type;
  short flags;
  unsigned long data;
  unsigned long init; /* initial value */
};

#define UL (unsigned long)

74 75
#endif /* _MAKEDOC */

Thomas Roessler's avatar
Thomas Roessler committed
76 77 78 79
#ifndef ISPELL
#define ISPELL "ispell"
#endif

80 81 82 83 84 85 86 87 88
/* build complete documentation */

#ifdef _MAKEDOC
# ifndef USE_IMAP
#  define USE_IMAP
# endif
# ifndef MIXMASTER
#  define MIXMASTER "mixmaster"
# endif
89 90
# ifndef HAVE_PGP
#  define HAVE_PGP
91 92 93 94
# endif
# ifndef USE_POP
#  define USE_POP
# endif
95 96 97
# ifndef USE_SSL
#  define USE_SSL
# endif
98 99 100
# ifndef USE_SOCKET
#  define USE_SOCKET
# endif
101 102
#endif

Thomas Roessler's avatar
Thomas Roessler committed
103
struct option_t MuttVars[] = {
104
  /*++*/
Thomas Roessler's avatar
Thomas Roessler committed
105
  { "abort_nosubject",	DT_QUAD, R_NONE, OPT_SUBJECT, M_ASKYES },
106 107 108 109 110 111 112
  /*
  ** .pp
  ** If set to \fIyes\fP, when composing messages and no subject is given
  ** at the subject prompt, composition will be aborted.  If set to
  ** \fIno\fP, composing messages with no subject given at the subject
  ** prompt will never be aborted.
  */
Thomas Roessler's avatar
Thomas Roessler committed
113
  { "abort_unmodified",	DT_QUAD, R_NONE, OPT_ABORT, M_YES },
114 115 116 117 118 119 120
  /*
  ** .pp
  ** If set to \fIyes\fP, composition will automatically abort after
  ** editing the message body if no changes are made to the file (this
  ** check only happens after the \fIfirst\fP edit of the file).  When set
  ** to \fIno\fP, composition will never be aborted.
  */
Thomas Roessler's avatar
Thomas Roessler committed
121
  { "alias_file",	DT_PATH, R_NONE, UL &AliasFile, UL "~/.muttrc" },
122 123 124 125 126 127 128 129
  /*
  ** .pp
  ** The default file in which to save aliases created by the 
  ** ``$create-alias'' function.
  ** .pp
  ** \fBNote:\fP Mutt will not automatically source this file; you must
  ** explicitly use the ``$source'' command for it to be executed.
  */
130
  { "alias_format",	DT_STR,  R_NONE, UL &AliasFmt, UL "%4n %t %-10a   %r" },
131 132 133 134 135
  /*
  ** .pp
  ** Specifies the format of the data displayed for the `alias' menu.  The
  ** following printf(3)-style sequences are available:
  ** .pp
136 137 138 139 140 141
  ** .dl
  ** .dt %a .dd alias name
  ** .dt %n .dd index number
  ** .dt %r .dd address which alias expands to
  ** .dt %t .dd character which indicates if the alias is tagged for inclusion
  ** .de
142
  */
Thomas Roessler's avatar
Thomas Roessler committed
143
  { "allow_8bit",	DT_BOOL, R_NONE, OPTALLOW8BIT, 1 },
144 145 146 147 148
  /*
  ** .pp
  ** Controls whether 8-bit data is converted to 7-bit using either Quoted-
  ** Printable or Base64 encoding when sending mail.
  */
Thomas Roessler's avatar
Thomas Roessler committed
149
  { "alternates",	DT_RX,	 R_BOTH, UL &Alternates, 0 },
150 151 152 153 154 155
  /*
  ** .pp
  ** A regexp that allows you to specify \fIalternate\fP addresses where
  ** you receive mail.  This affects Mutt's idea about messages from you
  ** and addressed to you.
  */
Thomas Roessler's avatar
Thomas Roessler committed
156
  { "arrow_cursor",	DT_BOOL, R_BOTH, OPTARROWCURSOR, 0 },
157 158 159 160 161 162 163 164
  /*
  ** .pp
  ** When set, an arrow (``->'') will be used to indicate the current entry
  ** in menus instead of hiliting the whole line.  On slow network or modem
  ** links this will make response faster because there is less that has to
  ** be redrawn on the screen when moving to the next or previous entries
  ** in the menu.
  */
Thomas Roessler's avatar
Thomas Roessler committed
165
  { "ascii_chars",	DT_BOOL, R_BOTH, OPTASCIICHARS, 0 },
166 167 168 169 170
  /*
  ** .pp
  ** If set, Mutt will use plain ASCII characters when displaying thread
  ** and attachment trees, instead of the default \fIACS\fP characters.
  */
Thomas Roessler's avatar
Thomas Roessler committed
171
  { "askbcc",		DT_BOOL, R_NONE, OPTASKBCC, 0 },
172 173 174 175 176
  /*
  ** .pp
  ** If set, Mutt will prompt you for blind-carbon-copy (Bcc) recipients
  ** before editing an outgoing message.
  */
Thomas Roessler's avatar
Thomas Roessler committed
177
  { "askcc",		DT_BOOL, R_NONE, OPTASKCC, 0 },
178 179 180 181 182
  /*
  ** .pp
  ** If set, Mutt will prompt you for carbon-copy (Cc) recipients before
  ** editing the body of an outgoing message.
  */  
183
  { "attach_format",	DT_STR,  R_NONE, UL &AttachFormat, UL "%u%D%I %t%4n %T%.40d%> [%.7m/%.10M, %.6e%?C?, %C?, %s] " },
184 185 186 187 188
  /*
  ** .pp
  ** This variable describes the format of the `attachment' menu.  The
  ** following printf-style sequences are understood:
  ** .pp
189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204
  ** .dl
  ** .dt %D  .dd deleted flag
  ** .dt %d  .dd description
  ** .dt %e  .dd MIME content-transfer-encoding
  ** .dt %f  .dd filename
  ** .dt %I  .dd disposition (I=inline, A=attachment)
  ** .dt %m  .dd major MIME type
  ** .dt %M  .dd MIME subtype
  ** .dt %n  .dd attachment number
  ** .dt %s  .dd size
  ** .dt %t  .dd tagged flag
  ** .dt %u  .dd unlink (=to delete) flag
  ** .dt %>X .dd right justify the rest of the string and pad with character "X"
  ** .dt %|X .dd pad to the end of the line with character "X"
  ** .de
  */
Thomas Roessler's avatar
Thomas Roessler committed
205
  { "attach_sep",	DT_STR,	 R_NONE, UL &AttachSep, UL "\n" },
206 207 208 209 210 211 212 213 214 215 216 217 218 219
  /*
  ** .pp
  ** The separator to add between attachments when operating (saving,
  ** printing, piping, etc) on a list of tagged attachments.
  */
  { "attach_split",	DT_BOOL, R_NONE, OPTATTACHSPLIT, 1 },
  /*
  ** .pp
  ** If this variable is unset, when operating (saving, printing, piping,
  ** etc) on a list of tagged attachments, Mutt will concatenate the
  ** attachments and will operate on them as a single attachment. The
  ** ``$$attach_sep'' separator is added after each attachment. When set,
  ** Mutt will operate on the attachments one by one.
  */
Thomas Roessler's avatar
Thomas Roessler committed
220
  { "attribution",	DT_STR,	 R_NONE, UL &Attribution, UL "On %d, %n wrote:" },
221 222 223 224 225 226
  /*
  ** .pp
  ** This is the string that will precede a message which has been included
  ** in a reply.  For a full listing of defined escape sequences see the
  ** section on ``$$index_format''.
  */
Thomas Roessler's avatar
Thomas Roessler committed
227
  { "autoedit",		DT_BOOL, R_NONE, OPTAUTOEDIT, 0 },
228 229
  /*
  ** .pp
230 231 232 233
  ** When set along with ``$$edit_headers'', Mutt will skip the initial
  ** send-menu and allow you to immediately begin editing the body of your
  ** message.  The send-menu may still be accessed once you have finished
  ** editing the body of your message.
234
  ** .pp
235
  ** Also see ``$$fast_reply''.
236
  */
Thomas Roessler's avatar
Thomas Roessler committed
237
  { "auto_tag",		DT_BOOL, R_NONE, OPTAUTOTAG, 0 },
238 239 240 241 242 243 244
  /*
  ** .pp
  ** When set, functions in the \fIindex\fP menu which affect a message
  ** will be applied to all tagged messages (if there are any).  When
  ** unset, you must first use the tag-prefix function (default: ";") to
  ** make the next function apply to all tagged messages.
  */
Thomas Roessler's avatar
Thomas Roessler committed
245
  { "beep",		DT_BOOL, R_NONE, OPTBEEP, 1 },
246 247 248 249
  /*
  ** .pp
  ** When this variable is set, mutt will beep when an error occurs.
  */
Thomas Roessler's avatar
Thomas Roessler committed
250
  { "beep_new",		DT_BOOL, R_NONE, OPTBEEPNEW, 0 },
251 252 253 254
  /*
  ** .pp
  ** When this variable is set, mutt will beep whenever it prints a message
  ** notifying you of new mail.  This is independent of the setting of the
255
  ** ``$$beep'' variable.
256
  */
Thomas Roessler's avatar
Thomas Roessler committed
257
  { "bounce_delivered", DT_BOOL, R_NONE, OPTBOUNCEDELIVERED, 1 },
258 259 260 261 262
  /*
  ** .pp
  ** When this variable is set, mutt will include Delivered-To headers when
  ** bouncing messages.  Postfix users may wish to unset this variable.
  */
263
  { "charset",		DT_STR,	 R_NONE, UL &Charset, UL 0 },
264 265 266 267
  /*
  ** .pp
  ** Character set your terminal uses to display and enter textual data.
  */
Thomas Roessler's avatar
Thomas Roessler committed
268
  { "check_new",	DT_BOOL, R_NONE, OPTCHECKNEW, 1 },
269 270 271 272 273 274 275 276 277 278 279 280
  /*
  ** .pp
  ** \fBNote:\fP this option only affects \fImaildir\fP and \fIMH\fP style
  ** mailboxes.
  ** .pp
  ** When \fIset\fP, Mutt will check for new mail delivered while the
  ** mailbox is open.  Especially with MH mailboxes, this operation can
  ** take quite some time since it involves scanning the directory and
  ** checking each file to see if it has already been looked at.  If
  ** \fIcheck_new\fP is \fIunset\fP, no check for new mail is performed
  ** while the mailbox is open.
  */
281
  { "collapse_unread",	DT_BOOL, R_NONE, OPTCOLLAPSEUNREAD, 1 },
282 283 284 285 286
  /*
  ** .pp
  ** When \fIunset\fP, Mutt will not collapse a thread if it contains any
  ** unread messages.
  */
287
  { "uncollapse_jump", 	DT_BOOL, R_NONE, OPTUNCOLLAPSEJUMP, 0 },
288 289 290 291 292
  /*
  ** .pp
  ** When \fIset\fP, Mutt will jump to the next unread message, if any,
  ** when the current thread is \fIun\fPcollapsed.
  */
293 294 295 296 297 298 299
  { "compose_format",	DT_STR,	 R_BOTH, UL &ComposeFormat, UL "-- Mutt: Compose  [Approx. msg size: %l   Atts: %a]%>-" },
  /*
  ** .pp
  ** Controls the format of the status line displayed in the \fCompose\fP
  ** menu.  This string is similar to ``$$status_format'', but has its own
  ** set of printf()-like sequences:
  ** .pp
300 301 302 303 304 305
  ** .dl
  ** .dt %a .dd total number of attachments 
  ** .dt %h .dd local hostname
  ** .dt %l .dd approximate size (in bytes) of the current message
  ** .dt %v .dd Mutt version string
  ** .de
306 307 308 309
  ** .pp
  ** See the text describing the ``$$status_format'' option for more 
  ** information on how to set ``$$compose_format''.
  */
Thomas Roessler's avatar
Thomas Roessler committed
310
  { "confirmappend",	DT_BOOL, R_NONE, OPTCONFIRMAPPEND, 1 },
311 312 313 314 315
  /*
  ** .pp
  ** When set, Mutt will prompt for confirmation when appending messages to
  ** an existing mailbox.
  */
Thomas Roessler's avatar
Thomas Roessler committed
316
  { "confirmcreate",	DT_BOOL, R_NONE, OPTCONFIRMCREATE, 1 },
317 318 319 320 321
  /*
  ** .pp
  ** When set, Mutt will prompt for confirmation when saving messages to a
  ** mailbox which does not yet exist before creating it.
  */
322 323 324 325 326 327 328
  { "connect_timeout",	DT_NUM,	R_NONE, UL &ConnectTimeout, 30 },
  /*
  ** .pp
  ** Causes Mutt to timeout a network connection (for IMAP or POP) after this
  ** many seconds if the connection is not able to be established.  A negative
  ** value causes Mutt to wait indefinitely for the connection to succeed.
  */
Thomas Roessler's avatar
Thomas Roessler committed
329
  { "copy",		DT_QUAD, R_NONE, OPT_COPY, M_YES },
330 331 332
  /*
  ** .pp
  ** This variable controls whether or not copies of your outgoing messages
333 334
  ** will be saved for later references.  Also see ``$$record'',
  ** ``$$save_name'', ``$$force_name'' and ``$fcc-hook''.
335
  */
Thomas Roessler's avatar
Thomas Roessler committed
336
  { "date_format",	DT_STR,	 R_BOTH, UL &DateFmt, UL "!%a, %b %d, %Y at %I:%M:%S%p %Z" },
337 338 339 340 341 342 343 344 345
  /*
  ** .pp
  ** This variable controls the format of the date printed by the ``%d''
  ** sequence in ``$$index_format''.  This is passed to the \fIstrftime\fP
  ** call to process the date. See the man page for \fIstrftime(3)\fP for
  ** the proper syntax.
  ** .pp
  ** Unless the first character in the string is a bang (``!''), the month
  ** and week day names are expanded according to the locale specified in
346
  ** the variable ``$$locale''. If the first character in the string is a
347 348 349 350
  ** bang, the bang is discarded, and the month and week day names in the
  ** rest of the string are expanded in the \fIC\fP locale (that is in US
  ** English).
  */  
Thomas Roessler's avatar
Thomas Roessler committed
351
  { "default_hook",	DT_STR,	 R_NONE, UL &DefaultHook, UL "~f %s !~P | (~P ~C %s)" },
352 353
  /*
  ** .pp
354
  ** This variable controls how send-hooks, message-hooks, save-hooks,
355
  ** and fcc-hooks will
356 357 358 359 360 361
  ** be interpreted if they are specified with only a simple regexp,
  ** instead of a matching pattern.  The hooks are expanded when they are
  ** declared, so a hook will be interpreted according to the value of this
  ** variable at the time the hook is declared.  The default value matches
  ** if the message is either from a user matching the regular expression
  ** given, or if it is from you (if the from address matches
362
  ** ``$$alternates'') and is to or cc'ed to a user matching the given
363 364
  ** regular expression.
  */
Thomas Roessler's avatar
Thomas Roessler committed
365
  { "delete",		DT_QUAD, R_NONE, OPT_DELETE, M_ASKYES },
366 367 368 369 370 371 372
  /*
  ** .pp
  ** Controls whether or not messages are really deleted when closing or
  ** synchronizing a mailbox.  If set to \fIyes\fP, messages marked for
  ** deleting will automatically be purged without prompting.  If set to
  ** \fIno\fP, messages marked for deletion will be kept in the mailbox.
  */
373 374 375 376 377 378 379
  { "delete_untag",	DT_BOOL, R_NONE, OPTDELETEUNTAG, 1 },
  /*
  ** .pp
  ** If this option is \fIset\fP, mutt will untag messages when marking them
  ** for deletion.  This applies when you either explicitly delete a message,
  ** or when you save it to another folder.
  */
Thomas Roessler's avatar
Thomas Roessler committed
380
  { "display_filter",	DT_PATH, R_PAGER, UL &DisplayFilter, UL "" },
381 382 383 384 385 386
  /*
  ** .pp
  ** When set, specifies a command used to filter messages.  When a message
  ** is viewed it is passed as standard input to $$display_filter, and the
  ** filtered message is read from the standard output.
  */
387 388
#if defined(DL_STANDALONE) && defined(USE_DOTLOCK)
  { "dotlock_program",  DT_PATH, R_NONE, UL &MuttDotlock, UL BINDIR "/mutt_dotlock" },
389 390 391 392 393
  /*
  ** .pp
  ** Contains the path of the mutt_dotlock (8) binary to be used by
  ** mutt.
  */
394
#endif
Thomas Roessler's avatar
Thomas Roessler committed
395
  { "dsn_notify",	DT_STR,	 R_NONE, UL &DsnNotify, UL "" },
396 397 398 399 400 401 402 403 404 405 406 407 408 409
  /*
  ** .pp
  ** \fBNote:\fP you should not enable this unless you are using Sendmail
  ** 8.8.x or greater.
  ** .pp
  ** This variable sets the request for when notification is returned.  The
  ** string consists of a comma separated list (no spaces!) of one or more
  ** of the following: \fInever\fP, to never request notification,
  ** \fIfailure\fP, to request notification on transmission failure,
  ** \fIdelay\fP, to be notified of message delays, \fIsuccess\fP, to be
  ** notified of successful transmission.
  ** .pp
  ** Example: set dsn_notify="failure,delay"
  */
Thomas Roessler's avatar
Thomas Roessler committed
410
  { "dsn_return",	DT_STR,	 R_NONE, UL &DsnReturn, UL "" },
411 412 413 414 415 416 417 418 419 420 421
  /*
  ** .pp
  ** \fBNote:\fP you should not enable this unless you are using Sendmail
  ** 8.8.x or greater.
  ** .pp
  ** This variable controls how much of your message is returned in DSN
  ** messages.  It may be set to either \fIhdrs\fP to return just the
  ** message header, or \fIfull\fP to return the full message.
  ** .pp
  ** Example: set dsn_return=hdrs
  */
Thomas Roessler's avatar
Thomas Roessler committed
422
  { "edit_headers",	DT_BOOL, R_NONE, OPTEDITHDRS, 0 },
423 424 425 426 427
  /*
  ** .pp
  ** This option allows you to edit the header of your outgoing messages
  ** along with the body of your message.
  */
Thomas Roessler's avatar
Thomas Roessler committed
428
  { "edit_hdrs",	DT_SYN,  R_NONE, UL "edit_headers", 0 },
429 430
  /*
  */  
Thomas Roessler's avatar
Thomas Roessler committed
431
  { "editor",		DT_PATH, R_NONE, UL &Editor, 0 },
432 433 434 435 436 437
  /*
  ** .pp
  ** This variable specifies which editor is used by mutt.
  ** It defaults to the value of the EDITOR or VISUAL environment
  ** variable, or to the string "vi".
  */
438
  { "encode_from",	DT_BOOL, R_NONE, OPTENCODEFROM, 0 },
439 440 441 442 443 444 445
  /*
  ** .pp
  ** When \fIset\fP, mutt will quoted-printable encode messages when
  ** they contain the string "From " in the beginning of a line.
  ** Useful to avoid the tampering certain mail delivery and transport
  ** agents tend to do with messages.
  */
446 447 448 449 450 451 452 453 454 455
  { "envelope_from", 	DT_BOOL, R_NONE, OPTENVFROM, 0 },
  /*
  ** .pp
  ** When \fIset\fP, mutt will try to derive the message's \fIenvelope\fP
  ** sender from the "From:" header.  Note that this information is passed 
  ** to sendmail command using the "-f" command line switch, so don't set this
  ** option if you are using that switch in $$sendmail yourself,
  ** or if the sendmail on your machine doesn't support that command
  ** line switch.
  */
Thomas Roessler's avatar
Thomas Roessler committed
456
  { "escape",		DT_STR,	 R_NONE, UL &EscChar, UL "~" },
457 458 459 460
  /*
  ** .pp
  ** Escape character to use for functions in the builtin editor.
  */
Thomas Roessler's avatar
Thomas Roessler committed
461
  { "fast_reply",	DT_BOOL, R_NONE, OPTFASTREPLY, 0 },
462 463 464 465 466 467 468 469 470
  /*
  ** .pp
  ** When set, the initial prompt for recipients and subject are skipped
  ** when replying to messages, and the initial prompt for subject is
  ** skipped when forwarding messages.
  ** .pp
  ** \fBNote:\fP this variable has no effect when the ``$$autoedit''
  ** variable is set.
  */
Thomas Roessler's avatar
Thomas Roessler committed
471
  { "fcc_attach",	DT_BOOL, R_NONE, OPTFCCATTACH, 1 },
472 473 474 475 476
  /*
  ** .pp
  ** This variable controls whether or not attachments on outgoing messages
  ** are saved along with the main body of your message.
  */
477
#ifdef HAVE_PGP
478 479 480 481 482 483 484
  { "fcc_clear",	DT_BOOL, R_NONE, OPTFCCCLEAR, 0 },
  /*
  ** .pp
  ** When this variable is \fIset\fP, FCCs will be stored unencrypted and
  ** unsigned, even when the actual message is encrypted and/or signed.
  */
#endif
Thomas Roessler's avatar
Thomas Roessler committed
485
  { "folder",		DT_PATH, R_NONE, UL &Maildir, UL "~/Mail" },
486 487 488 489 490 491 492 493 494
  /*
  ** .pp
  ** Specifies the default location of your mailboxes.  A `+' or `=' at the
  ** beginning of a pathname will be expanded to the value of this
  ** variable.  Note that if you change this variable from the default
  ** value you need to make sure that the assignment occurs \fIbefore\fP
  ** you use `+' or `=' for any other variables since expansion takes place
  ** during the `set' command.
  */
495
  { "folder_format",	DT_STR,	 R_INDEX, UL &FolderFormat, UL "%2C %t %N %F %2l %-8.8u %-8.8g %8s %d %f" },
496 497 498 499 500 501
  /*
  ** .pp
  ** This variable allows you to customize the file browser display to your
  ** personal taste.  This string is similar to ``$$index_format'', but has
  ** its own set of printf()-like sequences:
  ** .pp
502 503 504 505 506 507 508 509 510 511 512 513 514 515
  ** .dl
  ** .dt %C  .dd current file number
  ** .dt %d  .dd date/time folder was last modified
  ** .dt %f  .dd filename
  ** .dt %F  .dd file permissions
  ** .dt %g  .dd group name (or numeric gid, if missing)
  ** .dt %l  .dd number of hard links
  ** .dt %N  .dd N if folder has new mail, blank otherwise
  ** .dt %s  .dd size in bytes
  ** .dt %t  .dd * if the file is tagged, blank otherwise
  ** .dt %u  .dd owner name (or numeric uid, if missing)
  ** .dt %>X .dd right justify the rest of the string and pad with character "X"
  ** .dt %|X .dd pad to the end of the line with character "X"
  ** .de
516
  */
Thomas Roessler's avatar
Thomas Roessler committed
517
  { "followup_to",	DT_BOOL, R_NONE, OPTFOLLOWUPTO, 1 },
518 519 520 521
  /*
  ** .pp
  ** Controls whether or not the \fIMail-Followup-To\fP header field is
  ** generated when sending mail.  When \fIset\fP, Mutt will generate this
522
  ** field when you are replying to a known mailing list, specified with
523
  ** the ``subscribe'' or ``$lists'' commands.
524 525 526 527 528 529 530 531 532 533
  ** .pp
  ** This field has two purposes.  First, preventing you from receiving
  ** duplicate copies of replies to messages which you send to mailing
  ** lists.  Second, ensuring that you do get a reply separately for any
  ** messages sent to known lists to which you are not subscribed.  The
  ** header will contain only the list's address for subscribed lists,
  ** and both the list address and your own email address for unsubscribed
  ** lists.  Without this header, a group reply to your message sent to a
  ** subscribed list will be sent to both the list and your address,
  ** resulting in two copies of the same email for you.
534
  */
Thomas Roessler's avatar
Thomas Roessler committed
535
  { "force_name",	DT_BOOL, R_NONE, OPTFORCENAME, 0 },
536 537 538 539 540 541 542 543
  /*
  ** .pp
  ** This variable is similar to ``$$save_name'', except that Mutt will
  ** store a copy of your outgoing message by the username of the address
  ** you are sending to even if that mailbox does not exist.
  ** .pp
  ** Also see the ``$$record'' variable.
  */
Thomas Roessler's avatar
Thomas Roessler committed
544
  { "forward_decode",	DT_BOOL, R_NONE, OPTFORWDECODE, 1 },
545 546 547 548
  /*
  ** .pp
  ** Controls the decoding of complex MIME messages into text/plain when
  ** forwarding a message.  The message header is also RFC2047 decoded.
549 550
  ** This variable is only used, if ``$$mime_forward'' is \fIunset\fP,
  ** otherwise ``$$mime_forward_decode'' is used instead.
551
  */
Thomas Roessler's avatar
Thomas Roessler committed
552
  { "forw_decode",	DT_SYN,  R_NONE, UL "forward_decode", 0 },
553 554
  /*
  */
Thomas Roessler's avatar
Thomas Roessler committed
555
  { "forward_format",	DT_STR,	 R_NONE, UL &ForwFmt, UL "[%a: %s]" },
556 557 558 559 560 561 562 563
  /*
  ** .pp
  ** This variable controls the default subject when forwarding a message.
  ** It uses the same format sequences as the ``$$index_format'' variable.
  */
  { "forw_format",	DT_SYN,  R_NONE, UL "forward_format", 0 },  
  /*
  */
Thomas Roessler's avatar
Thomas Roessler committed
564
  { "forward_quote",	DT_BOOL, R_NONE, OPTFORWQUOTE, 0 },
565 566 567
  /*
  ** .pp
  ** When \fIset\fP forwarded messages included in the main body of the
568 569
  ** message (when ``$$mime_forward'' is \fIunset\fP) will be quoted using
  ** ``$$indent_string''.
570
  */
Thomas Roessler's avatar
Thomas Roessler committed
571
  { "forw_quote",	DT_SYN,  R_NONE, UL "forward_quote", 0 },
572 573
  /*
  */
574
  { "from",		DT_ADDR, R_NONE, UL &From, UL "" },
575 576 577 578
  /*
  ** .pp
  ** When set, this variable contains a default from address.  It
  ** can be overridden using my_hdr (including from send-hooks) and
579
  ** ``$$reverse_name''.
580
  */
581 582 583 584 585 586 587
  { "gecos_mask",	DT_RX,	 R_NONE, UL &GecosMask, UL "^[^,]*" },
  /*
  ** .pp
  ** A regular expression used by mutt to parse the GECOS field of a password
  ** entry when expanding the alias.  By default the regular expression is set
  ** to "^[^,]*" which will return the string up to the first "," encountered.
  ** If the GECOS field contains a string like "lastname, firstname" then you
588 589 590 591 592 593 594
  ** should set the gecos_mask=".*".
  ** .pp
  ** This can be useful if you see the following behavior: you address a e-mail
  ** to user ID stevef whose full name is Steve Franklin.  If mutt expands 
  ** stevef to "Franklin" stevef@foo.bar then you should set the gecos_mask to
  ** a regular expression that will match the whole name so mutt will expand
  ** "Franklin" to "Franklin, Steve".
595
  */
Thomas Roessler's avatar
Thomas Roessler committed
596
  { "hdr_format",	DT_SYN,  R_NONE, UL "index_format", 0 },
597 598
  /*
  */
Thomas Roessler's avatar
Thomas Roessler committed
599
  { "hdrs",		DT_BOOL, R_NONE, OPTHDRS, 1 },
600 601 602 603 604 605 606
  /*
  ** .pp
  ** When unset, the header fields normally added by the ``$my_hdr''
  ** command are not created.  This variable \fImust\fP be unset before
  ** composing a new message or replying in order to take effect.  If set,
  ** the user defined header fields are added to every new message.
  */
Thomas Roessler's avatar
Thomas Roessler committed
607
  { "header",		DT_BOOL, R_NONE, OPTHEADER, 0 },
608 609 610 611
  /*
  ** .pp
  ** When set, this variable causes Mutt to include the header
  ** of the message you are replying to into the edit buffer.
612
  ** The ``$$weed'' setting applies.
613
  */  
Thomas Roessler's avatar
Thomas Roessler committed
614
  { "help",		DT_BOOL, R_BOTH, OPTHELP, 1 },
615 616 617 618 619 620 621 622 623 624 625
  /*
  ** .pp
  ** When set, help lines describing the bindings for the major functions
  ** provided by each menu are displayed on the first line of the screen.
  ** .pp
  ** \fBNote:\fP The binding will not be displayed correctly if the
  ** function is bound to a sequence rather than a single keystroke.  Also,
  ** the help line may not be updated if a binding is changed while Mutt is
  ** running.  Since this variable is primarily aimed at new users, neither
  ** of these should present a major problem.
  */
Thomas Roessler's avatar
Thomas Roessler committed
626
  { "hidden_host",	DT_BOOL, R_NONE, OPTHIDDENHOST, 0 },
627 628
  /*
  ** .pp
629
  ** When set, mutt will skip the host name part of ``$$hostname'' variable
630
  ** when adding the domain part to addresses.  This variable does not
631 632
  ** affect the generation of Message-IDs, and it will not lead to the 
  ** cut-off of first-level domains.
633
  */
Thomas Roessler's avatar
Thomas Roessler committed
634
  { "history",		DT_NUM,	 R_NONE, UL &HistSize, 10 },
635 636 637 638 639 640
  /*
  ** .pp
  ** This variable controls the size (in number of strings remembered) of
  ** the string history buffer. The buffer is cleared each time the
  ** variable is set.
  */
641
  { "honor_followup_to", DT_QUAD, R_NONE, OPT_MFUPTO, M_YES },
642 643 644 645 646
  /*
  ** .pp
  ** This variable controls whether or not a Mail-Followup-To header is
  ** honored when group-replying to a message.
  */
Thomas Roessler's avatar
Thomas Roessler committed
647
  { "hostname",		DT_STR,	 R_NONE, UL &Fqdn, 0 },
648 649 650 651 652 653 654 655 656 657 658 659 660 661 662 663 664 665
  /*
  ** .pp
  ** Specifies the hostname to use after the ``@'' in local e-mail
  ** addresses.  This overrides the compile time definition obtained from
  ** /etc/resolv.conf.
  */
  { "ignore_list_reply_to", DT_BOOL, R_NONE, OPTIGNORELISTREPLYTO, 0 },
  /*
  ** .pp
  ** Affects the behaviour of the \fIreply\fP function when replying to
  ** messages from mailing lists.  When set, if the ``Reply-To:'' field is
  ** set to the same value as the ``To:'' field, Mutt assumes that the
  ** ``Reply-To:'' field was set by the mailing list to automate responses
  ** to the list, and will ignore this field.  To direct a response to the
  ** mailing list when this option is set, use the \fIlist-reply\fP
  ** function; \fIgroup-reply\fP will reply to both the sender and the
  ** list.
  */
Thomas Roessler's avatar
Thomas Roessler committed
666
#ifdef USE_IMAP
667 668 669 670 671 672 673 674
# ifdef USE_SSL
  { "imap_force_ssl",		DT_BOOL, R_NONE, OPTIMAPFORCESSL, 0 },
  /*
  ** .pp
  ** If this variable is set, Mutt will always use SSL when
  ** connecting to IMAP servers.
  */
# endif
675
  { "imap_list_subscribed",	DT_BOOL, R_NONE, OPTIMAPLSUB, 0 },
676 677 678 679 680 681
  /*
  ** .pp
  ** This variable configures whether IMAP folder browsing will look for
  ** only subscribed folders or all folders.  This can be toggled in the
  ** IMAP browser with the \fItoggle-subscribed\fP command.
  */
Thomas Roessler's avatar
Thomas Roessler committed
682
  { "imap_user",	DT_STR,  R_NONE, UL &ImapUser, UL 0 },
683 684 685 686 687 688
  /*
  ** .pp
  ** Your login name on the IMAP server.
  ** .pp
  ** This variable defaults to your user name on the local machine.
  */
Thomas Roessler's avatar
Thomas Roessler committed
689
  { "imap_pass", 	DT_STR,  R_NONE, UL &ImapPass, UL 0 },
690 691 692
  /*
  ** .pp
  ** Specifies the password for your IMAP account.  If unset, Mutt will
693
  ** prompt you for your password when you invoke the fetch-mail function.
694 695 696 697
  ** \fBWarning\fP: you should only use this option when you are on a
  ** fairly secure machine, because the superuser can read your muttrc even
  ** if you are the only one who can read the file.
  */
698
  { "imap_passive",		DT_BOOL, R_NONE, OPTIMAPPASSIVE, 1 },
699 700 701 702 703 704 705 706
  /*
  ** .pp
  ** When set, mutt will not open new IMAP connections to check for new
  ** mail.  Mutt will only check for new mail over existing IMAP
  ** connections.  This is useful if you don't want to be prompted to
  ** user/password pairs on mutt invocation, or if opening the connection
  ** is slow.
  */
707 708 709 710 711 712 713 714 715
  { "imap_servernoise",		DT_BOOL, R_NONE, OPTIMAPSERVERNOISE, 1 },
  /*
  ** .pp
  ** When set, mutt will display warning messages from the IMAP
  ** server as error messages. Since these messages are often
  ** harmless, or generated due to configuration problems on the
  ** server which are out of the users' hands, you may wish to suppress
  ** them at some point.
  */
716
  { "imap_home_namespace",	DT_STR, R_NONE, UL &ImapHomeNamespace, UL 0},
717
  /*
718 719 720 721
  ** .pp
  ** You normally want to see your personal folders alongside
  ** your INBOX in the IMAP browser. If you see something else, you may set
  ** this variable to the IMAP path to your folders.
722
  */
Thomas Roessler's avatar
Thomas Roessler committed
723
#endif
724
  { "implicit_autoview", DT_BOOL,R_NONE, OPTIMPLICITAUTOVIEW, 0},
725 726
  /*
  ** .pp
727
  ** If set to ``yes'', mutt will look for a mailcap entry with the
728 729 730 731 732
  ** copiousoutput flag set for \fIevery\fP MIME attachment it doesn't have
  ** an internal viewer defined for.  If such an entry is found, mutt will
  ** use the viewer defined in that entry to convert the body part to text
  ** form.
  */
Thomas Roessler's avatar
Thomas Roessler committed
733
  { "include",		DT_QUAD, R_NONE, OPT_INCLUDE, M_ASKYES },
734 735 736 737 738
  /*
  ** .pp
  ** Controls whether or not a copy of the message(s) you are replying to
  ** is included in your reply.
  */
Thomas Roessler's avatar
Thomas Roessler committed
739
  { "indent_string",	DT_STR,	 R_NONE, UL &Prefix, UL "> " },
740 741 742 743 744 745
  /*
  ** .pp
  ** Specifies the string to prepend to each line of text quoted in a
  ** message to which you are replying.  You are strongly encouraged not to
  ** change this value, as it tends to agitate the more fanatical netizens.
  */
746 747 748 749 750
  { "in_reply_to",	DT_STR,	 R_NONE, UL &InReplyTo, UL "%i; from %a on %{!%a, %b %d, %Y at %I:%M:%S%p %Z}" },
  /*
  ** .pp
  ** This specifies the format of the \fIIn-Reply-To\fP header field
  ** added when replying to a message.  For a ful llisting of
751
  ** defined escape sequences, see the section on $$index_format.
752 753 754 755 756
  ** .pp
  ** \fBNote:\fP Don't use any sequences in this format string which
  ** may include 8-bit characters.  Using such escape sequences may
  ** lead to bad headers.
  */
Thomas Roessler's avatar
Thomas Roessler committed
757
  { "indent_str",	DT_SYN,  R_NONE, UL "indent_string", 0 },
758 759
  /*
  */
Thomas Roessler's avatar
Thomas Roessler committed
760
  { "index_format",	DT_STR,	 R_BOTH, UL &HdrFmt, UL "%4C %Z %{%b %d} %-15.15L (%4l) %s" },
761 762 763 764 765 766 767 768 769
  /*
  ** .pp
  ** This variable allows you to customize the message index display to
  ** your personal taste.
  ** .pp
  ** ``Format strings'' are similar to the strings used in the ``C''
  ** function printf to format output (see the man page for more detail).
  ** The following sequences are defined in Mutt:
  ** .pp
770 771 772 773 774 775 776 777 778 779 780 781 782 783 784 785 786 787 788 789 790 791 792 793 794 795 796 797 798 799 800 801 802 803 804 805 806 807 808 809 810 811 812 813 814 815 816 817
  ** .dl
  ** .dt %a .dd address of the author
  ** .dt %b .dd filename of the original message folder (think mailBox)
  ** .dt %B .dd the list to which the letter was sent, or else the folder name (%b).
  ** .dt %c .dd number of characters (bytes) in the message
  ** .dt %C .dd current message number
  ** .dt %d .dd date and time of the message in the format specified by
  **            ``date_format'' converted to sender's time zone
  ** .dt %D .dd date and time of the message in the format specified by
  **            ``date_format'' converted to the local time zone
  ** .dt %e .dd current message number in thread
  ** .dt %E .dd number of messages in current thread
  ** .dt %f .dd entire From: line (address + real name)
  ** .dt %F .dd author name, or recipient name if the message is from you
  ** .dt %i .dd message-id of the current message
  ** .dt %l .dd number of lines in the message
  ** .dt %L .dd list-from function
  ** .dt %m .dd total number of message in the mailbox
  ** .dt %M .dd number of hidden messages if the thread is collapsed.
  ** .dt %N .dd message score
  ** .dt %n .dd author's real name (or address if missing)
  ** .dt %O .dd (_O_riginal save folder)  Where mutt would formerly have
  **            stashed the message: list name or recipient name if no list
  ** .dt %s .dd subject of the message
  ** .dt %S .dd status of the message (N/D/d/!/r/\(as)
  ** .dt %t .dd `to:' field (recipients)
  ** .dt %T .dd the appropriate character from the $$to_chars string
  ** .dt %u .dd user (login) name of the author
  ** .dt %v .dd first name of the author, or the recipient if the message is from you
  ** .dt %y .dd `x-label:' field, if present
  ** .dt %Y .dd `x-label' field, if present, and (1) not at part of a thread tree,
  **            (2) at the top of a thread, or (3) `x-label' is different from
  **            preceding message's `x-label'.
  ** .dt %Z .dd message status flags
  ** .dt %{fmt} .dd the date and time of the message is converted to sender's
  **                time zone, and ``fmt'' is expanded by the library function
  **                ``strftime''; a leading bang disables locales
  ** .dt %[fmt] .dd the date and time of the message is converted to the local
  **                time zone, and ``fmt'' is expanded by the library function
  **                ``strftime''; a leading bang disables locales
  ** .dt %(fmt) .dd the local date and time when the message was received.
  **                ``fmt'' is expanded by the library function ``strftime'';
  **                a leading bang disables locales
  ** .dt %<fmt> .dd the current local time. ``fmt'' is expanded by the library
  **                function ``strftime''; a leading bang disables locales.
  ** .dt %>X    .dd right justify the rest of the string and pad with character "X"
  ** .dt %|X    .dd pad to the end of the line with character "X"
  ** .de
818 819 820
  ** .pp
  ** See also: ``$$to_chars''.
  */
Thomas Roessler's avatar
Thomas Roessler committed
821
  { "ispell",		DT_PATH, R_NONE, UL &Ispell, UL ISPELL },
822 823 824 825
  /*
  ** .pp
  ** How to invoke ispell (GNU's spell-checking software).
  */
Thomas Roessler's avatar
Thomas Roessler committed
826
  { "locale",		DT_STR,  R_BOTH, UL &Locale, UL "C" },
827 828 829 830 831
  /*
  ** .pp
  ** The locale used by \fIstrftime(3)\fP to format dates. Legal values are
  ** the strings your system accepts for the locale variable \fILC_TIME\fP.
  */
Thomas Roessler's avatar
Thomas Roessler committed
832
  { "mail_check",	DT_NUM,  R_NONE, UL &BuffyTimeout, 5 },
833 834 835 836 837
  /*
  ** .pp
  ** This variable configures how often (in seconds) mutt should look for
  ** new mail.
  */
Thomas Roessler's avatar
Thomas Roessler committed
838
  { "mailcap_path",	DT_STR,	 R_NONE, UL &MailcapPath, 0 },
839 840 841 842 843
  /*
  ** .pp
  ** This variable specifies which files to consult when attempting to
  ** display MIME bodies not directly supported by Mutt.
  */
844
  { "mailcap_sanitize",	DT_BOOL, R_NONE, OPTMAILCAPSANITIZE, 1 },
845 846 847 848 849 850 851 852 853
  /*
  ** .pp
  ** If set, mutt will restrict possible characters in mailcap % expandos
  ** to a well-defined set of safe characters.  This is the safe setting,
  ** but we are not sure it doesn't break some more advanced MIME stuff.
  ** .pp
  ** \fBDON'T CHANGE THIS SETTING UNLESS YOU ARE REALLY SURE WHAT YOU ARE
  ** DOING!\fP
  */
Thomas Roessler's avatar
Thomas Roessler committed
854
  { "mark_old",		DT_BOOL, R_BOTH, OPTMARKOLD, 1 },
855 856 857 858 859 860 861 862 863 864
  /*
  ** .pp
  ** Controls whether or not Mutt makes the distinction between \fInew\fP
  ** messages and \fIold\fP \fBunread\fP messages.  By default, Mutt will
  ** mark new messages as old if you exit a mailbox without reading them.
  ** The next time you start Mutt, the messages will show up with an "O"
  ** next to them in the index menu, indicating that they are old.  In
  ** order to make Mutt treat all unread messages as new only, you can
  ** unset this variable.
  */
Thomas Roessler's avatar
Thomas Roessler committed
865
  { "markers",		DT_BOOL, R_PAGER, OPTMARKERS, 1 },
866 867 868 869 870 871
  /*
  ** .pp
  ** Controls the display of wrapped lines in the internal pager. If set, a
  ** ``+'' marker is displayed at the beginning of wrapped lines. Also see
  ** the ``$$smart_wrap'' variable.
  */
Thomas Roessler's avatar
Thomas Roessler committed
872
  { "mask",		DT_RX,	 R_NONE, UL &Mask, UL "!^\\.[^.]" },
873 874 875 876 877 878
  /*
  ** .pp
  ** A regular expression used in the file browser, optionally preceded by
  ** the \fInot\fP operator ``!''.  Only files whose names match this mask
  ** will be shown. The match is always case-sensitive.
  */
Thomas Roessler's avatar
Thomas Roessler committed
879
  { "mbox",		DT_PATH, R_BOTH, UL &Inbox, UL "~/mbox" },
880 881
  /*
  ** .pp
882
  ** This specifies the folder into which read mail in your ``$$spoolfile''
883 884
  ** folder will be appended.
  */
Thomas Roessler's avatar
Thomas Roessler committed
885
  { "mbox_type",	DT_MAGIC,R_NONE, UL &DefaultMagic, M_MBOX },
886 887 888 889 890
  /*
  ** .pp
  ** The default mailbox type used when creating new folders. May be any of
  ** mbox, MMDF, MH and Maildir.
  */
Thomas Roessler's avatar
Thomas Roessler committed
891
  { "metoo",		DT_BOOL, R_NONE, OPTMETOO, 0 },
892 893 894 895 896
  /*
  ** .pp
  ** If unset, Mutt will remove your address from the list of recipients
  ** when replying to a message.
  */
Thomas Roessler's avatar
Thomas Roessler committed
897
  { "menu_scroll",	DT_BOOL, R_NONE, OPTMENUSCROLL, 0 },
898 899 900 901 902 903 904
  /*
  ** .pp
  ** When \fIset\fP, menus will be scrolled up or down one line when you
  ** attempt to move across a screen boundary.  If \fIunset\fP, the screen
  ** is cleared and the next or previous page of the menu is displayed
  ** (useful for slow links to avoid many redraws).
  */
Thomas Roessler's avatar
Thomas Roessler committed
905
  { "meta_key",		DT_BOOL, R_NONE, OPTMETAKEY, 0 },
906 907 908 909 910 911 912 913 914 915
  /*
  ** .pp
  ** If set, forces Mutt to interpret keystrokes with the high bit (bit 8)
  ** set as if the user had pressed the ESC key and whatever key remains
  ** after having the high bit removed.  For example, if the key pressed
  ** has an ASCII value of 0xf4, then this is treated as if the user had
  ** pressed ESC then ``x''.  This is because the result of removing the
  ** high bit from ``0xf4'' is ``0x74'', which is the ASCII character
  ** ``x''.
  */
916
  { "mh_purge",		DT_BOOL, R_NONE, OPTMHPURGE, 0 },
917 918 919 920 921 922 923
  /*
  ** .pp
  ** When unset, mutt will mimic mh's behaviour and rename deleted messages
  ** to \fI,<old file name>\fP in mh folders instead of really deleting
  ** them.  If the variable is set, the message files will simply be
  ** deleted.
  */
924
  { "mime_forward",	DT_QUAD, R_NONE, OPT_MIMEFWD, M_NO },
925 926 927 928 929 930 931 932 933
  /*
  ** .pp
  ** When set, the message you are forwarding will be attached as a
  ** separate MIME part instead of included in the main body of the
  ** message.  This is useful for forwarding MIME messages so the receiver
  ** can properly view the message as it was delivered to you. If you like
  ** to switch between MIME and not MIME from mail to mail, set this
  ** variable to ask-no or ask-yes.
  ** .pp
934
  ** Also see ``$$forward_decode'' and ``$$mime_forward_decode''.
935
  */
Thomas Roessler's avatar
Thomas Roessler committed
936
  { "mime_forward_decode", DT_BOOL, R_NONE, OPTMIMEFORWDECODE, 0 },
937 938 939
  /*
  ** .pp
  ** Controls the decoding of complex MIME messages into text/plain when
940 941
  ** forwarding a message while ``$$mime_forward'' is \fIset\fP. Otherwise
  ** ``$$forward_decode'' is used instead.
942
  */
Thomas Roessler's avatar
Thomas Roessler committed
943
  { "mime_fwd",		DT_SYN,  R_NONE, UL "mime_forward", 0 },
944 945
  /*
  */
946

947 948 949 950 951 952 953 954
  { "mime_forward_rest", DT_QUAD, R_NONE, OPT_MIMEFWDREST, M_YES },
  /*
  ** .pp
  ** When forwarding multiple attachments of a MIME message from the recvattach
  ** menu, attachments which cannot be decoded in a reasonable manner will
  ** be attached to the newly composed message if this option is set.
  */

955
#ifdef MIXMASTER
956
  { "mix_entry_format", DT_STR,  R_NONE, UL &MixEntryFormat, UL "%4n %c %-16s %a" },
957 958 959 960 961 962
  /*
  ** .pp
  ** This variable describes the format of a remailer line on the mixmaster
  ** chain selection screen.  The following printf-like sequences are 
  ** supported:
  ** .pp
963 964 965 966 967 968
  ** .dl
  ** .dt %n .dd The running number on the menu.
  ** .dt %c .dd Remailer capabilities.
  ** .dt %s .dd The remailer's short name.
  ** .dt %a .dd The remailer's e-mail address.
  ** .de
969
  */
970
  { "mixmaster",	DT_PATH, R_NONE, UL &Mixmaster, UL MIXMASTER },
971 972 973 974 975 976 977
  /*
  ** .pp
  ** This variable contains the path to the Mixmaster binary on your
  ** system.  It is used with various sets of parameters to gather the
  ** list of known remailers, and to finally send a message through the
  ** mixmaster chain.
  */
978 979 980
#endif


Thomas Roessler's avatar
Thomas Roessler committed
981
  { "move",		DT_QUAD, R_NONE, OPT_MOVE, M_ASKNO },
982 983 984 985 986 987
  /*
  ** .pp
  ** Controls whether you will be asked to confirm moving read messages
  ** from your spool mailbox to your ``$$mbox'' mailbox, or as a result of
  ** a ``$mbox-hook'' command.
  */
Thomas Roessler's avatar
Thomas Roessler committed
988
  { "message_format",	DT_STR,	 R_NONE, UL &MsgFmt, UL "%s" },
989 990
  /*
  ** .pp
991
  ** This is the string displayed in the ``attachment'' menu for
992
  ** attachments of type message/rfc822.  For a full listing of defined
993
  ** escape sequences see the section on ``$$index_format''.
994
  */
Thomas Roessler's avatar
Thomas Roessler committed
995
  { "msg_format",	DT_SYN,  R_NONE, UL "message_format", 0 },
996 997
  /*
  */
Thomas Roessler's avatar
Thomas Roessler committed
998
  { "pager",		DT_PATH, R_NONE, UL &Pager, UL "builtin" },
999 1000 1001 1002 1003 1004 1005 1006 1007 1008 1009 1010
  /*
  ** .pp
  ** This variable specifies which pager you would like to use to view
  ** messages.  builtin means to use the builtin pager, otherwise this
  ** variable should specify the pathname of the external pager you would
  ** like to use.
  ** .pp
  ** Using an external pager may have some disadvantages: Additional
  ** keystrokes are necessary because you can't call mutt functions
  ** directly from the pager, and screen resizes cause lines longer than
  ** the screen width to be badly formatted in the help menu.
  */
Thomas Roessler's avatar
Thomas Roessler committed
1011
  { "pager_context",	DT_NUM,	 R_NONE, UL &PagerContext, 0 },
1012 1013 1014 1015 1016 1017 1018
  /*
  ** .pp
  ** This variable controls the number of lines of context that are given
  ** when displaying the next or previous page in the internal pager.  By
  ** default, Mutt will display the line after the last one on the screen
  ** at the top of the next page (0 lines of context).
  */
Thomas Roessler's avatar
Thomas Roessler committed
1019
  { "pager_format",	DT_STR,	 R_PAGER, UL &PagerFmt, UL "-%Z- %C/%m: %-20.20n   %s" },
1020 1021 1022 1023
  /*
  ** .pp
  ** This variable controls the format of the one-line message ``status''
  ** displayed before each message in either the internal or an external
1024
  ** pager.  The valid sequences are listed in the ``$$index_format''
1025 1026
  ** section.
  */
Thomas Roessler's avatar
Thomas Roessler committed
1027
  { "pager_index_lines",DT_NUM,	 R_PAGER, UL &PagerIndexLines, 0 },
1028 1029 1030 1031 1032 1033 1034 1035 1036 1037 1038 1039 1040 1041
  /*
  ** .pp
  ** Determines the number of lines of a mini-index which is shown when in
  ** the pager.  The current message, unless near the top or bottom of the
  ** folder, will be roughly one third of the way down this mini-index,
  ** giving the reader the context of a few messages before and after the
  ** message.  This is useful, for example, to determine how many messages
  ** remain to be read in the current thread.  One of the lines is reserved
  ** for the status bar from the index, so a \fIpager_index_lines\fP of 6
  ** will only show 5 lines of the actual index.  A value of 0 results in
  ** no index being shown.  If the number of messages in the current folder
  ** is less than \fIpager_index_lines\fP, then the index will only use as
  ** many lines as it needs.
  */
Thomas Roessler's avatar
Thomas Roessler committed
1042
  { "pager_stop",	DT_BOOL, R_NONE, OPTPAGERSTOP, 0 },
1043 1044 1045 1046 1047 1048
  /*
  ** .pp
  ** When set, the internal-pager will \fBnot\fP move to the next message
  ** when you are at the end of a message and invoke the \fInext-page\fP
  ** function.
  */
Thomas Roessler's avatar
Thomas Roessler committed
1049 1050
  

1051
#ifdef HAVE_PGP
Thomas Roessler's avatar
Thomas Roessler committed
1052 1053

  { "pgp_autosign",	DT_BOOL, R_NONE, OPTPGPAUTOSIGN, 0 },
1054 1055 1056 1057 1058 1059 1060
  /*
  ** .pp
  ** Setting this variable will cause Mutt to always attempt to PGP/MIME
  ** sign outgoing messages.  This can be overridden by use of the \fIpgp-
  ** menu\fP, when signing is not required or encryption is requested as
  ** well.
  */
Thomas Roessler's avatar
Thomas Roessler committed
1061
  { "pgp_autoencrypt",	DT_BOOL, R_NONE, OPTPGPAUTOENCRYPT, 0 },
1062 1063 1064 1065 1066 1067 1068 1069
  /*
  ** .pp
  ** Setting this variable will cause Mutt to always attempt to PGP/MIME
  ** encrypt outgoing messages.  This is probably only useful in connection
  ** to the \fIsend-hook\fP command.  It can be overridden by use of the
  ** \fIpgp-menu\fP, when encryption is not required or signing is
  ** requested as well.
  */
1070 1071 1072 1073 1074 1075 1076
  { "pgp_ignore_subkeys", DT_BOOL, R_NONE, OPTPGPIGNORESUB, 1},
  /*
  ** .pp
  ** Setting this variable will cause Mutt to ignore OpenPGP subkeys. Instead,
  ** the principal key will inherit the subkeys' capabilities.  Unset this
  ** if you want to play interesting key selection games.
  */
1077
  { "pgp_entry_format", DT_STR,  R_NONE, UL &PgpEntryFormat, UL "%4n %t%f %4l/0x%k %-4a %2c %u" },
1078 1079 1080 1081 1082 1083
  /*
  ** .pp
  ** This variable allows you to customize the PGP key selection menu to
  ** your personal taste. This string is similar to ``$$index_format'', but
  ** has its own set of printf()-like sequences:
  ** .pp
1084 1085 1086 1087 1088 1089 1090 1091 1092 1093 1094
  ** .dl
  ** .dt %n     .dd number
  ** .dt %k     .dd key id
  ** .dt %u     .dd user id
  ** .dt %a     .dd algorithm
  ** .dt %l     .dd key length
  ** .dt %f     .dd flags
  ** .dt %c     .dd capabilities
  ** .dt %t     .dd trust/validity of the key-uid association
  ** .dt %[<s>] .dd date of the key where <s> is an strftime(3) expression
  ** .de
1095
  */
1096
  { "pgp_good_sign",	DT_RX,  R_NONE, UL &PgpGoodSign, 0 },
1097 1098 1099 1100 1101 1102 1103
  /*
  ** .pp
  ** If you assign a text to this variable, then a PGP signature is only
  ** considered verified if the output from $$pgp_verify_command contains
  ** the text. Use this variable if the exit code from the command is 0
  ** even for bad signatures.
  */ 
Thomas Roessler's avatar
Thomas Roessler committed
1104
  { "pgp_long_ids",	DT_BOOL, R_NONE, OPTPGPLONGIDS, 0 },
1105 1106 1107 1108
  /*
  ** .pp
  ** If set, use 64 bit PGP key IDs. Unset uses the normal 32 bit Key IDs.
  */
Thomas Roessler's avatar
Thomas Roessler committed
1109
  { "pgp_replyencrypt",	DT_BOOL, R_NONE, OPTPGPREPLYENCRYPT, 0 },
1110 1111 1112 1113 1114
  /*
  ** .pp
  ** If set, automatically PGP encrypt replies to messages which are
  ** encrypted.
  */
Thomas Roessler's avatar
Thomas Roessler committed
1115
  { "pgp_replysign",	DT_BOOL, R_NONE, OPTPGPREPLYSIGN, 0 },
1116 1117 1118 1119 1120 1121 1122
  /*
  ** .pp
  ** If set, automatically PGP sign replies to messages which are signed.
  ** .pp
  ** \fBNote:\fP this does not work on messages that are encrypted
  ** \fBand\fP signed!
  */
1123
  { "pgp_replysignencrypted", DT_BOOL, R_NONE, OPTPGPREPLYSIGNENCRYPTED, 0 },
1124 1125 1126 1127 1128 1129 1130 1131 1132
  /*
  ** .pp
  ** If set, automatically PGP sign replies to messages which are
  ** encrypted. This makes sense in combination with
  ** ``$$pgp_replyencrypt'', because it allows you to sign all messages
  ** which are automatically encrypted.  This works around the problem
  ** noted in ``$$pgp_replysign'', that mutt is not able to find out
  ** whether an encrypted message is also signed.
  */
1133
  { "pgp_retainable_sigs", DT_BOOL, R_NONE, OPTPGPRETAINABLESIG, 0 },
1134 1135 1136 1137 1138 1139 1140 1141 1142
  /*
  ** .pp
  ** If set, signed and encrypted messages will consist of nested
  ** multipart/signed and multipart/encrypted body parts.
  ** .pp
  ** This is useful for applications like encrypted and signed mailing
  ** lists, where the outer layer (multipart/encrypted) can be easily
  ** removed, while the inner multipart/signed part is retained.
  */
1143
  { "pgp_show_unusable", DT_BOOL, R_NONE, OPTPGPSHOWUNUSABLE, 1 },
1144 1145 1146 1147 1148 1149
  /*
  ** .pp
  ** If set, mutt will display non-usable keys on the PGP key selection
  ** menu.  This includes keys which have been revoked, have expired, or
  ** have been marked as ``disabled'' by the user.
  */
Thomas Roessler's avatar
Thomas Roessler committed
1150
  { "pgp_sign_as",	DT_STR,	 R_NONE, UL &PgpSignAs, 0 },
1151 1152 1153 1154
  /*
  ** .pp
  ** If you have more than one key pair, this option allows you to specify
  ** which of your private keys to use.  It is recommended that you use the
Thomas Roessler's avatar
Thomas Roessler committed
1155
  ** keyid form to specify your key (e.g., ``0x00112233'').
1156
  */
Thomas Roessler's avatar
Thomas Roessler committed
1157
  { "pgp_sign_micalg",	DT_STR,	 R_NONE, UL &PgpSignMicalg, UL "pgp-md5" },
1158 1159 1160 1161 1162 1163 1164 1165 1166 1167 1168 1169 1170
  /*
  ** .pp
  ** This variable contains the default message integrity check algorithm.
  ** Valid values are ``pgp-md5'', ``pgp-sha1'', and ``pgp-rmd160''. If you
  ** select a signing key using the sign as option on the compose menu,
  ** mutt will automagically figure out the correct value to insert here,
  ** but it does not know about the user's default key.
  ** .pp
  ** So if you are using an RSA key for signing, set this variable to
  ** ``pgp-md5'', if you use a PGP 5 DSS key for signing, say ``pgp-sha1''
  ** here. The value of this variable will show up in the micalg parameter
  ** of MIME headers when creating RFC 2015 signatures.
  */
Thomas Roessler's avatar
Thomas Roessler committed
1171
  { "pgp_strict_enc",	DT_BOOL, R_NONE, OPTPGPSTRICTENC, 1 },
1172 1173 1174 1175 1176 1177 1178
  /*
  ** .pp
  ** If set, Mutt will automatically encode PGP/MIME signed messages as
  ** \fIquoted-printable\fP.  Please note that unsetting this variable may
  ** lead to problems with non-verifyable PGP signatures, so only change
  ** this if you know what you are doing.
  */
Thomas Roessler's avatar
Thomas Roessler committed
1179
  { "pgp_timeout",	DT_NUM,	 R_NONE, UL &PgpTimeout, 300 },
1180 1181 1182 1183 1184
  /*
  ** .pp
  ** The number of seconds after which a cached passphrase will expire if
  ** not used.
  */
Thomas Roessler's avatar
Thomas Roessler committed
1185
  { "pgp_verify_sig",	DT_QUAD, R_NONE, OPT_VERIFYSIG, M_YES },
1186 1187 1188 1189 1190 1191
  /*
  ** .pp
  ** If ``yes'', always attempt to verify PGP/MIME signatures.  If ``ask'',
  ** ask whether or not to verify the signature.  If ``no'', never attempt
  ** to verify PGP/MIME signatures.
  */
1192
  { "pgp_sort_keys",	DT_SORT|DT_SORT_KEYS, R_NONE, UL &PgpSortKeys, SORT_ADDRESS },
1193 1194 1195 1196 1197
  /*
  ** .pp
  ** Specifies how the entries in the `pgp keys' menu are sorted. The
  ** following are legal values:
  ** .pp
1198 1199 1200 1201 1202 1203
  ** .dl
  ** .dt address .dd sort alphabetically by user id
  ** .dt keyid   .dd sort alphabetically by key id
  ** .dt date    .dd sort by key creation date
  ** .dt trust   .dd sort by the trust of the key
  ** .de
1204 1205 1206 1207
  ** .pp
  ** If you prefer reverse order of the above values, prefix it with
  ** `reverse-'.
  */
1208 1209 1210 1211 1212 1213 1214 1215 1216 1217 1218 1219 1220
  { "pgp_create_traditional", DT_QUAD, R_NONE, OPT_PGPTRADITIONAL, M_NO },
  /*
  ** .pp
  ** This option controls whether Mutt generates old-style PGP encrypted
  ** or signed messages under certain circumstances.
  ** .pp
  ** Note that PGP/MIME will be used automatically for messages which have
  ** a character set different from us-ascii, or which consist of more than
  ** a single MIME part.
  ** .pp
  ** Also note that using the old-style PGP message format is \fBstrongly\fP
  ** \fBdeprecated\fP.
  */
1221

1222 1223 1224
  /* XXX Default values! */
  
  { "pgp_decode_command", 	DT_STR, R_NONE, UL &PgpDecodeCommand, 0},
1225 1226 1227 1228 1229 1230 1231
  /*
  ** .pp
  ** This format strings specifies a command which is used to decode 
  ** application/pgp attachments.
  ** .pp
  ** The PGP command formats have their own set of printf-like sequences:
  ** .pp
1232 1233 1234 1235 1236 1237 1238 1239 1240
  ** .dl
  ** .dt %p .dd Expands to PGPPASSFD=0 when a pass phrase is needed, to an empty
  **            string otherwise. Note: This may be used with a %? construct.
  ** .dt %f .dd Expands to the name of a file containing a message.
  ** .dt %s .dd Expands to the name of a file containing the signature part
  ** .          of a multipart/signed attachment when verifying it.
  ** .dt %a .dd The value of $$pgp_sign_as.
  ** .dt %r .dd One or more key IDs.
  ** .de
1241 1242 1243 1244 1245 1246
  ** .pp
  ** For examples on how to configure these formats for the various versions
  ** of PGP which are floating around, see the pgp*.rc and gpg.rc files in
  ** the samples/ subdirectory which has been installed on your system
  ** alongside the documentation.
  */
1247
  { "pgp_getkeys_command",	DT_STR, R_NONE, UL &PgpGetkeysCommand, 0},
1248 1249 1250 1251 1252
  /*
  ** .pp
  ** This command is invoked whenever mutt will need public key information.
  ** %r is the only printf-like sequence used with this format.
  */
1253
  { "pgp_verify_command", 	DT_STR, R_NONE, UL &PgpVerifyCommand, 0},
1254 1255 1256 1257
  /*
  ** .pp
  ** This command is used to verify PGP/MIME signatures.
  */
1258
  { "pgp_decrypt_command", 	DT_STR, R_NONE, UL &PgpDecryptCommand, 0},
1259 1260 1261 1262
  /*
  ** .pp
  ** This command is used to decrypt a PGP/MIME encrypted message.
  */  
1263 1264 1265 1266 1267 1268
  { "pgp_clearsign_command",	DT_STR,	R_NONE, UL &PgpClearSignCommand, 0 },
  /*
  ** .pp
  ** This format is used to create a "clearsigned" old-style PGP attachment.
  ** Note that the use of this format is \fBstrongly\fP \fBdeprecated\fP.
  */
1269
  { "pgp_sign_command",		DT_STR, R_NONE, UL &PgpSignCommand, 0},
1270 1271 1272 1273 1274
  /*
  ** .pp
  ** This command is used to create the detached PGP signature for a 
  ** multipart/signed PGP/MIME body part.
  */  
1275
  { "pgp_encrypt_sign_command",	DT_STR, R_NONE, UL &PgpEncryptSignCommand, 0},
1276 1277 1278 1279
  /*
  ** .pp
  ** This command is used to combinedly sign/encrypt a body part.
  */  
1280
  { "pgp_encrypt_only_command", DT_STR, R_NONE, UL &PgpEncryptOnlyCommand, 0},
1281 1282 1283 1284
  /*
  ** .pp
  ** This command is used to encrypt a body part without signing it.
  */  
1285
  { "pgp_import_command",	DT_STR, R_NONE, UL &PgpImportCommand, 0},
1286 1287 1288 1289 1290
  /*
  ** .pp
  ** This command is used to import a key from a message into 
  ** the user's public key ring.
  */  
1291
  { "pgp_export_command", 	DT_STR, R_NONE, UL &PgpExportCommand, 0},
1292 1293 1294 1295 1296
  /*
  ** .pp
  ** This command is used to export a public key from the user's
  ** key ring.
  */  
1297
  { "pgp_verify_key_command",	DT_STR, R_NONE, UL &PgpVerifyKeyCommand, 0},
1298 1299 1300 1301 1302
  /*
  ** .pp
  ** This command is used to verify key information from the key selection
  ** menu.
  */  
1303
  { "pgp_list_secring_command",	DT_STR, R_NONE, UL &PgpListSecringCommand, 0},
1304 1305 1306 1307 1308 1309 1310 1311 1312
  /*
  ** .pp
  ** This command is used to list the secret key ring's contents.  The
  ** output format must be analogous to the one used by 
  ** gpg --list-keys --with-colons.
  ** .pp
  ** This format is also generated by the pgpring utility which comes 
  ** with mutt.
  */  
1313
  { "pgp_list_pubring_command", DT_STR, R_NONE, UL &PgpListPubringCommand, 0},
1314 1315 1316 1317 1318 1319 1320 1321 1322
  /*
  ** .pp
  ** This command is used to list the public key ring's contents.  The
  ** output format must be analogous to the one used by 
  ** gpg --list-keys --with-colons.
  ** .pp
  ** This format is also generated by the pgpring utility which comes 
  ** with mutt.
  */  
1323
  { "forward_decrypt",	DT_BOOL, R_NONE, OPTFORWDECRYPT, 1 },
1324 1325 1326 1327
  /*
  ** .pp
  ** Controls the handling of encrypted messages when forwarding a message.
  ** When set, the outer layer of encryption is stripped off.  This
1328 1329
  ** variable is only used if ``$$mime_forward'' is \fIset\fP and
  ** ``$$mime_forward_decode'' is \fIunset\fP.
1330
  */
1331
  { "forw_decrypt",	DT_SYN,  R_NONE, UL "forward_decrypt", 0 },
1332 1333
  /*
  */
1334
#endif /* HAVE_PGP */
Thomas Roessler's avatar
Thomas Roessler committed
1335
  
1336
#if defined(USE_SSL)||defined(USE_NSS)
1337 1338 1339 1340 1341 1342 1343 1344
  { "certificate_file",	DT_PATH, R_NONE, UL &SslCertFile, 0 },
  /*
  ** .pp
  ** This variable specifies the file where the certificates you trust
  ** are saved. When an unknown certificate is encountered, you are asked
  ** if you accept it or not. If you accept it, the certificate can also 
  ** be saved in this file and further connections are automatically 
  ** accepted.
1345 1346 1347 1348 1349 1350 1351 1352 1353 1354 1355 1356 1357
  ** .pp
  ** You can also manually add CA certificates in this file. Any server
  ** certificate that is signed with one of these CA certificates are 
  ** also automatically accepted.
  ** .pp
  ** Example: set certificate_file=~/.mutt/certificates
  */
  { "ssl_usesystemcerts", DT_BOOL, R_NONE, OPTSSLSYSTEMCERTS, 1 },
  /*
  ** .pp
  ** If set to \fIyes\fP, mutt will use CA certificates in the
  ** system-wide certificate store when checking if server certificate 
  ** is signed by a trusted CA.
1358
  */
1359
  { "entropy_file",	DT_PATH, R_NONE, UL &SslEntropyFile, 0 },
1360 1361
  /*
  ** .pp
1362 1363 1364
  ** The file which includes random data that is used to initalize SSL
  ** library functions.
   */
1365 1366 1367 1368 1369 1370 1371 1372 1373 1374 1375 1376 1377 1378 1379 1380 1381 1382
  { "ssl_use_sslv2", DT_BOOL, R_NONE, OPTSSLV2, 1 },
  /*
  ** .pp
  ** This variables specifies whether to attempt to use SSLv2 in the
  ** SSL authentication process.
  */
  { "ssl_use_sslv3", DT_BOOL, R_NONE, OPTSSLV3, 1 },
  /*
  ** .pp
  ** This variables specifies whether to attempt to use SSLv3 in the
  ** SSL authentication process.
  */
  { "ssl_use_tlsv1", DT_BOOL, R_NONE, OPTTLSV1, 1 },
  /*
  ** .pp
  ** This variables specifies whether to attempt to use TLSv1 in the
  ** SSL authentication process.
  */
1383 1384
#endif

Thomas Roessler's avatar
Thomas Roessler committed
1385
  { "pipe_split",	DT_BOOL, R_NONE, OPTPIPESPLIT, 0 },
1386 1387 1388 1389 1390 1391 1392 1393 1394
  /*
  ** .pp
  ** Used in connection with the \fIpipe-message\fP command and the ``tag-
  ** prefix'' operator.  If this variable is unset, when piping a list of
  ** tagged messages Mutt will concatenate the messages and will pipe them
  ** as a single folder.  When set, Mutt will pipe the messages one by one.
  ** In both cases the the messages are piped in the current sorted order,
  ** and the ``$$pipe_sep'' separator is added after each message.
  */
Thomas Roessler's avatar
Thomas Roessler committed
1395
  { "pipe_decode",	DT_BOOL, R_NONE, OPTPIPEDECODE, 0 },
1396 1397 1398 1399 1400 1401 1402
  /*
  ** .pp
  ** Used in connection with the \fIpipe-message\fP command.  When unset,
  ** Mutt will pipe the messages without any preprocessing. When set, Mutt
  ** will weed headers and will attempt to PGP/MIME decode the messages
  ** first.
  */
Thomas Roessler's avatar
Thomas Roessler committed
1403
  { "pipe_sep",		DT_STR,	 R_NONE, UL &PipeSep, UL "\n" },
1404 1405 1406 1407 1408
  /*
  ** .pp
  ** The separator to add between messages when piping a list of tagged
  ** messages to an external Unix command.
  */
Thomas Roessler's avatar
Thomas Roessler committed
1409
#ifdef USE_POP
1410 1411 1412 1413 1414 1415
  { "pop_checkinterval", DT_NUM, R_NONE, UL &PopCheckTimeout, 60 },
  /*
  ** .pp
  ** This variable configures how often (in seconds) POP should look for
  ** new mail.
  */
1416
  { "pop_delete",	DT_QUAD, R_NONE, OPT_POPDELETE, M_ASKNO },
1417 1418 1419 1420 1421 1422
  /*
  ** .pp
  ** If set, Mutt will delete successfully downloaded messages from the POP
  ** server when using the fetch-mail function.  When unset, Mutt will
  ** download messages but also leave them on the POP server.
  */
Thomas Roessler's avatar
Thomas Roessler committed
1423
  { "pop_host",		DT_STR,	 R_NONE, UL &PopHost, UL "" },
1424 1425
  /*
  ** .pp
1426 1427
  ** The name of your POP server for the fetch-mail function.  You
  ** can also specify an alternative port, username and password, ie:
1428
  ** .pp
1429
  ** [pop[s]://][username[:password]@]popserver[:port]
1430 1431 1432 1433 1434
  */
  { "pop_last",		DT_BOOL, R_NONE, OPTPOPLAST, 0 },
  /*
  ** .pp
  ** If this variable is set, mutt will try to use the "LAST" POP command
1435 1436 1437 1438 1439 1440 1441 1442
  ** for retrieving only unread messages from the POP server when using
  ** the fetch-mail function.
  */
  { "pop_reconnect",	DT_QUAD, R_NONE, OPT_POPRECONNECT, M_ASKYES },
  /*
  ** .pp
  ** Controls whether or not Mutt will try to reconnect to POP server when
  ** connection lost.
1443
  */
1444
  { "pop_user",		DT_STR,	 R_NONE, UL &PopUser, 0 },
1445 1446
  /*
  ** .pp
1447
  ** Your login name on the POP server.
1448
  ** .pp
1449
  ** This variable defaults to your user name on the local machine.
1450 1451 1452 1453
  */
  { "pop_pass",		DT_STR,	 R_NONE, UL &PopPass, UL "" },
  /*
  ** .pp
1454 1455 1456 1457 1458
  ** Specifies the password for your POP account.  If unset, Mutt will
  ** prompt you for your password when you open POP mailbox.
  ** \fBWarning\fP: you should only use this option when you are on a
  ** fairly secure machine, because the superuser can read your muttrc
  ** even if you are the only one who can read the file.
1459
  */
Thomas Roessler's avatar
Thomas Roessler committed
1460 1461
#endif /* USE_POP */
  { "post_indent_string",DT_STR, R_NONE, UL &PostIndentString, UL "" },
1462 1463 1464 1465 1466
  /*
  ** .pp
  ** Similar to the ``$$attribution'' variable, Mutt will append this
  ** string after the inclusion of a message which is being replied to.
  */
Thomas Roessler's avatar
Thomas Roessler committed
1467
  { "post_indent_str",  DT_SYN,  R_NONE, UL "post_indent_string", 0 },
1468 1469
  /*
  */
Thomas Roessler's avatar
Thomas Roessler committed
1470
  { "postpone",		DT_QUAD, R_NONE, OPT_POSTPONE, M_ASKYES },
1471 1472 1473 1474 1475
  /*
  ** .pp
  ** Controls whether or not messages are saved in the ``$$postponed''
  ** mailbox when you elect not to send immediately.
  */
Thomas Roessler's avatar
Thomas Roessler committed
1476
  { "postponed",	DT_PATH, R_NONE, UL &Postponed, UL "~/postponed" },
1477 1478 1479 1480 1481 1482 1483
  /*
  ** .pp
  ** Mutt allows you to indefinitely ``$postpone sending a message'' which
  ** you are editing.  When you choose to postpone a message, Mutt saves it
  ** in the folder specified by this variable.  Also see the ``$$postpone''
  ** variable.
  */
1484 1485 1486 1487 1488 1489 1490 1491 1492 1493 1494 1495 1496 1497 1498 1499 1500 1501 1502
#ifdef USE_SOCKET
  { "preconnect",	DT_STR, R_NONE, UL &Preconnect, UL 0},
  /*
  ** .pp
  ** If set, a shell command to be executed if mutt fails to establish
  ** a connection to the server. This is useful for setting up secure
  ** connections, e.g. with ssh(1). If the command returns a  nonzero
  ** status, mutt gives up opening the server. Example:
  ** .pp
  ** preconnect="ssh -f -q -L 1234:mailhost.net:143 mailhost.net
  **                   sleep 20 < /dev/null > /dev/null"
  ** .pp
  ** Mailbox 'foo' on mailhost.net can now be reached
  ** as '{localhost:1234}foo'.
  ** .pp
  ** NOTE: For this example to work, you must be able to log in to the
  ** remote machine without having to enter a password.
  */
#endif /* USE_SOCKET */
Thomas Roessler's avatar
Thomas Roessler committed
1503
  { "print",		DT_QUAD, R_NONE, OPT_PRINT, M_ASKNO },
1504 1505 1506 1507 1508
  /*
  ** .pp
  ** Controls whether or not Mutt asks for confirmation before printing.
  ** This is useful for people (like me) who accidentally hit ``p'' often.
  */
Thomas Roessler's avatar
Thomas Roessler committed
1509
  { "print_command",	DT_PATH, R_NONE, UL &PrintCmd, UL "lpr" },
1510 1511 1512 1513
  /*
  ** .pp
  ** This specifies the command pipe that should be used to print messages.
  */
Thomas Roessler's avatar
Thomas Roessler committed
1514
  { "print_cmd",	DT_SYN,  R_NONE, UL "print_command", 0 },
1515 1516
  /*
  */
1517 1518 1519 1520 1521 1522 1523 1524 1525 1526 1527
  { "print_decode",	DT_BOOL, R_NONE, OPTPRINTDECODE, 1 },
  /*
  ** .pp
  ** Used in connection with the print-message command.  If this
  ** option is set, the message is decoded before it is passed to the
  ** external command specified by $$print_command.  If this option
  ** is unset, no processing will be applied to the message when
  ** printing it.  The latter setting may be useful if you are using
  ** some advanced printer filter which is able to properly format
  ** e-mail messages for printing.
  */
Thomas Roessler's avatar
Thomas Roessler committed
1528
  { "prompt_after",	DT_BOOL, R_NONE, OPTPROMPTAFTER, 1 },
1529 1530
  /*
  ** .pp
1531
  ** If you use an \fIexternal\fP ``$$pager'', setting this variable will
1532 1533 1534 1535
  ** cause Mutt to prompt you for a command when the pager exits rather
  ** than returning to the index menu.  If unset, Mutt will return to the
  ** index menu when the external pager exits.
  */
Thomas Roessler's avatar
Thomas Roessler committed
1536
  { "query_command",	DT_PATH, R_NONE, UL &QueryCmd, UL "" },
1537 1538 1539 1540 1541 1542 1543
  /*
  ** .pp
  ** This specifies the command that mutt will use to make external address
  ** queries.  The string should contain a %s, which will be substituted
  ** with the query string the user types.  See ``$query'' for more
  ** information.
  */
Thomas Roessler's avatar
Thomas Roessler committed
1544
  { "quit",		DT_QUAD, R_NONE, OPT_QUIT, M_YES },
1545 1546 1547 1548 1549 1550 1551
  /*
  ** .pp
  ** This variable controls whether ``quit'' and ``exit'' actually quit
  ** from mutt.  If it set to yes, they do quit, if it is set to no, they
  ** have no effect, and if it is set to ask-yes or ask-no, you are
  ** prompted for confirmation when you try to quit.
  */
Thomas Roessler's avatar
Thomas Roessler committed
1552
  { "quote_regexp",	DT_RX,	 R_PAGER, UL &QuoteRegexp, UL "^([ \t]*[|>:}#])+" },
1553 1554 1555 1556 1557 1558 1559 1560 1561 1562
  /*
  ** .pp
  ** A regular expression used in the internal-pager to determine quoted
  ** sections of text in the body of a message.
  ** .pp
  ** \fBNote:\fP In order to use the \fIquoted\fP\fBx\fP patterns in the
  ** internal pager, you need to set this to a regular expression that
  ** matches \fIexactly\fP the quote characters at the beginning of quoted
  ** lines.
  */
Thomas Roessler's avatar
Thomas Roessler committed
1563
  { "read_inc",		DT_NUM,	 R_NONE, UL &ReadInc, 10 },
1564 1565 1566 1567 1568 1569 1570 1571 1572 1573 1574 1575 1576
  /*
  ** .pp
  ** If set to a value greater than 0, Mutt will display which message it
  ** is currently on when reading a mailbox.  The message is printed after
  ** \fIread_inc\fP messages have been read (e.g., if set to 25, Mutt will
  ** print a message when it reads message 25, and then again when it gets
  ** to message 50).  This variable is meant to indicate progress when
  ** reading large mailboxes which may take some time.
  ** When set to 0, only a single message will appear before the reading
  ** the mailbox.
  ** .pp
  ** Also see the ``$$write_inc'' variable.
  */
Thomas Roessler's avatar
Thomas Roessler committed
1577
  { "read_only",	DT_BOOL, R_NONE, OPTREADONLY, 0 },
1578 1579 1580 1581
  /*
  ** .pp
  ** If set, all folders are opened in read-only mode.
  */
Thomas Roessler's avatar
Thomas Roessler committed
1582
  { "realname",		DT_STR,	 R_BOTH, UL &Realname, 0 },
1583 1584 1585 1586 1587 1588 1589 1590 1591
  /*
  ** .pp
  ** This variable specifies what "real" or "personal" name should be used
  ** when sending messages.
  ** .pp
  ** By default, this is the GCOS field from /etc/passwd.  Note that this
  ** variable will \fInot\fP be used when the user has set a real name
  ** in the $$from variable.
  */
Thomas Roessler's avatar
Thomas Roessler committed
1592
  { "recall",		DT_QUAD, R_NONE, OPT_RECALL, M_ASKYES },
1593 1594 1595
  /*
  ** .pp
  ** Controls whether or not you are prompted to recall postponed messages
1596 1597 1598 1599
  ** when composing a new message.  Also see ``$$postponed''.
  ** .pp
  ** Setting this variable to ``yes'' is not generally useful, and thus not
  ** recommended.
1600
  */
Thomas Roessler's avatar
Thomas Roessler committed
1601
  { "record",		DT_PATH, R_NONE, UL &Outbox, UL "" },
1602 1603 1604 1605 1606 1607 1608
  /*
  ** .pp
  ** This specifies the file into which your outgoing messages should be
  ** appended.  (This is meant as the primary method for saving a copy of
  ** your messages, but another way to do this is using the ``$my_hdr''
  ** command to create a \fIBcc:\fP field with your email address in it.)
  ** .pp
1609
  ** The value of \fI$$record\fP is overridden by the ``$$force_name'' and
1610 1611 1612 1613 1614 1615 1616 1617 1618
  ** ``$$save_name'' variables, and the ``$fcc-hook'' command.
  */
  { "reply_regexp",	DT_RX,	 R_INDEX|R_RESORT, UL &ReplyRegexp, UL "^(re([\\[0-9\\]+])*|aw):[ \t]*" },
  /*
  ** .pp
  ** A regular expression used to recognize reply messages when threading
  ** and replying. The default value corresponds to the English "Re:" and
  ** the German "Aw:".
  */
1619
  { "reply_self",	DT_BOOL, R_NONE, OPTREPLYSELF, 0 },
1620 1621 1622 1623 1624 1625
  /*
  ** .pp
  ** If unset and you are replying to a message sent by you, Mutt will
  ** assume that you want to reply to the recipients of that message rather
  ** than to yourself.
  */
Thomas Roessler's avatar
Thomas Roessler committed
1626
  { "reply_to",		DT_QUAD, R_NONE, OPT_REPLYTO, M_ASKYES },
1627 1628 1629 1630 1631 1632 1633 1634 1635
  /*
  ** .pp
  ** If set, Mutt will ask you if you want to use the address listed in the
  ** Reply-To: header field when replying to a message.  If you answer no,
  ** it will use the address in the From: header field instead.  This
  ** option is useful for reading a mailing list that sets the Reply-To:
  ** header field to the list address and you want to send a private
  ** message to the author of a message.
  */
Thomas Roessler's avatar
Thomas Roessler committed
1636
  { "resolve",		DT_BOOL, R_NONE, OPTRESOLVE, 1 },
1637 1638 1639 1640 1641 1642
  /*
  ** .pp
  ** When set, the cursor will be automatically advanced to the next
  ** (possibly undeleted) message whenever a command that modifies the
  ** current message is executed.
  */
Thomas Roessler's avatar
Thomas Roessler committed
1643
  { "reverse_alias",	DT_BOOL, R_BOTH, OPTREVALIAS, 0 },
1644 1645 1646 1647 1648 1649 1650 1651 1652 1653 1654 1655 1656 1657 1658 1659 1660 1661 1662
  /*
  ** .pp
  ** This variable controls whether or not Mutt will display the "personal"
  ** name from your aliases in the index menu if it finds an alias that
  ** matches the message's sender.  For example, if you have the following
  ** alias:
  ** .pp
  ** .ts
  **  alias juser abd30425@somewhere.net (Joe User)
  ** .te
  ** .pp
  ** and then you receive mail which contains the following header:
  ** .pp
  ** .ts
  **  From: abd30425@somewhere.net
  ** .te
  ** .pp
  ** It would be displayed in the index menu as ``Joe User'' instead of
  ** ``abd30425@somewhere.net.''  This is useful when the person's e-mail
1663
  ** address is not human friendly (like CompuServe addresses).
1664
  */