X-Git-Url: http://git.madism.org/?p=apps%2Fmadmutt.git;a=blobdiff_plain;f=init.h;h=aaf956a1ffeb7d7d14fbc57d5761003af1d39295;hp=f7745f29afb28c442d59a2b80792f229e2b4c140;hb=452ffdd4bbcd8f2dd9e4811c115824b556814ebb;hpb=e01486aabea6f0af36933158bd58b9ab03b30add diff --git a/init.h b/init.h index f7745f2..aaf956a 100644 --- a/init.h +++ b/init.h @@ -18,51 +18,56 @@ #endif #include "buffy.h" +#include "mutt.h" +#include "version.h" +#include "lib/debug.h" #ifndef _MAKEDOC -#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 */ -#define DT_ADDR 10 /* e-mail address */ +#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 */ +#define DT_ADDR 10 /* e-mail address */ +#define DT_USER 11 /* user defined via $user_ */ +#define DT_SYS 12 /* pre-defined via $muttng_ */ #define DTYPE(x) ((x) & DT_MASK) /* subtypes */ -#define DT_SUBTYPE_MASK 0xf0 -#define DT_SORT_ALIAS 0x10 +#define DT_SUBTYPE_MASK 0xf0 +#define DT_SORT_ALIAS 0x10 #define DT_SORT_BROWSER 0x20 -#define DT_SORT_KEYS 0x40 -#define DT_SORT_AUX 0x80 +#define DT_SORT_KEYS 0x40 +#define DT_SORT_AUX 0x80 /* 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 */ +#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_RESORT_INIT (1<<4) /* resort from scratch */ -#define R_TREE (1<<5) /* redraw the thread tree */ -#define R_BOTH (R_INDEX|R_PAGER) -#define R_RESORT_BOTH (R_RESORT|R_RESORT_SUB) +#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_RESORT_INIT (1<<4) /* resort from scratch */ +#define R_TREE (1<<5) /* redraw the thread tree */ +#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 */ + char* init; }; struct feature_t { @@ -124,7 +129,25 @@ struct feature_t { struct option_t MuttVars[] = { /*++*/ - {"abort_nosubject", DT_QUAD, R_NONE, OPT_SUBJECT, M_ASKYES}, + {"abort_noattach", DT_QUAD, R_NONE, OPT_ATTACH, "no" }, + /* + ** .pp + ** This variable specifies whether to abort sending if no attachment + ** was made but the content references them, i.e. the content + ** matches the regular expression given in + ** $$attach_remind_regexp. If a match was found and this + ** variable is set to \fIyes\fP, message sending will be aborted + ** but the mail will be send nevertheless if set to \fIno\fP. + ** + ** .pp + ** This variable and $$attach_remind_regexp are intended to + ** remind the user to attach files if the message's text + ** references them. + ** + ** .pp + ** See also the $$attach_remind_regexp variable. + */ + {"abort_nosubject", DT_QUAD, R_NONE, OPT_SUBJECT, "ask-yes" }, /* ** .pp ** If set to \fIyes\fP, when composing messages and no subject is given @@ -132,7 +155,7 @@ struct option_t MuttVars[] = { ** \fIno\fP, composing messages with no subject given at the subject ** prompt will never be aborted. */ - {"abort_unmodified", DT_QUAD, R_NONE, OPT_ABORT, M_YES}, + {"abort_unmodified", DT_QUAD, R_NONE, OPT_ABORT, "yes" }, /* ** .pp ** If set to \fIyes\fP, composition will automatically abort after @@ -140,7 +163,7 @@ struct option_t MuttVars[] = { ** check only happens after the \fIfirst\fP edit of the file). When set ** to \fIno\fP, composition will never be aborted. */ - {"alias_file", DT_PATH, R_NONE, UL &AliasFile, UL "~/.muttngrc"}, + {"alias_file", DT_PATH, R_NONE, UL &AliasFile, "~/.muttngrc"}, /* ** .pp ** The default file in which to save aliases created by the @@ -149,7 +172,7 @@ struct option_t MuttVars[] = { ** \fBNote:\fP Mutt-ng will not automatically source this file; you must ** explicitly use the ``$source'' command for it to be executed. */ - {"alias_format", DT_STR, R_NONE, UL &AliasFmt, UL "%4n %2f %t %-10a %r"}, + {"alias_format", DT_STR, R_NONE, UL &AliasFmt, "%4n %2f %t %-10a %r"}, /* ** .pp ** Specifies the format of the data displayed for the ``alias'' menu. The @@ -163,13 +186,13 @@ struct option_t MuttVars[] = { ** .dt %t .dd character which indicates if the alias is tagged for inclusion ** .de */ - {"allow_8bit", DT_BOOL, R_NONE, OPTALLOW8BIT, 1}, + {"allow_8bit", DT_BOOL, R_NONE, OPTALLOW8BIT, "yes" }, /* ** .pp ** Controls whether 8-bit data is converted to 7-bit using either ** \fTquoted-printable\fP or \fTbase64\fP encoding when sending mail. */ - {"allow_ansi", DT_BOOL, R_NONE, OPTALLOWANSI, 0}, + {"allow_ansi", DT_BOOL, R_NONE, OPTALLOWANSI, "no" }, /* ** .pp ** Controls whether ANSI color codes in messages (and color tags in @@ -180,7 +203,7 @@ struct option_t MuttVars[] = { ** message could include a line like ``\fT[-- PGP output follows ...\fP" and ** give it the same color as your attachment color. */ - {"arrow_cursor", DT_BOOL, R_BOTH, OPTARROWCURSOR, 0}, + {"arrow_cursor", DT_BOOL, R_BOTH, OPTARROWCURSOR, "no" }, /* ** .pp ** When \fIset\fP, an arrow (``\fT->\fP'') will be used to indicate the current entry @@ -189,25 +212,25 @@ struct option_t MuttVars[] = { ** be redrawn on the screen when moving to the next or previous entries ** in the menu. */ - {"ascii_chars", DT_BOOL, R_BOTH, OPTASCIICHARS, 0}, + {"ascii_chars", DT_BOOL, R_BOTH, OPTASCIICHARS, "no" }, /* ** .pp ** If \fIset\fP, Mutt-ng will use plain ASCII characters when displaying thread ** and attachment trees, instead of the default \fTACS\fP characters. */ - {"askbcc", DT_BOOL, R_NONE, OPTASKBCC, 0}, + {"askbcc", DT_BOOL, R_NONE, OPTASKBCC, "no" }, /* ** .pp ** If \fIset\fP, Mutt-ng will prompt you for blind-carbon-copy (Bcc) recipients ** before editing an outgoing message. */ - {"askcc", DT_BOOL, R_NONE, OPTASKCC, 0}, + {"askcc", DT_BOOL, R_NONE, OPTASKCC, "no" }, /* ** .pp ** If \fIset\fP, Mutt-ng will prompt you for carbon-copy (Cc) recipients before ** editing the body of an outgoing message. */ - {"assumed_charset", DT_STR, R_NONE, UL &AssumedCharset, UL "us-ascii"}, + {"assumed_charset", DT_STR, R_NONE, UL &AssumedCharset, "us-ascii"}, /* ** .pp ** This variable is a colon-separated list of character encoding @@ -226,7 +249,7 @@ struct option_t MuttVars[] = { */ #ifdef USE_NNTP {"ask_followup_to", DT_SYN, R_NONE, UL "nntp_ask_followup_to", 0}, - {"nntp_ask_followup_to", DT_BOOL, R_NONE, OPTASKFOLLOWUP, 0}, + {"nntp_ask_followup_to", DT_BOOL, R_NONE, OPTASKFOLLOWUP, "no" }, /* ** .pp ** Availability: NNTP @@ -236,7 +259,7 @@ struct option_t MuttVars[] = { ** field before editing the body of an outgoing news article. */ {"ask_x_comment_to", DT_SYN, R_NONE, UL "nntp_ask_x_comment_to", 0}, - {"nntp_ask_x_comment_to", DT_BOOL, R_NONE, OPTASKXCOMMENTTO, 0}, + {"nntp_ask_x_comment_to", DT_BOOL, R_NONE, OPTASKXCOMMENTTO, "no" }, /* ** .pp ** Availability: NNTP @@ -246,7 +269,7 @@ struct option_t MuttVars[] = { ** field before editing the body of an outgoing news article. */ #endif - {"attach_format", DT_STR, R_NONE, UL &AttachFormat, UL "%u%D%I %t%4n %T%.40d%> [%.7m/%.10M, %.6e%?C?, %C?, %s] "}, + {"attach_format", DT_STR, R_NONE, UL &AttachFormat, "%u%D%I %t%4n %T%.40d%> [%.7m/%.10M, %.6e%?C?, %C?, %s] "}, /* ** .pp ** This variable describes the format of the ``attachment'' menu. The @@ -271,13 +294,23 @@ struct option_t MuttVars[] = { ** .dt %|X .dd pad to the end of the line with character "X" ** .de */ - {"attach_sep", DT_STR, R_NONE, UL &AttachSep, UL "\n"}, + {"attach_remind_regexp", DT_RX, R_NONE, UL &AttachRemindRegexp, "attach"}, + /* + ** .pp + ** If this variable is non-empty, muttng will scan a message's contents + ** before sending for this regular expression. If it is found, it will + ** ask for what to do depending on the setting of $$abort_noattach. + ** .pp + ** This variable and $$abort_noattach are intended to remind the user + ** to attach files if the message's text references them. + */ + {"attach_sep", DT_STR, R_NONE, UL &AttachSep, "\n"}, /* ** .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}, + {"attach_split", DT_BOOL, R_NONE, OPTATTACHSPLIT, "yes" }, /* ** .pp ** If this variable is \fIunset\fP, when operating (saving, printing, piping, @@ -286,14 +319,14 @@ struct option_t MuttVars[] = { ** ``$$attach_sep'' separator is added after each attachment. When \fIset\fP, ** Mutt-ng will operate on the attachments one by one. */ - {"attribution", DT_STR, R_NONE, UL &Attribution, UL "On %d, %n wrote:"}, + {"attribution", DT_STR, R_NONE, UL &Attribution, "On %d, %n wrote:"}, /* ** .pp ** This is the string that will precede a message which has been included ** in a reply. For a full listing of defined \fTprintf(3)\fP-like sequences see ** the section on ``$$index_format''. */ - {"autoedit", DT_BOOL, R_NONE, OPTAUTOEDIT, 0}, + {"autoedit", DT_BOOL, R_NONE, OPTAUTOEDIT, "no" }, /* ** .pp ** When \fIset\fP along with ``$$edit_headers'', Mutt-ng will skip the initial @@ -303,7 +336,7 @@ struct option_t MuttVars[] = { ** .pp ** Also see ``$$fast_reply''. */ - {"auto_tag", DT_BOOL, R_NONE, OPTAUTOTAG, 0}, + {"auto_tag", DT_BOOL, R_NONE, OPTAUTOTAG, "no" }, /* ** .pp ** When \fIset\fP, functions in the \fIindex\fP menu which affect a message @@ -311,19 +344,19 @@ struct option_t MuttVars[] = { ** unset, you must first use the ``tag-prefix'' function (default: "\fT;\fP") to ** make the next function apply to all tagged messages. */ - {"beep", DT_BOOL, R_NONE, OPTBEEP, 1}, + {"beep", DT_BOOL, R_NONE, OPTBEEP, "yes" }, /* ** .pp ** When this variable is \fIset\fP, Mutt-ng will beep when an error occurs. */ - {"beep_new", DT_BOOL, R_NONE, OPTBEEPNEW, 0}, + {"beep_new", DT_BOOL, R_NONE, OPTBEEPNEW, "no" }, /* ** .pp ** When this variable is \fIset\fP, Mutt-ng will beep whenever it prints a message ** notifying you of new mail. This is independent of the setting of the ** ``$$beep'' variable. */ - {"bounce", DT_QUAD, R_NONE, OPT_BOUNCE, M_ASKYES}, + {"bounce", DT_QUAD, R_NONE, OPT_BOUNCE, "ask-yes" }, /* ** .pp ** Controls whether you will be asked to confirm bouncing messages. @@ -331,14 +364,14 @@ struct option_t MuttVars[] = { ** message. Setting this variable to \fIno\fP is not generally useful, ** and thus not recommended, because you are unable to bounce messages. */ - {"bounce_delivered", DT_BOOL, R_NONE, OPTBOUNCEDELIVERED, 1}, + {"bounce_delivered", DT_BOOL, R_NONE, OPTBOUNCEDELIVERED, "yes" }, /* ** .pp ** When this variable is \fIset\fP, Mutt-ng will include ** \fTDelivered-To:\fP header fields when bouncing messages. ** Postfix users may wish to \fIunset\fP this variable. */ - { "braille_friendly", DT_BOOL, R_NONE, OPTBRAILLEFRIENDLY, 0 }, + { "braille_friendly", DT_BOOL, R_NONE, OPTBRAILLEFRIENDLY, "no" }, /* ** .pp ** When this variable is set, mutt will place the cursor at the beginning @@ -349,7 +382,7 @@ struct option_t MuttVars[] = { */ #ifdef USE_NNTP {"catchup_newsgroup", DT_SYN, R_NONE, UL "nntp_catchup", 0}, - {"nntp_catchup", DT_QUAD, R_NONE, OPT_CATCHUP, M_ASKYES}, + {"nntp_catchup", DT_QUAD, R_NONE, OPT_CATCHUP, "ask-yes" }, /* ** .pp ** Availability: NNTP @@ -359,12 +392,12 @@ struct option_t MuttVars[] = { ** as read when you leaving it. */ #endif - {"charset", DT_STR, R_NONE, UL &Charset, UL 0}, + {"charset", DT_STR, R_NONE, UL &Charset, "" }, /* ** .pp ** Character set your terminal uses to display and enter textual data. */ - {"check_new", DT_BOOL, R_NONE, OPTCHECKNEW, 1}, + {"check_new", DT_BOOL, R_NONE, OPTCHECKNEW, "yes" }, /* ** .pp ** \fBNote:\fP this option only affects \fImaildir\fP and \fIMH\fP style @@ -376,19 +409,19 @@ struct option_t MuttVars[] = { ** checking each file to see if it has already been looked at. If it's ** \fIunset\fP, no check for new mail is performed while the mailbox is open. */ - {"collapse_unread", DT_BOOL, R_NONE, OPTCOLLAPSEUNREAD, 1}, + {"collapse_unread", DT_BOOL, R_NONE, OPTCOLLAPSEUNREAD, "yes" }, /* ** .pp ** When \fIunset\fP, Mutt-ng will not collapse a thread if it contains any ** unread messages. */ - {"uncollapse_jump", DT_BOOL, R_NONE, OPTUNCOLLAPSEJUMP, 0}, + {"uncollapse_jump", DT_BOOL, R_NONE, OPTUNCOLLAPSEJUMP, "no" }, /* ** .pp ** When \fIset\fP, Mutt-ng will jump to the next unread message, if any, ** when the current thread is \fIun\fPcollapsed. */ - {"compose_format", DT_STR, R_BOTH, UL &ComposeFormat, UL "-- Mutt-ng: Compose [Approx. msg size: %l Atts: %a]%>-"}, + {"compose_format", DT_STR, R_BOTH, UL &ComposeFormat, "-- Mutt-ng: Compose [Approx. msg size: %l Atts: %a]%>-"}, /* ** .pp ** Controls the format of the status line displayed in the ``compose'' @@ -405,38 +438,38 @@ struct option_t MuttVars[] = { ** See the text describing the ``$$status_format'' option for more ** information on how to set ``$$compose_format''. */ - {"config_charset", DT_STR, R_NONE, UL &ConfigCharset, UL 0}, + {"config_charset", DT_STR, R_NONE, UL &ConfigCharset, "" }, /* ** .pp ** When defined, Mutt-ng will recode commands in rc files from this ** encoding. */ - {"confirmappend", DT_BOOL, R_NONE, OPTCONFIRMAPPEND, 1}, + {"confirmappend", DT_BOOL, R_NONE, OPTCONFIRMAPPEND, "yes" }, /* ** .pp ** When \fIset\fP, Mutt-ng will prompt for confirmation when appending messages to ** an existing mailbox. */ - {"confirmcreate", DT_BOOL, R_NONE, OPTCONFIRMCREATE, 1}, + {"confirmcreate", DT_BOOL, R_NONE, OPTCONFIRMCREATE, "yes" }, /* ** .pp ** When \fIset\fP, Mutt-ng will prompt for confirmation when saving messages to a ** mailbox which does not yet exist before creating it. */ - {"connect_timeout", DT_NUM, R_NONE, UL &ConnectTimeout, 30}, + {"connect_timeout", DT_NUM, R_NONE, UL &ConnectTimeout, "30" }, /* ** .pp ** Causes Mutt-ng 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-ng to wait indefinitely for the connection to succeed. */ - {"content_type", DT_STR, R_NONE, UL &ContentType, UL "text/plain"}, + {"content_type", DT_STR, R_NONE, UL &ContentType, "text/plain"}, /* ** .pp ** Sets the default \fTContent-Type:\fP header field for the body ** of newly composed messages. */ - {"copy", DT_QUAD, R_NONE, OPT_COPY, M_YES}, + {"copy", DT_QUAD, R_NONE, OPT_COPY, "yes" }, /* ** .pp ** This variable controls whether or not copies of your outgoing messages @@ -444,7 +477,7 @@ struct option_t MuttVars[] = { ** ``$$save_name'', ``$$force_name'' and ``$fcc-hook''. */ - {"crypt_use_gpgme", DT_BOOL, R_NONE, OPTCRYPTUSEGPGME, 0}, + {"crypt_use_gpgme", DT_BOOL, R_NONE, OPTCRYPTUSEGPGME, "no" }, /* ** .pp ** This variable controls the use the GPGME enabled crypto backends. @@ -455,7 +488,7 @@ struct option_t MuttVars[] = { ** file as it won't have any effect when used interactively. */ - {"crypt_autopgp", DT_BOOL, R_NONE, OPTCRYPTAUTOPGP, 1}, + {"crypt_autopgp", DT_BOOL, R_NONE, OPTCRYPTAUTOPGP, "yes" }, /* ** .pp ** This variable controls whether or not Mutt-ng may automatically enable @@ -463,7 +496,7 @@ struct option_t MuttVars[] = { ** ``$$crypt_replyencrypt'', ** ``$$crypt_autosign'', ``$$crypt_replysign'' and ``$$smime_is_default''. */ - {"crypt_autosmime", DT_BOOL, R_NONE, OPTCRYPTAUTOSMIME, 1}, + {"crypt_autosmime", DT_BOOL, R_NONE, OPTCRYPTAUTOSMIME, "yes" }, /* ** .pp ** This variable controls whether or not Mutt-ng may automatically enable @@ -471,7 +504,7 @@ struct option_t MuttVars[] = { ** ``$$crypt_replyencrypt'', ** ``$$crypt_autosign'', ``$$crypt_replysign'' and ``$$smime_is_default''. */ - {"date_format", DT_STR, R_BOTH, UL &DateFmt, UL "!%a, %b %d, %Y at %I:%M:%S%p %Z"}, + {"date_format", DT_STR, R_BOTH, UL &DateFmt, "!%a, %b %d, %Y at %I:%M:%S%p %Z"}, /* ** .pp ** This variable controls the format of the date printed by the ``\fT%d\fP'' @@ -485,7 +518,25 @@ struct option_t MuttVars[] = { ** rest of the string are expanded in the \fIC\fP locale (that is in US ** English). */ - {"default_hook", DT_STR, R_NONE, UL &DefaultHook, UL "~f %s !~P | (~P ~C %s)"}, +#ifdef DEBUG + {"debug_level", DT_NUM, R_NONE, UL &DebugLevel, "0" }, + /* + ** .pp + ** Availability: debug + ** + ** .pp + ** This variable specifies the current debug level and + ** may be used to increase or decrease the verbosity level + ** during runtime. It overrides the level given with the + ** \fT-d\fP command line option. + ** + ** .pp + ** Currently, this number must be >= 0 and <= 5 and muttng + ** must be started with \fT-d\fP to enable debugging at all; + ** enabling at runtime is not possible. + */ +#endif + {"default_hook", DT_STR, R_NONE, UL &DefaultHook, "~f %s !~P | (~P ~C %s)"}, /* ** .pp ** This variable controls how send-hooks, message-hooks, save-hooks, @@ -499,7 +550,7 @@ struct option_t MuttVars[] = { ** ``alternates'') and is to or cc'ed to a user matching the given ** regular expression. */ - {"delete", DT_QUAD, R_NONE, OPT_DELETE, M_ASKYES}, + {"delete", DT_QUAD, R_NONE, OPT_DELETE, "ask-yes" }, /* ** .pp ** Controls whether or not messages are really deleted when closing or @@ -507,20 +558,33 @@ struct option_t MuttVars[] = { ** deleting will automatically be purged without prompting. If set to ** \fIno\fP, messages marked for deletion will be kept in the mailbox. */ - {"delete_untag", DT_BOOL, R_NONE, OPTDELETEUNTAG, 1}, + {"delete_space", DT_BOOL, R_NONE, OPTDELSP, "no" }, + /* + ** .pp + ** When sending messages with \fTformat=flowed\fP by \fIsetting\fP the + ** $$text_flowed variable, this variable specifies whether to also + ** set the \fTDelSp\fP parameter to \fTyes\fP. If this is \fIunset\fP, + ** no additional parameter will be send as a value of \fTno\fP already + ** is the default behavior. + ** + ** .pp + ** \fBNote:\fP this variable only has an effect on \fIoutgoing\fP messages + ** (if $$text_flowed is \fIset\fP) but not on incomming. + */ + {"delete_untag", DT_BOOL, R_NONE, OPTDELETEUNTAG, "yes" }, /* ** .pp ** If this option is \fIset\fP, Mutt-ng 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. */ - {"digest_collapse", DT_BOOL, R_NONE, OPTDIGESTCOLLAPSE, 1}, + {"digest_collapse", DT_BOOL, R_NONE, OPTDIGESTCOLLAPSE, "yes" }, /* ** .pp ** If this option is \fIset\fP, Mutt-ng's received-attachments menu will not show the subparts of ** individual messages in a multipart/digest. To see these subparts, press 'v' on that menu. */ - {"display_filter", DT_PATH, R_PAGER, UL &DisplayFilter, UL ""}, + {"display_filter", DT_PATH, R_PAGER, UL &DisplayFilter, ""}, /* ** .pp ** When \fIset\fP, specifies a command used to filter messages. When a message @@ -528,7 +592,7 @@ struct option_t MuttVars[] = { ** filtered message is read from the standard output. */ #if defined(DL_STANDALONE) && defined(USE_DOTLOCK) - {"dotlock_program", DT_PATH, R_NONE, UL &MuttDotlock, UL BINDIR "/muttng_dotlock"}, + {"dotlock_program", DT_PATH, R_NONE, UL &MuttDotlock, "$muttng_bindir/muttng_dotlock"}, /* ** .pp ** Availability: Standalone and Dotlock @@ -538,11 +602,11 @@ struct option_t MuttVars[] = { ** Mutt-ng. */ #endif - {"dsn_notify", DT_STR, R_NONE, UL &DsnNotify, UL ""}, + {"dsn_notify", DT_STR, R_NONE, UL &DsnNotify, ""}, /* ** .pp ** \fBNote:\fP you should not enable this unless you are using Sendmail - ** 8.8.x or greater. + ** 8.8.x or greater or in connection with the SMTP support via libESMTP. ** .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 @@ -553,11 +617,11 @@ struct option_t MuttVars[] = { ** .pp ** Example: \fTset dsn_notify="failure,delay"\fP */ - {"dsn_return", DT_STR, R_NONE, UL &DsnReturn, UL ""}, + {"dsn_return", DT_STR, R_NONE, UL &DsnReturn, ""}, /* ** .pp ** \fBNote:\fP you should not enable this unless you are using Sendmail - ** 8.8.x or greater. + ** 8.8.x or greater or in connection with the SMTP support via libESMTP. ** .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 @@ -565,7 +629,7 @@ struct option_t MuttVars[] = { ** .pp ** Example: \fTset dsn_return=hdrs\fP */ - {"duplicate_threads", DT_BOOL, R_RESORT|R_RESORT_INIT|R_INDEX, OPTDUPTHREADS, 1}, + {"duplicate_threads", DT_BOOL, R_RESORT|R_RESORT_INIT|R_INDEX, OPTDUPTHREADS, "yes" }, /* ** .pp ** This variable controls whether Mutt-ng, when sorting by threads, threads @@ -573,28 +637,54 @@ struct option_t MuttVars[] = { ** If it is \fIset\fP, it will indicate that it thinks they are duplicates ** of each other with an equals sign in the thread diagram. */ - {"edit_headers", DT_BOOL, R_NONE, OPTEDITHDRS, 0}, + {"edit_headers", DT_BOOL, R_NONE, OPTEDITHDRS, "no" }, /* ** .pp ** This option allows you to edit the header of your outgoing messages ** along with the body of your message. + ** + ** .pp + ** Which empty header fields to show is controlled by the + ** $$editor_headers option. + */ +#ifdef USE_NNTP + {"editor_headers", DT_STR, R_NONE, UL &EditorHeaders, "From: To: Cc: Bcc: Subject: Reply-To: Newsgroups: Followup-To: X-Comment-To:" }, +#else + {"editor_headers", DT_STR, R_NONE, UL &EditorHeaders, "From: To: Cc: Bcc: Subject: Reply-To:" }, +#endif + /* + ** .pp + ** If $$edit_headers is \fIset\fP, this space-separated list specifies + ** which \fInon-empty\fP header fields to edit in addition to + ** user-defined headers. + ** + ** .pp + ** Note: if $$edit_headers had to be turned on by force because + ** $$strict_mailto is \fIunset\fP, this option has no effect. */ - {"editor", DT_PATH, R_NONE, UL &Editor, 0}, + {"editor", DT_PATH, R_NONE, UL &Editor, "" }, /* ** .pp ** This variable specifies which editor is used by Mutt-ng. ** It defaults to the value of the \fT$$$VISUAL\fP, or \fT$$$EDITOR\fP, environment ** variable, or to the string "\fTvi\fP" if neither of those are set. */ - {"encode_from", DT_BOOL, R_NONE, OPTENCODEFROM, 0}, + {"encode_from", DT_BOOL, R_NONE, OPTENCODEFROM, "no" }, /* ** .pp ** When \fIset\fP, Mutt-ng will \fTquoted-printable\fP encode messages when ** they contain the string ``\fTFrom \fP'' (note the trailing space) ** in the beginning of a line. Useful to avoid the tampering certain mail ** delivery and transport agents tend to do with messages. + ** + ** .pp + ** \fBNote:\fP as mutt-ng currently violates RfC3676 defining + ** \fTformat=flowed\fP, it's