From a20dd2457dd815a7d4fc5960aae0a5c1365cb46a Mon Sep 17 00:00:00 2001 From: Richard Russon Date: Sun, 9 Jun 2019 02:07:00 +0100 Subject: [PATCH] move redraw flags Move the redraw flags from a general flags field to the type field. These GUI flags don't belong in the config definition, but once the notification system is complete, the flags will be obsolete. The `ConfigDef.flags` field is now unused. --- config/types.h | 24 +- init.h | 938 ++++++++++++++++++++++++------------------------- menu.c | 4 +- 3 files changed, 484 insertions(+), 482 deletions(-) diff --git a/config/types.h b/config/types.h index de0fa87f5..8ad18ca32 100644 --- a/config/types.h +++ b/config/types.h @@ -56,17 +56,19 @@ #define DT_SUBTYPE_MASK 0x0FE0 ///< Mask for the Data Subtype typedef uint16_t ConfigRedrawFlags; ///< Flags for redraw/resort, e.g. #R_INDEX -#define R_NONE 0 ///< No refresh/resort flags -#define R_INDEX (1 << 0) ///< Redraw the index menu (MENU_MAIN) -#define R_PAGER (1 << 1) ///< Redraw the pager menu -#define R_PAGER_FLOW (1 << 2) ///< Reflow line_info and redraw the pager menu -#define R_RESORT (1 << 3) ///< Resort the mailbox -#define R_RESORT_SUB (1 << 4) ///< Resort subthreads -#define R_RESORT_INIT (1 << 5) ///< Resort from scratch -#define R_TREE (1 << 6) ///< Redraw the thread tree -#define R_REFLOW (1 << 7) ///< Reflow window layout and full redraw -#define R_SIDEBAR (1 << 8) ///< Redraw the sidebar -#define R_MENU (1 << 9) ///< Redraw all menus +#define R_REDRAW_NO_FLAGS 0 ///< No refresh/resort flags +#define R_INDEX (1 << 17) ///< Redraw the index menu (MENU_MAIN) +#define R_PAGER (1 << 18) ///< Redraw the pager menu +#define R_PAGER_FLOW (1 << 19) ///< Reflow line_info and redraw the pager menu +#define R_RESORT (1 << 20) ///< Resort the mailbox +#define R_RESORT_SUB (1 << 21) ///< Resort subthreads +#define R_RESORT_INIT (1 << 22) ///< Resort from scratch +#define R_TREE (1 << 23) ///< Redraw the thread tree +#define R_REFLOW (1 << 24) ///< Reflow window layout and full redraw +#define R_SIDEBAR (1 << 25) ///< Redraw the sidebar +#define R_MENU (1 << 26) ///< Redraw all menus + +#define R_REDRAW_MASK 0x07FE0000 ///< Mask for the Redraw Flags /* Private config item flags */ #define DT_INHERITED (1 << 28) ///< Config item is inherited diff --git a/init.h b/init.h index 373f5317f..ec37dc45f 100644 --- a/init.h +++ b/init.h @@ -127,7 +127,7 @@ int reply_validator (const struct ConfigSet *cs, const struct ConfigDef *cdef struct ConfigDef MuttVars[] = { /*++*/ - { "abort_noattach", DT_QUAD, R_NONE, &C_AbortNoattach, MUTT_NO }, + { "abort_noattach", DT_QUAD, 0, &C_AbortNoattach, MUTT_NO }, /* ** .pp ** If set to \fIyes\fP, when composing messages containing the regular @@ -140,7 +140,7 @@ struct ConfigDef MuttVars[] = { ** set abort_noattach_regex = "\\" ** .te */ - { "abort_noattach_regex", DT_REGEX, R_NONE, &C_AbortNoattachRegex, IP "\\<(attach|attached|attachments?)\\>" }, + { "abort_noattach_regex", DT_REGEX, 0, &C_AbortNoattachRegex, IP "\\<(attach|attached|attachments?)\\>" }, /* ** .pp ** Specifies a regular expression to match against the body of the message, to @@ -152,7 +152,7 @@ struct ConfigDef MuttVars[] = { ** if the pattern contains at least one upper case letter, and case ** insensitive otherwise. */ - { "abort_nosubject", DT_QUAD, R_NONE, &C_AbortNosubject, MUTT_ASKYES }, + { "abort_nosubject", DT_QUAD, 0, &C_AbortNosubject, MUTT_ASKYES }, /* ** .pp ** If set to \fIyes\fP, when composing messages and no subject is given @@ -160,7 +160,7 @@ struct ConfigDef MuttVars[] = { ** \fIno\fP, composing messages with no subject given at the subject ** prompt will never be aborted. */ - { "abort_unmodified", DT_QUAD, R_NONE, &C_AbortUnmodified, MUTT_YES }, + { "abort_unmodified", DT_QUAD, 0, &C_AbortUnmodified, MUTT_YES }, /* ** .pp ** If set to \fIyes\fP, composition will automatically abort after @@ -168,7 +168,7 @@ struct ConfigDef 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, &C_AliasFile, IP "~/.neomuttrc" }, + { "alias_file", DT_PATH, 0, &C_AliasFile, IP "~/.neomuttrc" }, /* ** .pp ** The default file in which to save aliases created by the @@ -183,7 +183,7 @@ struct ConfigDef MuttVars[] = { ** The default for this option is the currently used neomuttrc file, or ** "~/.neomuttrc" if no user neomuttrc was found. */ - { "alias_format", DT_STRING|DT_NOT_EMPTY, R_NONE, &C_AliasFormat, IP "%4n %2f %t %-10a %r" }, + { "alias_format", DT_STRING|DT_NOT_EMPTY, 0, &C_AliasFormat, IP "%4n %2f %t %-10a %r" }, /* ** .pp ** Specifies the format of the data displayed for the "$alias" menu. The @@ -196,13 +196,13 @@ struct ConfigDef MuttVars[] = { ** .dt %t .dd Character which indicates if the alias is tagged for inclusion ** .de */ - { "allow_8bit", DT_BOOL, R_NONE, &C_Allow8bit, true }, + { "allow_8bit", DT_BOOL, 0, &C_Allow8bit, true }, /* ** .pp ** Controls whether 8-bit data is converted to 7-bit using either Quoted- ** Printable or Base64 encoding when sending mail. */ - { "allow_ansi", DT_BOOL, R_NONE, &C_AllowAnsi, false }, + { "allow_ansi", DT_BOOL, 0, &C_AllowAnsi, false }, /* ** .pp ** Controls whether ANSI color codes in messages (and color tags in @@ -218,7 +218,7 @@ struct ConfigDef MuttVars[] = { ** and give it the same color as your attachment color (see also ** $$crypt_timestamp). */ - { "arrow_cursor", DT_BOOL, R_MENU, &C_ArrowCursor, false }, + { "arrow_cursor", DT_BOOL|R_MENU, 0, &C_ArrowCursor, false }, /* ** .pp ** When \fIset\fP, an arrow ("->") will be used to indicate the current entry @@ -227,39 +227,39 @@ struct ConfigDef MuttVars[] = { ** be redrawn on the screen when moving to the next or previous entries ** in the menu. */ - { "ascii_chars", DT_BOOL, R_INDEX|R_PAGER, &C_AsciiChars, false }, + { "ascii_chars", DT_BOOL|R_INDEX|R_PAGER, 0, &C_AsciiChars, false }, /* ** .pp ** If \fIset\fP, NeoMutt will use plain ASCII characters when displaying thread ** and attachment trees, instead of the default \fIACS\fP characters. */ #ifdef USE_NNTP - { "ask_follow_up", DT_BOOL, R_NONE, &C_AskFollowUp, false }, + { "ask_follow_up", DT_BOOL, 0, &C_AskFollowUp, false }, /* ** .pp ** If set, NeoMutt will prompt you for follow-up groups before editing ** the body of an outgoing message. */ - { "ask_x_comment_to", DT_BOOL, R_NONE, &C_AskXCommentTo, false }, + { "ask_x_comment_to", DT_BOOL, 0, &C_AskXCommentTo, false }, /* ** .pp ** If set, NeoMutt will prompt you for x-comment-to field before editing ** the body of an outgoing message. */ #endif - { "askbcc", DT_BOOL, R_NONE, &C_Askbcc, false }, + { "askbcc", DT_BOOL, 0, &C_Askbcc, false }, /* ** .pp ** If \fIset\fP, NeoMutt will prompt you for blind-carbon-copy (Bcc) recipients ** before editing an outgoing message. */ - { "askcc", DT_BOOL, R_NONE, &C_Askcc, false }, + { "askcc", DT_BOOL, 0, &C_Askcc, false }, /* ** .pp ** If \fIset\fP, NeoMutt will prompt you for carbon-copy (Cc) recipients before ** editing the body of an outgoing message. */ - { "assumed_charset", DT_STRING, R_NONE, &C_AssumedCharset, 0, charset_validator }, + { "assumed_charset", DT_STRING, 0, &C_AssumedCharset, 0, charset_validator }, /* ** .pp ** This variable is a colon-separated list of character encoding @@ -276,7 +276,7 @@ struct ConfigDef MuttVars[] = { ** .pp ** However, only the first content is valid for the message body. */ - { "attach_charset", DT_STRING, R_NONE, &C_AttachCharset, 0, charset_validator }, + { "attach_charset", DT_STRING, 0, &C_AttachCharset, 0, charset_validator }, /* ** .pp ** This variable is a colon-separated list of character encoding @@ -294,7 +294,7 @@ struct ConfigDef MuttVars[] = { ** Note: for Japanese users, "iso-2022-*" must be put at the head ** of the value as shown above if included. */ - { "attach_format", DT_STRING|DT_NOT_EMPTY, R_NONE, &C_AttachFormat, IP "%u%D%I %t%4n %T%.40d%> [%.7m/%.10M, %.6e%?C?, %C?, %s] " }, + { "attach_format", DT_STRING|DT_NOT_EMPTY, 0, &C_AttachFormat, IP "%u%D%I %t%4n %T%.40d%> [%.7m/%.10M, %.6e%?C?, %C?, %s] " }, /* ** .pp ** This variable describes the format of the "attachment" menu. The @@ -325,25 +325,25 @@ struct ConfigDef MuttVars[] = { ** .pp ** For an explanation of "soft-fill", see the $$index_format documentation. */ - { "attach_save_dir", DT_PATH, R_NONE, &C_AttachSaveDir, IP "./" }, + { "attach_save_dir", DT_PATH, 0, &C_AttachSaveDir, IP "./" }, /* ** .pp ** The directory where attachments are saved. */ - { "attach_save_without_prompting", DT_BOOL, R_NONE, &C_AttachSaveWithoutPrompting, false }, + { "attach_save_without_prompting", DT_BOOL, 0, &C_AttachSaveWithoutPrompting, false }, /* ** .pp ** This variable, when set to true, will cause attachments to be saved to the ** 'attach_save_dir' location without prompting the user for the filename. ** .pp */ - { "attach_sep", DT_STRING, R_NONE, &C_AttachSep, IP "\n" }, + { "attach_sep", DT_STRING, 0, &C_AttachSep, IP "\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, &C_AttachSplit, true }, + { "attach_split", DT_BOOL, 0, &C_AttachSplit, true }, /* ** .pp ** If this variable is \fIunset\fP, when operating (saving, printing, piping, @@ -352,14 +352,14 @@ struct ConfigDef MuttVars[] = { ** $$attach_sep separator is added after each attachment. When \fIset\fP, ** NeoMutt will operate on the attachments one by one. */ - { "attribution", DT_STRING, R_NONE, &C_Attribution, IP "On %d, %n wrote:" }, + { "attribution", DT_STRING, 0, &C_Attribution, IP "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 \fCprintf(3)\fP-like sequences see ** the section on $$index_format. */ - { "attribution_locale", DT_STRING, R_NONE, &C_AttributionLocale, 0 }, + { "attribution_locale", DT_STRING, 0, &C_AttributionLocale, 0 }, /* ** .pp ** The locale used by \fCstrftime(3)\fP to format dates in the @@ -371,7 +371,7 @@ struct ConfigDef MuttVars[] = { ** will use your locale environment, so there is no need to set ** this except to override that default. */ - { "auto_subscribe", DT_BOOL, R_NONE, &C_AutoSubscribe, false }, + { "auto_subscribe", DT_BOOL, 0, &C_AutoSubscribe, false }, /* ** .pp ** When \fIset\fP, Mutt assumes the presence of a List-Post header @@ -380,7 +380,7 @@ struct ConfigDef MuttVars[] = { ** to the "$subscribe" list. Parsing and checking these things slows ** header reading down, so this option is disabled by default. */ - { "auto_tag", DT_BOOL, R_NONE, &C_AutoTag, false }, + { "auto_tag", DT_BOOL, 0, &C_AutoTag, false }, /* ** .pp ** When \fIset\fP, functions in the \fIindex\fP menu which affect a message @@ -388,7 +388,7 @@ struct ConfigDef MuttVars[] = { ** unset, you must first use the \fC\fP function (bound to ";" ** by default) to make the next function apply to all tagged messages. */ - { "autoedit", DT_BOOL, R_NONE, &C_Autoedit, false }, + { "autoedit", DT_BOOL, 0, &C_Autoedit, false }, /* ** .pp ** When \fIset\fP along with $$edit_headers, NeoMutt will skip the initial @@ -403,19 +403,19 @@ struct ConfigDef MuttVars[] = { ** .pp ** Also see $$fast_reply. */ - { "beep", DT_BOOL, R_NONE, &C_Beep, true }, + { "beep", DT_BOOL, 0, &C_Beep, true }, /* ** .pp ** When this variable is \fIset\fP, NeoMutt will beep when an error occurs. */ - { "beep_new", DT_BOOL, R_NONE, &C_BeepNew, false }, + { "beep_new", DT_BOOL, 0, &C_BeepNew, false }, /* ** .pp ** When this variable is \fIset\fP, NeoMutt 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, &C_Bounce, MUTT_ASKYES }, + { "bounce", DT_QUAD, 0, &C_Bounce, MUTT_ASKYES }, /* ** .pp ** Controls whether you will be asked to confirm bouncing messages. @@ -423,13 +423,13 @@ struct ConfigDef 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, &C_BounceDelivered, true }, + { "bounce_delivered", DT_BOOL, 0, &C_BounceDelivered, true }, /* ** .pp ** When this variable is \fIset\fP, NeoMutt will include Delivered-To headers when ** bouncing messages. Postfix users may wish to \fIunset\fP this variable. */ - { "braille_friendly", DT_BOOL, R_NONE, &C_BrailleFriendly, false }, + { "braille_friendly", DT_BOOL, 0, &C_BrailleFriendly, false }, /* ** .pp ** When this variable is \fIset\fP, NeoMutt will place the cursor at the beginning @@ -438,7 +438,7 @@ struct ConfigDef MuttVars[] = { ** follow these menus. The option is \fIunset\fP by default because many ** visual terminals don't permit making the cursor invisible. */ - { "browser_abbreviate_mailboxes", DT_BOOL, R_NONE, &C_BrowserAbbreviateMailboxes, true }, + { "browser_abbreviate_mailboxes", DT_BOOL, 0, &C_BrowserAbbreviateMailboxes, true }, /* ** .pp ** When this variable is \fIset\fP, mutt will abbreviate mailbox @@ -452,7 +452,7 @@ struct ConfigDef MuttVars[] = { ** desirable to \fIunset\fP this variable. */ #ifdef USE_NNTP - { "catchup_newsgroup", DT_QUAD, R_NONE, &C_CatchupNewsgroup, MUTT_ASKYES }, + { "catchup_newsgroup", DT_QUAD, 0, &C_CatchupNewsgroup, MUTT_ASKYES }, /* ** .pp ** If this variable is \fIset\fP, NeoMutt will mark all articles in newsgroup @@ -460,7 +460,7 @@ struct ConfigDef MuttVars[] = { */ #endif #ifdef USE_SSL - { "certificate_file", DT_PATH, R_NONE, &C_CertificateFile, IP "~/.mutt_certificates" }, + { "certificate_file", DT_PATH, 0, &C_CertificateFile, IP "~/.mutt_certificates" }, /* ** .pp ** This variable specifies the file where the certificates you trust @@ -479,14 +479,14 @@ struct ConfigDef MuttVars[] = { ** .te */ #endif - { "change_folder_next", DT_BOOL, R_NONE, &C_ChangeFolderNext, false }, + { "change_folder_next", DT_BOOL, 0, &C_ChangeFolderNext, false }, /* ** .pp ** When this variable is \fIset\fP, the \fC\fP function ** mailbox suggestion will start at the next folder in your "$mailboxes" ** list, instead of starting at the first folder in the list. */ - { "charset", DT_STRING|DT_NOT_EMPTY, R_NONE, &C_Charset, 0, charset_validator }, + { "charset", DT_STRING|DT_NOT_EMPTY, 0, &C_Charset, 0, charset_validator }, /* ** .pp ** Character set your terminal uses to display and enter textual data. @@ -498,7 +498,7 @@ struct ConfigDef MuttVars[] = { ** \fBNote:\fP It should only be set in case NeoMutt isn't able to determine the ** character set used correctly. */ - { "check_mbox_size", DT_BOOL, R_NONE, &C_CheckMboxSize, false }, + { "check_mbox_size", DT_BOOL, 0, &C_CheckMboxSize, false }, /* ** .pp ** When this variable is \fIset\fP, NeoMutt will use file size attribute instead of @@ -513,7 +513,7 @@ struct ConfigDef MuttVars[] = { ** mailbox by performing a fast mailbox scan when it is defined. ** Afterwards the new mail status is tracked by file size changes. */ - { "check_new", DT_BOOL, R_NONE, &C_CheckNew, true }, + { "check_new", DT_BOOL, 0, &C_CheckNew, true }, /* ** .pp ** \fBNote:\fP this option only affects \fImaildir\fP and \fIMH\fP style @@ -526,24 +526,24 @@ struct ConfigDef MuttVars[] = { ** this variable is \fIunset\fP, no check for new mail is performed ** while the mailbox is open. */ - { "collapse_all", DT_BOOL, R_NONE, &C_CollapseAll, false }, + { "collapse_all", DT_BOOL, 0, &C_CollapseAll, false }, /* ** .pp ** When \fIset\fP, NeoMutt will collapse all threads when entering a folder. */ - { "collapse_flagged", DT_BOOL, R_NONE, &C_CollapseFlagged, true }, + { "collapse_flagged", DT_BOOL, 0, &C_CollapseFlagged, true }, /* ** .pp ** When \fIunset\fP, NeoMutt will not collapse a thread if it contains any ** flagged messages. */ - { "collapse_unread", DT_BOOL, R_NONE, &C_CollapseUnread, true }, + { "collapse_unread", DT_BOOL, 0, &C_CollapseUnread, true }, /* ** .pp ** When \fIunset\fP, NeoMutt will not collapse a thread if it contains any ** unread messages. */ - { "compose_format", DT_STRING, R_MENU, &C_ComposeFormat, IP "-- NeoMutt: Compose [Approx. msg size: %l Atts: %a]%>-" }, + { "compose_format", DT_STRING|R_MENU, 0, &C_ComposeFormat, IP "-- NeoMutt: Compose [Approx. msg size: %l Atts: %a]%>-" }, /* ** .pp ** Controls the format of the status line displayed in the "compose" @@ -559,7 +559,7 @@ struct ConfigDef MuttVars[] = { ** See the text describing the $$status_format option for more ** information on how to set $$compose_format. */ - { "config_charset", DT_STRING, R_NONE, &C_ConfigCharset, 0, charset_validator }, + { "config_charset", DT_STRING, 0, &C_ConfigCharset, 0, charset_validator }, /* ** .pp ** When defined, NeoMutt will recode commands in rc files from this @@ -573,38 +573,38 @@ struct ConfigDef MuttVars[] = { ** characters as question marks which can lead to undesired ** side effects (for example in regular expressions). */ - { "confirmappend", DT_BOOL, R_NONE, &C_Confirmappend, true }, + { "confirmappend", DT_BOOL, 0, &C_Confirmappend, true }, /* ** .pp ** When \fIset\fP, NeoMutt will prompt for confirmation when appending messages to ** an existing mailbox. */ - { "confirmcreate", DT_BOOL, R_NONE, &C_Confirmcreate, true }, + { "confirmcreate", DT_BOOL, 0, &C_Confirmcreate, true }, /* ** .pp ** When \fIset\fP, NeoMutt will prompt for confirmation when saving messages to a ** mailbox which does not yet exist before creating it. */ - { "connect_timeout", DT_NUMBER, R_NONE, &C_ConnectTimeout, 30 }, + { "connect_timeout", DT_NUMBER, 0, &C_ConnectTimeout, 30 }, /* ** .pp ** Causes NeoMutt to timeout a network connection (for IMAP, POP or SMTP) after this ** many seconds if the connection is not able to be established. A negative ** value causes NeoMutt to wait indefinitely for the connection attempt to succeed. */ - { "content_type", DT_STRING, R_NONE, &C_ContentType, IP "text/plain" }, + { "content_type", DT_STRING, 0, &C_ContentType, IP "text/plain" }, /* ** .pp ** Sets the default Content-Type for the body of newly composed messages. */ - { "copy", DT_QUAD, R_NONE, &C_Copy, MUTT_YES }, + { "copy", DT_QUAD, 0, &C_Copy, MUTT_YES }, /* ** .pp ** This variable controls whether or not copies of your outgoing messages ** will be saved for later references. Also see $$record, ** $$save_name, $$force_name and "$fcc-hook". */ - { "crypt_autoencrypt", DT_BOOL, R_NONE, &C_CryptAutoencrypt, false }, + { "crypt_autoencrypt", DT_BOOL, 0, &C_CryptAutoencrypt, false }, /* ** .pp ** Setting this variable will cause NeoMutt to always attempt to PGP @@ -616,7 +616,7 @@ struct ConfigDef MuttVars[] = { ** settings can be overridden by use of the smime menu instead. ** (Crypto only) */ - { "crypt_autopgp", DT_BOOL, R_NONE, &C_CryptAutopgp, true }, + { "crypt_autopgp", DT_BOOL, 0, &C_CryptAutopgp, true }, /* ** .pp ** This variable controls whether or not NeoMutt may automatically enable @@ -624,7 +624,7 @@ struct ConfigDef MuttVars[] = { ** $$crypt_replyencrypt, ** $$crypt_autosign, $$crypt_replysign and $$smime_is_default. */ - { "crypt_autosign", DT_BOOL, R_NONE, &C_CryptAutosign, false }, + { "crypt_autosign", DT_BOOL, 0, &C_CryptAutosign, false }, /* ** .pp ** Setting this variable will cause NeoMutt to always attempt to @@ -635,7 +635,7 @@ struct ConfigDef MuttVars[] = { ** be overridden by use of the smime menu instead of the pgp menu. ** (Crypto only) */ - { "crypt_autosmime", DT_BOOL, R_NONE, &C_CryptAutosmime, true }, + { "crypt_autosmime", DT_BOOL, 0, &C_CryptAutosmime, true }, /* ** .pp ** This variable controls whether or not NeoMutt may automatically enable @@ -643,7 +643,7 @@ struct ConfigDef MuttVars[] = { ** $$crypt_replyencrypt, ** $$crypt_autosign, $$crypt_replysign and $$smime_is_default. */ - { "crypt_chars", DT_MBTABLE, R_INDEX|R_PAGER, &C_CryptChars, IP "SPsK " }, + { "crypt_chars", DT_MBTABLE|R_INDEX|R_PAGER, 0, &C_CryptChars, IP "SPsK " }, /* ** .pp ** Controls the characters used in cryptography flags. @@ -656,7 +656,7 @@ struct ConfigDef MuttVars[] = { ** .dt 5 .dd .dd The mail has no crypto info. ** .de */ - { "crypt_confirmhook", DT_BOOL, R_NONE, &C_CryptConfirmhook, true }, + { "crypt_confirmhook", DT_BOOL, 0, &C_CryptConfirmhook, true }, /* ** .pp ** If set, then you will be prompted for confirmation of keys when using @@ -664,7 +664,7 @@ struct ConfigDef MuttVars[] = { ** be presented. This is generally considered unsafe, especially where ** typos are concerned. */ - { "crypt_opportunistic_encrypt", DT_BOOL, R_NONE, &C_CryptOpportunisticEncrypt, false }, + { "crypt_opportunistic_encrypt", DT_BOOL, 0, &C_CryptOpportunisticEncrypt, false }, /* ** .pp ** Setting this variable will cause NeoMutt to automatically enable and @@ -685,7 +685,7 @@ struct ConfigDef MuttVars[] = { ** be manually re-enabled in the pgp or smime menus. ** (Crypto only) */ - { "crypt_protected_headers_read", DT_BOOL, R_NONE, &C_CryptProtectedHeadersRead, true }, + { "crypt_protected_headers_read", DT_BOOL, 0, &C_CryptProtectedHeadersRead, true }, /* ** .pp ** When set, Mutt will display protected headers ("Memory Hole") in the pager, @@ -704,7 +704,7 @@ struct ConfigDef MuttVars[] = { ** the dummy Subject header, so be sure to open such a message first. ** (Crypto only) */ - { "crypt_protected_headers_save", DT_BOOL, R_NONE, &C_CryptProtectedHeadersSave, false }, + { "crypt_protected_headers_save", DT_BOOL, 0, &C_CryptProtectedHeadersSave, false }, /* ** .pp ** When $$crypt_protected_headers_read is set, and a message with a @@ -728,7 +728,7 @@ struct ConfigDef MuttVars[] = { ** you enable this variable. ** (Crypto only) */ - { "crypt_protected_headers_subject", DT_STRING, R_NONE, &C_CryptProtectedHeadersSubject, IP "Encrypted subject" }, + { "crypt_protected_headers_subject", DT_STRING, 0, &C_CryptProtectedHeadersSubject, IP "Encrypted subject" }, /* ** .pp ** When $$crypt_protected_headers_write is set, and the message is marked @@ -739,7 +739,7 @@ struct ConfigDef MuttVars[] = { ** to the empty string. ** (Crypto only) */ - { "crypt_protected_headers_write", DT_BOOL, R_NONE, &C_CryptProtectedHeadersWrite, false }, + { "crypt_protected_headers_write", DT_BOOL, 0, &C_CryptProtectedHeadersWrite, false }, /* ** .pp ** When set, Mutt will generate protected headers ("Memory Hole") for @@ -752,14 +752,14 @@ struct ConfigDef MuttVars[] = { ** Currently Mutt only supports the Subject header. ** (Crypto only) */ - { "crypt_replyencrypt", DT_BOOL, R_NONE, &C_CryptReplyencrypt, true }, + { "crypt_replyencrypt", DT_BOOL, 0, &C_CryptReplyencrypt, true }, /* ** .pp ** If \fIset\fP, automatically PGP or OpenSSL encrypt replies to messages which are ** encrypted. ** (Crypto only) */ - { "crypt_replysign", DT_BOOL, R_NONE, &C_CryptReplysign, false }, + { "crypt_replysign", DT_BOOL, 0, &C_CryptReplysign, false }, /* ** .pp ** If \fIset\fP, automatically PGP or OpenSSL sign replies to messages which are @@ -769,7 +769,7 @@ struct ConfigDef MuttVars[] = { ** \fIand\fP signed! ** (Crypto only) */ - { "crypt_replysignencrypted", DT_BOOL, R_NONE, &C_CryptReplysignencrypted, false }, + { "crypt_replysignencrypted", DT_BOOL, 0, &C_CryptReplysignencrypted, false }, /* ** .pp ** If \fIset\fP, automatically PGP or OpenSSL sign replies to messages @@ -780,7 +780,7 @@ struct ConfigDef MuttVars[] = { ** to find out whether an encrypted message is also signed. ** (Crypto only) */ - { "crypt_timestamp", DT_BOOL, R_NONE, &C_CryptTimestamp, true }, + { "crypt_timestamp", DT_BOOL, 0, &C_CryptTimestamp, true }, /* ** .pp ** If \fIset\fP, NeoMutt will include a time stamp in the lines surrounding @@ -789,7 +789,7 @@ struct ConfigDef MuttVars[] = { ** you may \fIunset\fP this setting. ** (Crypto only) */ - { "crypt_use_gpgme", DT_BOOL, R_NONE, &C_CryptUseGpgme, false }, + { "crypt_use_gpgme", DT_BOOL, 0, &C_CryptUseGpgme, false }, /* ** .pp ** This variable controls the use of the GPGME-enabled crypto backends. @@ -801,14 +801,14 @@ struct ConfigDef MuttVars[] = { ** Note that the GPGME backend does not support creating old-style inline ** (traditional) PGP encrypted or signed messages (see $$pgp_autoinline). */ - { "crypt_use_pka", DT_BOOL, R_NONE, &C_CryptUsePka, false }, + { "crypt_use_pka", DT_BOOL, 0, &C_CryptUsePka, false }, /* ** .pp ** Controls whether NeoMutt uses PKA ** (see http://www.g10code.de/docs/pka-intro.de.pdf) during signature ** verification (only supported by the GPGME backend). */ - { "crypt_verify_sig", DT_QUAD, R_NONE, &C_CryptVerifySig, MUTT_YES }, + { "crypt_verify_sig", DT_QUAD, 0, &C_CryptVerifySig, MUTT_YES }, /* ** .pp ** If \fI"yes"\fP, always attempt to verify PGP or S/MIME signatures. @@ -816,7 +816,7 @@ struct ConfigDef MuttVars[] = { ** If \fI"no"\fP, never attempt to verify cryptographic signatures. ** (Crypto only) */ - { "date_format", DT_STRING|DT_NOT_EMPTY, R_MENU, &C_DateFormat, IP "!%a, %b %d, %Y at %I:%M:%S%p %Z" }, + { "date_format", DT_STRING|DT_NOT_EMPTY|R_MENU, 0, &C_DateFormat, IP "!%a, %b %d, %Y at %I:%M:%S%p %Z" }, /* ** .pp ** This variable controls the format of the date printed by the "%d" @@ -830,7 +830,7 @@ struct ConfigDef MuttVars[] = { ** rest of the string are expanded in the \fIC\fP locale (that is in US ** English). */ - { "debug_file", DT_PATH, R_NONE, &C_DebugFile, IP "~/.neomuttdebug" }, + { "debug_file", DT_PATH, 0, &C_DebugFile, IP "~/.neomuttdebug" }, /* ** .pp ** Debug logging is controlled by the variables \fC$$debug_file\fP and \fC$$debug_level\fP. @@ -842,7 +842,7 @@ struct ConfigDef MuttVars[] = { ** .pp ** See also: \fC$$debug_level\fP */ - { "debug_level", DT_NUMBER, R_NONE, &C_DebugLevel, 0, level_validator }, + { "debug_level", DT_NUMBER, 0, &C_DebugLevel, 0, level_validator }, /* ** .pp ** Debug logging is controlled by the variables \fC$$debug_file\fP and \fC$$debug_level\fP. @@ -858,7 +858,7 @@ struct ConfigDef MuttVars[] = { ** .pp ** See also: \fC$$debug_file\fP */ - { "default_hook", DT_STRING, R_NONE, &C_DefaultHook, IP "~f %s !~P | (~P ~C %s)" }, + { "default_hook", DT_STRING, 0, &C_DefaultHook, IP "~f %s !~P | (~P ~C %s)" }, /* ** .pp ** This variable controls how "$message-hook", "$reply-hook", "$send-hook", @@ -874,7 +874,7 @@ struct ConfigDef MuttVars[] = { ** "$alternates") and is to or cc'ed to a user matching the given ** regular expression. */ - { "delete", DT_QUAD, R_NONE, &C_Delete, MUTT_ASKYES }, + { "delete", DT_QUAD, 0, &C_Delete, MUTT_ASKYES }, /* ** .pp ** Controls whether or not messages are really deleted when closing or @@ -882,20 +882,20 @@ struct ConfigDef 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, &C_DeleteUntag, true }, + { "delete_untag", DT_BOOL, 0, &C_DeleteUntag, true }, /* ** .pp ** If this option is \fIset\fP, NeoMutt 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, &C_DigestCollapse, true }, + { "digest_collapse", DT_BOOL, 0, &C_DigestCollapse, true }, /* ** .pp ** If this option is \fIset\fP, NeoMutt'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_COMMAND, R_PAGER, &C_DisplayFilter, 0 }, + { "display_filter", DT_COMMAND|R_PAGER, 0, &C_DisplayFilter, 0 }, /* ** .pp ** When set, specifies a command used to filter messages. When a message @@ -913,7 +913,7 @@ struct ConfigDef MuttVars[] = { ** This can be fixed by adding this to your config: ** \fCcolor body magenta default '^\[-- .* --\]$$$'\fP. */ - { "dsn_notify", DT_STRING, R_NONE, &C_DsnNotify, 0 }, + { "dsn_notify", DT_STRING, 0, &C_DsnNotify, 0 }, /* ** .pp ** This variable sets the request for when notification is returned. The @@ -934,7 +934,7 @@ struct ConfigDef MuttVars[] = { ** for DSN. For SMTP delivery, DSN support is auto-detected so that it ** depends on the server whether DSN will be used or not. */ - { "dsn_return", DT_STRING, R_NONE, &C_DsnReturn, 0 }, + { "dsn_return", DT_STRING, 0, &C_DsnReturn, 0 }, /* ** .pp ** This variable controls how much of your message is returned in DSN @@ -952,7 +952,7 @@ struct ConfigDef MuttVars[] = { ** for DSN. For SMTP delivery, DSN support is auto-detected so that it ** depends on the server whether DSN will be used or not. */ - { "duplicate_threads", DT_BOOL, R_RESORT|R_RESORT_INIT|R_INDEX, &C_DuplicateThreads, true, pager_validator }, + { "duplicate_threads", DT_BOOL|R_RESORT|R_RESORT_INIT|R_INDEX, 0, &C_DuplicateThreads, true, pager_validator }, /* ** .pp ** This variable controls whether NeoMutt, when $$sort is set to \fIthreads\fP, threads @@ -960,7 +960,7 @@ struct ConfigDef MuttVars[] = { ** that it thinks they are duplicates of each other with an equals sign ** in the thread tree. */ - { "edit_headers", DT_BOOL, R_NONE, &C_EditHeaders, false }, + { "edit_headers", DT_BOOL, 0, &C_EditHeaders, false }, /* ** .pp ** This option allows you to edit the header of your outgoing messages @@ -976,7 +976,7 @@ struct ConfigDef MuttVars[] = { ** \fBNote\fP that changes made to the References: and Date: headers are ** ignored for interoperability reasons. */ - { "editor", DT_COMMAND, R_NONE, &C_Editor, IP "vi" }, + { "editor", DT_COMMAND, 0, &C_Editor, IP "vi" }, /* ** .pp ** This variable specifies which editor is used by NeoMutt. @@ -994,13 +994,13 @@ struct ConfigDef MuttVars[] = { ** .pp ** where \fIstring\fP is the expansion of \fC$$editor\fP described above. */ - { "empty_subject", DT_STRING, R_NONE, &C_EmptySubject, IP "Re: your mail" }, + { "empty_subject", DT_STRING, 0, &C_EmptySubject, IP "Re: your mail" }, /* ** .pp ** This variable specifies the subject to be used when replying to an email ** with an empty subject. It defaults to "Re: your mail". */ - { "encode_from", DT_BOOL, R_NONE, &C_EncodeFrom, false }, + { "encode_from", DT_BOOL, 0, &C_EncodeFrom, false }, /* ** .pp ** When \fIset\fP, NeoMutt will quoted-printable encode messages when @@ -1010,25 +1010,25 @@ struct ConfigDef MuttVars[] = { ** misinterpreting the line as a mbox message separator). */ #ifdef USE_SSL_OPENSSL - { "entropy_file", DT_PATH, R_NONE, &C_EntropyFile, 0 }, + { "entropy_file", DT_PATH, 0, &C_EntropyFile, 0 }, /* ** .pp ** The file which includes random data that is used to initialize SSL ** library functions. */ #endif - { "envelope_from_address", DT_ADDRESS, R_NONE, &C_EnvelopeFromAddress, 0 }, + { "envelope_from_address", DT_ADDRESS, 0, &C_EnvelopeFromAddress, 0 }, /* ** .pp ** Manually sets the \fIenvelope\fP sender for outgoing messages. ** This value is ignored if $$use_envelope_from is \fIunset\fP. */ - { "escape", DT_STRING, R_NONE, &C_Escape, IP "~" }, + { "escape", DT_STRING, 0, &C_Escape, IP "~" }, /* ** .pp ** Escape character to use for functions in the built-in editor. */ - { "external_search_command", DT_COMMAND, R_NONE, &C_ExternalSearchCommand, 0 }, + { "external_search_command", DT_COMMAND, 0, &C_ExternalSearchCommand, 0 }, /* ** .pp ** If set, contains the name of the external program used by "~I" patterns. @@ -1061,7 +1061,7 @@ struct ConfigDef MuttVars[] = { ** match the behavior of your indexer, but this should help users ** of indexers other than notmuch to integrate them cleanly with NeoMutt. */ - { "fast_reply", DT_BOOL, R_NONE, &C_FastReply, false }, + { "fast_reply", DT_BOOL, 0, &C_FastReply, false }, /* ** .pp ** When \fIset\fP, the initial prompt for recipients and subject are skipped @@ -1071,13 +1071,13 @@ struct ConfigDef MuttVars[] = { ** \fBNote:\fP this variable has no effect when the $$autoedit ** variable is \fIset\fP. */ - { "fcc_attach", DT_QUAD, R_NONE, &C_FccAttach, MUTT_YES }, + { "fcc_attach", DT_QUAD, 0, &C_FccAttach, MUTT_YES }, /* ** .pp ** This variable controls whether or not attachments on outgoing messages ** are saved along with the main body of your message. */ - { "fcc_clear", DT_BOOL, R_NONE, &C_FccClear, false }, + { "fcc_clear", DT_BOOL, 0, &C_FccClear, false }, /* ** .pp ** When this variable is \fIset\fP, FCCs will be stored unencrypted and @@ -1085,7 +1085,7 @@ struct ConfigDef MuttVars[] = { ** signed. ** (PGP only) */ - { "flag_chars", DT_MBTABLE, R_INDEX|R_PAGER, &C_FlagChars, IP "*!DdrONon- " }, + { "flag_chars", DT_MBTABLE|R_INDEX|R_PAGER, 0, &C_FlagChars, IP "*!DdrONon- " }, /* ** .pp ** Controls the characters used in several flags. @@ -1104,12 +1104,12 @@ struct ConfigDef MuttVars[] = { ** .dt 11 .dd .dd The mail is read - %Z expando. ** .de */ - { "flag_safe", DT_BOOL, R_NONE, &C_FlagSafe, false }, + { "flag_safe", DT_BOOL, 0, &C_FlagSafe, false }, /* ** .pp ** If set, flagged messages can't be deleted. */ - { "folder", DT_PATH|DT_MAILBOX, R_NONE, &C_Folder, IP "~/Mail" }, + { "folder", DT_PATH|DT_MAILBOX, 0, &C_Folder, IP "~/Mail" }, /* ** .pp ** Specifies the default location of your mailboxes. A "+" or "=" at the @@ -1119,7 +1119,7 @@ struct ConfigDef MuttVars[] = { ** you use "+" or "=" for any other variables since expansion takes place ** when handling the "$mailboxes" command. */ - { "folder_format", DT_STRING|DT_NOT_EMPTY, R_MENU, &C_FolderFormat, IP "%2C %t %N %F %2l %-8.8u %-8.8g %8s %d %i" }, + { "folder_format", DT_STRING|DT_NOT_EMPTY|R_MENU, 0, &C_FolderFormat, IP "%2C %t %N %F %2l %-8.8u %-8.8g %8s %d %i" }, /* ** .pp ** This variable allows you to customize the file browser display to your @@ -1154,7 +1154,7 @@ struct ConfigDef MuttVars[] = { ** %m requires $$mail_check_stats to be set. ** %n requires $$mail_check_stats to be set (except for IMAP mailboxes). */ - { "followup_to", DT_BOOL, R_NONE, &C_FollowupTo, true }, + { "followup_to", DT_BOOL, 0, &C_FollowupTo, true }, /* ** .pp ** Controls whether or not the "Mail-Followup-To:" header field is @@ -1176,7 +1176,7 @@ struct ConfigDef MuttVars[] = { ** of the same email for you. */ #ifdef USE_NNTP - { "followup_to_poster", DT_QUAD, R_NONE, &C_FollowupToPoster, MUTT_ASKYES }, + { "followup_to_poster", DT_QUAD, 0, &C_FollowupToPoster, MUTT_ASKYES }, /* ** .pp ** If this variable is \fIset\fP and the keyword "poster" is present in @@ -1185,7 +1185,7 @@ struct ConfigDef MuttVars[] = { ** message via mail. */ #endif - { "force_name", DT_BOOL, R_NONE, &C_ForceName, false }, + { "force_name", DT_BOOL, 0, &C_ForceName, false }, /* ** .pp ** This variable is similar to $$save_name, except that NeoMutt will @@ -1194,7 +1194,7 @@ struct ConfigDef MuttVars[] = { ** .pp ** Also see the $$record variable. */ - { "forward_attachments", DT_QUAD, R_NONE, &C_ForwardAttachments, MUTT_ASKYES }, + { "forward_attachments", DT_QUAD, 0, &C_ForwardAttachments, MUTT_ASKYES }, /* ** .pp ** When forwarding inline (i.e. $$mime_forward \fIunset\fP or @@ -1203,7 +1203,7 @@ struct ConfigDef MuttVars[] = { ** to the newly composed message if this quadoption is \fIset\fP or ** answered with ``yes''. */ - { "forward_attribution_intro", DT_STRING, R_NONE, &C_ForwardAttributionIntro, IP "----- Forwarded message from %f -----" }, + { "forward_attribution_intro", DT_STRING, 0, &C_ForwardAttributionIntro, IP "----- Forwarded message from %f -----" }, /* ** .pp ** This is the string that will precede a message which has been forwarded @@ -1211,7 +1211,7 @@ struct ConfigDef MuttVars[] = { ** For a full listing of defined \fCprintf(3)\fP-like sequences see ** the section on $$index_format. See also $$attribution_locale. */ - { "forward_attribution_trailer", DT_STRING, R_NONE, &C_ForwardAttributionTrailer, IP "----- End forwarded message -----" }, + { "forward_attribution_trailer", DT_STRING, 0, &C_ForwardAttributionTrailer, IP "----- End forwarded message -----" }, /* ** .pp ** This is the string that will follow a message which has been forwarded @@ -1219,7 +1219,7 @@ struct ConfigDef MuttVars[] = { ** For a full listing of defined \fCprintf(3)\fP-like sequences see ** the section on $$index_format. See also $$attribution_locale. */ - { "forward_decode", DT_BOOL, R_NONE, &C_ForwardDecode, true }, + { "forward_decode", DT_BOOL, 0, &C_ForwardDecode, true }, /* ** .pp ** Controls the decoding of complex MIME messages into \fCtext/plain\fP when @@ -1227,7 +1227,7 @@ struct ConfigDef MuttVars[] = { ** This variable is only used, if $$mime_forward is \fIunset\fP, ** otherwise $$mime_forward_decode is used instead. */ - { "forward_decrypt", DT_BOOL, R_NONE, &C_ForwardDecrypt, true }, + { "forward_decrypt", DT_BOOL, 0, &C_ForwardDecrypt, true }, /* ** .pp ** Controls the handling of encrypted messages when forwarding a message. @@ -1236,27 +1236,27 @@ struct ConfigDef MuttVars[] = { ** $$mime_forward_decode is \fIunset\fP. ** (PGP only) */ - { "forward_edit", DT_QUAD, R_NONE, &C_ForwardEdit, MUTT_YES }, + { "forward_edit", DT_QUAD, 0, &C_ForwardEdit, MUTT_YES }, /* ** .pp ** This quadoption controls whether or not the user is automatically ** placed in the editor when forwarding messages. For those who always want ** to forward with no modification, use a setting of "no". */ - { "forward_format", DT_STRING|DT_NOT_EMPTY, R_NONE, &C_ForwardFormat, IP "[%a: %s]" }, + { "forward_format", DT_STRING|DT_NOT_EMPTY, 0, &C_ForwardFormat, IP "[%a: %s]" }, /* ** .pp ** This variable controls the default subject when forwarding a message. ** It uses the same format sequences as the $$index_format variable. */ - { "forward_quote", DT_BOOL, R_NONE, &C_ForwardQuote, false }, + { "forward_quote", DT_BOOL, 0, &C_ForwardQuote, false }, /* ** .pp ** When \fIset\fP, forwarded messages included in the main body of the ** message (when $$mime_forward is \fIunset\fP) will be quoted using ** $$indent_string. */ - { "forward_references", DT_BOOL, R_NONE, &C_ForwardReferences, false }, + { "forward_references", DT_BOOL, 0, &C_ForwardReferences, false }, /* ** .pp ** When \fIset\fP, forwarded messages set the "In-Reply-To:" and @@ -1264,7 +1264,7 @@ struct ConfigDef MuttVars[] = { ** forwarded message becomes part of the original thread instead of starting ** a new one. */ - { "from", DT_ADDRESS, R_NONE, &C_From, 0 }, + { "from", DT_ADDRESS, 0, &C_From, 0 }, /* ** .pp ** When \fIset\fP, this variable contains a default "from" address. It @@ -1273,7 +1273,7 @@ struct ConfigDef MuttVars[] = { ** .pp ** If not specified, then it may be read from the environment variable \fC$$$EMAIL\fP. */ - { "from_chars", DT_MBTABLE, R_INDEX|R_PAGER, &C_FromChars, 0 }, + { "from_chars", DT_MBTABLE|R_INDEX|R_PAGER, 0, &C_FromChars, 0 }, /* ** .pp ** Controls the character used to prefix the %F and %L fields in the @@ -1297,7 +1297,7 @@ struct ConfigDef MuttVars[] = { ** string variables; one can't tell a variable that is unset from one ** that is set to the empty string. */ - { "gecos_mask", DT_REGEX, R_NONE, &C_GecosMask, IP "^[^,]*" }, + { "gecos_mask", DT_REGEX, 0, &C_GecosMask, IP "^[^,]*" }, /* ** .pp ** A regular expression used by NeoMutt to parse the GECOS field of a password @@ -1313,7 +1313,7 @@ struct ConfigDef MuttVars[] = { ** "Franklin" to "Franklin, Steve". */ #ifdef USE_NNTP - { "group_index_format", DT_STRING|DT_NOT_EMPTY, R_INDEX|R_PAGER, &C_GroupIndexFormat, IP "%4C %M%N %5s %-45.45f %d" }, + { "group_index_format", DT_STRING|DT_NOT_EMPTY|R_INDEX|R_PAGER, 0, &C_GroupIndexFormat, IP "%4C %M%N %5s %-45.45f %d" }, /* ** .pp ** This variable allows you to customize the newsgroup browser display to @@ -1332,7 +1332,7 @@ struct ConfigDef MuttVars[] = { ** .de */ #endif - { "hdrs", DT_BOOL, R_NONE, &C_Hdrs, true }, + { "hdrs", DT_BOOL, 0, &C_Hdrs, true }, /* ** .pp ** When \fIunset\fP, the header fields normally added by the "$my_hdr" @@ -1340,7 +1340,7 @@ struct ConfigDef MuttVars[] = { ** composing a new message or replying in order to take effect. If \fIset\fP, ** the user defined header fields are added to every new message. */ - { "header", DT_BOOL, R_NONE, &C_Header, false }, + { "header", DT_BOOL, 0, &C_Header, false }, /* ** .pp ** When \fIset\fP, this variable causes NeoMutt to include the header @@ -1348,7 +1348,7 @@ struct ConfigDef MuttVars[] = { ** The $$weed setting applies. */ #ifdef USE_HCACHE - { "header_cache", DT_PATH, R_NONE, &C_HeaderCache, 0 }, + { "header_cache", DT_PATH, 0, &C_HeaderCache, 0 }, /* ** .pp ** This variable points to the header cache database. @@ -1360,13 +1360,13 @@ struct ConfigDef MuttVars[] = { ** Header caching can greatly improve speed when opening POP, IMAP ** MH or Maildir folders, see "$caching" for details. */ - { "header_cache_backend", DT_STRING, R_NONE, &C_HeaderCacheBackend, 0, hcache_validator }, + { "header_cache_backend", DT_STRING, 0, &C_HeaderCacheBackend, 0, hcache_validator }, /* ** .pp ** This variable specifies the header cache backend. */ #if defined(HAVE_QDBM) || defined(HAVE_TC) || defined(HAVE_KC) - { "header_cache_compress", DT_BOOL, R_NONE, &C_HeaderCacheCompress, true }, + { "header_cache_compress", DT_BOOL, 0, &C_HeaderCacheCompress, true }, /* ** .pp ** When NeoMutt is compiled with qdbm, tokyocabinet or kyotocabinet @@ -1379,7 +1379,7 @@ struct ConfigDef MuttVars[] = { */ #endif /* HAVE_QDBM */ #if defined(HAVE_GDBM) || defined(HAVE_BDB) - { "header_cache_pagesize", DT_STRING, R_NONE, &C_HeaderCachePagesize, IP "16384" }, + { "header_cache_pagesize", DT_STRING, 0, &C_HeaderCachePagesize, IP "16384" }, /* ** .pp ** When NeoMutt is compiled with either gdbm or bdb4 as the header cache backend, @@ -1389,7 +1389,7 @@ struct ConfigDef MuttVars[] = { */ #endif /* HAVE_GDBM || HAVE_BDB */ #endif /* USE_HCACHE */ - { "header_color_partial", DT_BOOL, R_PAGER_FLOW, &C_HeaderColorPartial, false }, + { "header_color_partial", DT_BOOL|R_PAGER_FLOW, 0, &C_HeaderColorPartial, false }, /* ** .pp ** When \fIset\fP, color header regexes behave like color body regexes: @@ -1400,7 +1400,7 @@ struct ConfigDef MuttVars[] = { ** .pp ** See "$color" for more details. */ - { "help", DT_BOOL, R_REFLOW, &C_Help, true }, + { "help", DT_BOOL|R_REFLOW, 0, &C_Help, true }, /* ** .pp ** When \fIset\fP, help lines describing the bindings for the major functions @@ -1412,7 +1412,7 @@ struct ConfigDef MuttVars[] = { ** running. Since this variable is primarily aimed at new users, neither ** of these should present a major problem. */ - { "hidden_host", DT_BOOL, R_NONE, &C_HiddenHost, false }, + { "hidden_host", DT_BOOL, 0, &C_HiddenHost, false }, /* ** .pp ** When \fIset\fP, NeoMutt will skip the host name part of $$hostname variable @@ -1420,67 +1420,67 @@ struct ConfigDef MuttVars[] = { ** affect the generation of Message-IDs, and it will not lead to the ** cut-off of first-level domains. */ - { "hidden_tags", DT_STRING, R_NONE, &C_HiddenTags, IP "unread,draft,flagged,passed,replied,attachment,signed,encrypted" }, + { "hidden_tags", DT_STRING, 0, &C_HiddenTags, IP "unread,draft,flagged,passed,replied,attachment,signed,encrypted" }, /* ** .pp ** This variable specifies private notmuch/imap tags which should not be printed ** on screen. */ - { "hide_limited", DT_BOOL, R_TREE|R_INDEX, &C_HideLimited, false }, + { "hide_limited", DT_BOOL|R_TREE|R_INDEX, 0, &C_HideLimited, false }, /* ** .pp ** When \fIset\fP, NeoMutt will not show the presence of messages that are hidden ** by limiting, in the thread tree. */ - { "hide_missing", DT_BOOL, R_TREE|R_INDEX, &C_HideMissing, true }, + { "hide_missing", DT_BOOL|R_TREE|R_INDEX, 0, &C_HideMissing, true }, /* ** .pp ** When \fIset\fP, NeoMutt will not show the presence of missing messages in the ** thread tree. */ - { "hide_thread_subject", DT_BOOL, R_TREE|R_INDEX, &C_HideThreadSubject, true }, + { "hide_thread_subject", DT_BOOL|R_TREE|R_INDEX, 0, &C_HideThreadSubject, true }, /* ** .pp ** When \fIset\fP, NeoMutt will not show the subject of messages in the thread ** tree that have the same subject as their parent or closest previously ** displayed sibling. */ - { "hide_top_limited", DT_BOOL, R_TREE|R_INDEX, &C_HideTopLimited, false }, + { "hide_top_limited", DT_BOOL|R_TREE|R_INDEX, 0, &C_HideTopLimited, false }, /* ** .pp ** When \fIset\fP, NeoMutt will not show the presence of messages that are hidden ** by limiting, at the top of threads in the thread tree. Note that when ** $$hide_limited is \fIset\fP, this option will have no effect. */ - { "hide_top_missing", DT_BOOL, R_TREE|R_INDEX, &C_HideTopMissing, true }, + { "hide_top_missing", DT_BOOL|R_TREE|R_INDEX, 0, &C_HideTopMissing, true }, /* ** .pp ** When \fIset\fP, NeoMutt will not show the presence of missing messages at the ** top of threads in the thread tree. Note that when $$hide_missing is ** \fIset\fP, this option will have no effect. */ - { "history", DT_NUMBER|DT_NOT_NEGATIVE, R_NONE, &C_History, 10 }, + { "history", DT_NUMBER|DT_NOT_NEGATIVE, 0, &C_History, 10 }, /* ** .pp ** This variable controls the size (in number of strings remembered) of ** the string history buffer per category. The buffer is cleared each time the ** variable is set. */ - { "history_file", DT_PATH, R_NONE, &C_HistoryFile, IP "~/.mutthistory" }, + { "history_file", DT_PATH, 0, &C_HistoryFile, IP "~/.mutthistory" }, /* ** .pp ** The file in which NeoMutt will save its history. ** .pp ** Also see $$save_history. */ - { "history_remove_dups", DT_BOOL, R_NONE, &C_HistoryRemoveDups, false }, + { "history_remove_dups", DT_BOOL, 0, &C_HistoryRemoveDups, false }, /* ** .pp ** When \fIset\fP, all of the string history will be scanned for duplicates ** when a new entry is added. Duplicate entries in the $$history_file will ** also be removed when it is periodically compacted. */ - { "honor_disposition", DT_BOOL, R_NONE, &C_HonorDisposition, false }, + { "honor_disposition", DT_BOOL, 0, &C_HonorDisposition, false }, /* ** .pp ** When \fIset\fP, NeoMutt will not display attachments with a @@ -1491,13 +1491,13 @@ struct ConfigDef MuttVars[] = { ** If \fIunset\fP, NeoMutt will render all MIME parts it can ** properly transform to plain text. */ - { "honor_followup_to", DT_QUAD, R_NONE, &C_HonorFollowupTo, MUTT_YES }, + { "honor_followup_to", DT_QUAD, 0, &C_HonorFollowupTo, MUTT_YES }, /* ** .pp ** This variable controls whether or not a Mail-Followup-To header is ** honored when group-replying to a message. */ - { "hostname", DT_STRING, R_NONE, &C_Hostname, 0 }, + { "hostname", DT_STRING, 0, &C_Hostname, 0 }, /* ** .pp ** Specifies the fully-qualified hostname of the system NeoMutt is running on @@ -1512,14 +1512,14 @@ struct ConfigDef MuttVars[] = { ** Also see $$use_domain and $$hidden_host. */ #ifdef HAVE_LIBIDN - { "idn_decode", DT_BOOL, R_MENU, &C_IdnDecode, true }, + { "idn_decode", DT_BOOL|R_MENU, 0, &C_IdnDecode, true }, /* ** .pp ** When \fIset\fP, NeoMutt will show you international domain names decoded. ** Note: You can use IDNs for addresses even if this is \fIunset\fP. ** This variable only affects decoding. (IDN only) */ - { "idn_encode", DT_BOOL, R_MENU, &C_IdnEncode, true }, + { "idn_encode", DT_BOOL|R_MENU, 0, &C_IdnEncode, true }, /* ** .pp ** When \fIset\fP, NeoMutt will encode international domain names using @@ -1527,7 +1527,7 @@ struct ConfigDef MuttVars[] = { ** UTF-8 encoded domains. (IDN only) */ #endif /* HAVE_LIBIDN */ - { "ignore_list_reply_to", DT_BOOL, R_NONE, &C_IgnoreListReplyTo, false }, + { "ignore_list_reply_to", DT_BOOL, 0, &C_IgnoreListReplyTo, false }, /* ** .pp ** Affects the behavior of the \fC\fP function when replying to @@ -1541,7 +1541,7 @@ struct ConfigDef MuttVars[] = { ** list. */ #ifdef USE_IMAP - { "imap_authenticators", DT_STRING, R_NONE, &C_ImapAuthenticators, 0 }, + { "imap_authenticators", DT_STRING, 0, &C_ImapAuthenticators, 0 }, /* ** .pp ** This is a colon-delimited list of authentication methods NeoMutt may @@ -1561,7 +1561,7 @@ struct ConfigDef MuttVars[] = { ** the previous methods are unavailable. If a method is available but ** authentication fails, NeoMutt will not connect to the IMAP server. */ - { "imap_check_subscribed", DT_BOOL, R_NONE, &C_ImapCheckSubscribed, false }, + { "imap_check_subscribed", DT_BOOL, 0, &C_ImapCheckSubscribed, false }, /* ** .pp ** When \fIset\fP, NeoMutt will fetch the set of subscribed folders from @@ -1569,7 +1569,7 @@ struct ConfigDef MuttVars[] = { ** of mailboxes it polls for new mail just as if you had issued individual ** "$mailboxes" commands. */ - { "imap_condstore", DT_BOOL, R_NONE, &C_ImapCondstore, false }, + { "imap_condstore", DT_BOOL, 0, &C_ImapCondstore, false }, /* ** .pp ** When \fIset\fP, mutt will use the CONDSTORE extension (RFC 7162) @@ -1581,14 +1581,14 @@ struct ConfigDef MuttVars[] = { ** those, and displays worse performance when enabled. Your ** mileage may vary. */ - { "imap_delim_chars", DT_STRING, R_NONE, &C_ImapDelimChars, IP "/." }, + { "imap_delim_chars", DT_STRING, 0, &C_ImapDelimChars, IP "/." }, /* ** .pp ** This contains the list of characters which you would like to treat ** as folder separators for displaying IMAP paths. In particular it ** helps in using the "=" shortcut for your \fIfolder\fP variable. */ - { "imap_fetch_chunk_size", DT_LONG, R_NONE, &C_ImapFetchChunkSize, 0 }, + { "imap_fetch_chunk_size", DT_LONG, 0, &C_ImapFetchChunkSize, 0 }, /* ** .pp ** When set to a value greater than 0, new headers will be downloaded @@ -1597,7 +1597,7 @@ struct ConfigDef MuttVars[] = { ** a FETCH per set of this size instead of a single FETCH for all new ** headers. */ - { "imap_headers", DT_STRING, R_INDEX, &C_ImapHeaders, 0 }, + { "imap_headers", DT_STRING|R_INDEX, 0, &C_ImapHeaders, 0 }, /* ** .pp ** NeoMutt requests these header fields in addition to the default headers @@ -1611,7 +1611,7 @@ struct ConfigDef MuttVars[] = { ** and not contain the colon, e.g. "X-BOGOSITY X-SPAM-STATUS" for the ** "X-Bogosity:" and "X-Spam-Status:" header fields. */ - { "imap_idle", DT_BOOL, R_NONE, &C_ImapIdle, false }, + { "imap_idle", DT_BOOL, 0, &C_ImapIdle, false }, /* ** .pp ** When \fIset\fP, NeoMutt will attempt to use the IMAP IDLE extension @@ -1620,7 +1620,7 @@ struct ConfigDef MuttVars[] = { ** to NeoMutt's implementation. If your connection seems to freeze ** up periodically, try unsetting this. */ - { "imap_keepalive", DT_NUMBER|DT_NOT_NEGATIVE, R_NONE, &C_ImapKeepalive, 300 }, + { "imap_keepalive", DT_NUMBER|DT_NOT_NEGATIVE, 0, &C_ImapKeepalive, 300 }, /* ** .pp ** This variable specifies the maximum amount of time in seconds that NeoMutt @@ -1631,21 +1631,21 @@ struct ConfigDef MuttVars[] = { ** violated every now and then. Reduce this number if you find yourself ** getting disconnected from your IMAP server due to inactivity. */ - { "imap_list_subscribed", DT_BOOL, R_NONE, &C_ImapListSubscribed, false }, + { "imap_list_subscribed", DT_BOOL, 0, &C_ImapListSubscribed, false }, /* ** .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 \fC\fP function. */ - { "imap_login", DT_STRING|DT_SENSITIVE, R_NONE, &C_ImapLogin, 0 }, + { "imap_login", DT_STRING|DT_SENSITIVE, 0, &C_ImapLogin, 0 }, /* ** .pp ** Your login name on the IMAP server. ** .pp ** This variable defaults to the value of $$imap_user. */ - { "imap_oauth_refresh_command", DT_STRING|DT_SENSITIVE, R_NONE, &C_ImapOauthRefreshCommand, 0 }, + { "imap_oauth_refresh_command", DT_STRING|DT_SENSITIVE, 0, &C_ImapOauthRefreshCommand, 0 }, /* ** .pp ** The command to run to generate an OAUTH refresh token for @@ -1653,7 +1653,7 @@ struct ConfigDef MuttVars[] = { ** run on every connection attempt that uses the OAUTHBEARER authentication ** mechanism. See "$oauth" for details. */ - { "imap_pass", DT_STRING|DT_SENSITIVE, R_NONE, &C_ImapPass, 0 }, + { "imap_pass", DT_STRING|DT_SENSITIVE, 0, &C_ImapPass, 0 }, /* ** .pp ** Specifies the password for your IMAP account. If \fIunset\fP, NeoMutt will @@ -1664,7 +1664,7 @@ struct ConfigDef MuttVars[] = { ** fairly secure machine, because the superuser can read your neomuttrc even ** if you are the only one who can read the file. */ - { "imap_passive", DT_BOOL, R_NONE, &C_ImapPassive, true }, + { "imap_passive", DT_BOOL, 0, &C_ImapPassive, true }, /* ** .pp ** When \fIset\fP, NeoMutt will not open new IMAP connections to check for new @@ -1673,7 +1673,7 @@ struct ConfigDef MuttVars[] = { ** user/password pairs on NeoMutt invocation, or if opening the connection ** is slow. */ - { "imap_peek", DT_BOOL, R_NONE, &C_ImapPeek, true }, + { "imap_peek", DT_BOOL, 0, &C_ImapPeek, true }, /* ** .pp ** When \fIset\fP, NeoMutt will avoid implicitly marking your mail as read whenever @@ -1681,7 +1681,7 @@ struct ConfigDef MuttVars[] = { ** but can make closing an IMAP folder somewhat slower. This option ** exists to appease speed freaks. */ - { "imap_pipeline_depth", DT_NUMBER|DT_NOT_NEGATIVE, R_NONE, &C_ImapPipelineDepth, 15 }, + { "imap_pipeline_depth", DT_NUMBER|DT_NOT_NEGATIVE, 0, &C_ImapPipelineDepth, 15 }, /* ** .pp ** Controls the number of IMAP commands that may be queued up before they @@ -1692,7 +1692,7 @@ struct ConfigDef MuttVars[] = { ** .pp ** \fBNote:\fP Changes to this variable have no effect on open connections. */ - { "imap_poll_timeout", DT_NUMBER|DT_NOT_NEGATIVE, R_NONE, &C_ImapPollTimeout, 15 }, + { "imap_poll_timeout", DT_NUMBER|DT_NOT_NEGATIVE, 0, &C_ImapPollTimeout, 15 }, /* ** .pp ** This variable specifies the maximum amount of time in seconds @@ -1700,7 +1700,7 @@ struct ConfigDef MuttVars[] = { ** for new mail, before timing out and closing the connection. Set ** to 0 to disable timing out. */ - { "imap_qresync", DT_BOOL, R_NONE, &C_ImapQresync, false }, + { "imap_qresync", DT_BOOL, 0, &C_ImapQresync, false }, /* ** .pp ** When \fIset\fP, mutt will use the QRESYNC extension (RFC 7162) @@ -1711,7 +1711,7 @@ struct ConfigDef MuttVars[] = { ** strange behavior, such as duplicate or missing messages please ** file a bug report to let us know. */ - { "imap_rfc5161", DT_BOOL, R_NONE, &C_ImapRfc5161, true }, + { "imap_rfc5161", DT_BOOL, 0, &C_ImapRfc5161, true }, /* ** .pp ** When \fIset\fP, NeoMutt will use the IMAP ENABLE extension (RFC 5161) to @@ -1720,7 +1720,7 @@ struct ConfigDef MuttVars[] = { ** If your connection seems to freeze at login, try unsetting this. See also ** https://github.com/neomutt/neomutt/issues/1689 */ - { "imap_servernoise", DT_BOOL, R_NONE, &C_ImapServernoise, true }, + { "imap_servernoise", DT_BOOL, 0, &C_ImapServernoise, true }, /* ** .pp ** When \fIset\fP, NeoMutt will display warning messages from the IMAP @@ -1729,7 +1729,7 @@ struct ConfigDef MuttVars[] = { ** server which are out of the users' hands, you may wish to suppress ** them at some point. */ - { "imap_user", DT_STRING|DT_SENSITIVE, R_NONE, &C_ImapUser, 0 }, + { "imap_user", DT_STRING|DT_SENSITIVE, 0, &C_ImapUser, 0 }, /* ** .pp ** The name of the user whose mail you intend to access on the IMAP @@ -1738,7 +1738,7 @@ struct ConfigDef MuttVars[] = { ** This variable defaults to your user name on the local machine. */ #endif - { "implicit_autoview", DT_BOOL, R_NONE, &C_ImplicitAutoview, false }, + { "implicit_autoview", DT_BOOL, 0, &C_ImplicitAutoview, false }, /* ** .pp ** If set to "yes", NeoMutt will look for a mailcap entry with the @@ -1747,13 +1747,13 @@ struct ConfigDef MuttVars[] = { ** use the viewer defined in that entry to convert the body part to text ** form. */ - { "include", DT_QUAD, R_NONE, &C_Include, MUTT_ASKYES }, + { "include", DT_QUAD, 0, &C_Include, MUTT_ASKYES }, /* ** .pp ** Controls whether or not a copy of the message(s) you are replying to ** is included in your reply. */ - { "include_encrypted", DT_BOOL, R_NONE, &C_IncludeEncrypted, false }, + { "include_encrypted", DT_BOOL, 0, &C_IncludeEncrypted, false }, /* ** .pp ** Controls whether or not Mutt includes separately encrypted attachment @@ -1764,13 +1764,13 @@ struct ConfigDef MuttVars[] = { ** were attached by the attacker, they could trick an unwary recipient into ** decrypting and including the message in their reply. */ - { "include_onlyfirst", DT_BOOL, R_NONE, &C_IncludeOnlyfirst, false }, + { "include_onlyfirst", DT_BOOL, 0, &C_IncludeOnlyfirst, false }, /* ** .pp ** Controls whether or not NeoMutt includes only the first attachment ** of the message you are replying. */ - { "indent_string", DT_STRING, R_NONE, &C_IndentString, IP "> " }, + { "indent_string", DT_STRING, 0, &C_IndentString, IP "> " }, /* ** .pp ** Specifies the string to prepend to each line of text quoted in a @@ -1783,7 +1783,7 @@ struct ConfigDef MuttVars[] = { ** This option is a format string, please see the description of ** $$index_format for supported \fCprintf(3)\fP-style sequences. */ - { "index_format", DT_STRING|DT_NOT_EMPTY, R_INDEX|R_PAGER, &C_IndexFormat, IP "%4C %Z %{%b %d} %-15.15L (%?l?%4l&%4c?) %s" }, + { "index_format", DT_STRING|DT_NOT_EMPTY|R_INDEX|R_PAGER, 0, &C_IndexFormat, IP "%4C %Z %{%b %d} %-15.15L (%?l?%4l&%4c?) %s" }, /* ** .pp ** This variable allows you to customize the message index display to @@ -1885,7 +1885,7 @@ struct ConfigDef MuttVars[] = { ** ``$save-hook'', ``$fcc-hook'' and ``$fcc-save-hook'', too. */ #ifdef USE_NNTP - { "inews", DT_COMMAND, R_NONE, &C_Inews, 0 }, + { "inews", DT_COMMAND, 0, &C_Inews, 0 }, /* ** .pp ** If set, specifies the program and arguments used to deliver news posted @@ -1906,25 +1906,25 @@ struct ConfigDef MuttVars[] = { ** .te */ #endif - { "ispell", DT_COMMAND, R_NONE, &C_Ispell, IP ISPELL }, + { "ispell", DT_COMMAND, 0, &C_Ispell, IP ISPELL }, /* ** .pp ** How to invoke ispell (GNU's spell-checking software). */ - { "keep_flagged", DT_BOOL, R_NONE, &C_KeepFlagged, false }, + { "keep_flagged", DT_BOOL, 0, &C_KeepFlagged, false }, /* ** .pp ** If \fIset\fP, read messages marked as flagged will not be moved ** from your spool mailbox to your $$mbox mailbox, or as a result of ** a "$mbox-hook" command. */ - { "mail_check", DT_NUMBER|DT_NOT_NEGATIVE, R_NONE, &C_MailCheck, 5 }, + { "mail_check", DT_NUMBER|DT_NOT_NEGATIVE, 0, &C_MailCheck, 5 }, /* ** .pp ** This variable configures how often (in seconds) NeoMutt should look for ** new mail. Also see the $$timeout variable. */ - { "mail_check_recent", DT_BOOL, R_NONE, &C_MailCheckRecent, true }, + { "mail_check_recent", DT_BOOL, 0, &C_MailCheckRecent, true }, /* ** .pp ** When \fIset\fP, NeoMutt will only notify you about new mail that has been received @@ -1935,7 +1935,7 @@ struct ConfigDef MuttVars[] = { ** When \fI$$mark_old\fP is set, NeoMutt does not consider the mailbox to contain new ** mail if only old messages exist. */ - { "mail_check_stats", DT_BOOL, R_NONE, &C_MailCheckStats, false }, + { "mail_check_stats", DT_BOOL, 0, &C_MailCheckStats, false }, /* ** .pp ** When \fIset\fP, NeoMutt will periodically calculate message @@ -1948,13 +1948,13 @@ struct ConfigDef MuttVars[] = { ** Message statistics can also be explicitly calculated by invoking the ** \fC\fP function. */ - { "mail_check_stats_interval", DT_NUMBER|DT_NOT_NEGATIVE, R_NONE, &C_MailCheckStatsInterval, 60 }, + { "mail_check_stats_interval", DT_NUMBER|DT_NOT_NEGATIVE, 0, &C_MailCheckStatsInterval, 60 }, /* ** .pp ** When $$mail_check_stats is \fIset\fP, this variable configures ** how often (in seconds) NeoMutt will update message counts. */ - { "mailcap_path", DT_STRING, R_NONE, &C_MailcapPath, IP "~/.mailcap:" PKGDATADIR "/mailcap:" SYSCONFDIR "/mailcap:/etc/mailcap:/usr/etc/mailcap:/usr/local/etc/mailcap" }, + { "mailcap_path", DT_STRING, 0, &C_MailcapPath, IP "~/.mailcap:" PKGDATADIR "/mailcap:" SYSCONFDIR "/mailcap:/etc/mailcap:/usr/etc/mailcap:/usr/local/etc/mailcap" }, /* ** .pp ** This variable specifies which files to consult when attempting to @@ -1965,7 +1965,7 @@ struct ConfigDef MuttVars[] = { ** .pp ** The default search path is from RFC1524. */ - { "mailcap_sanitize", DT_BOOL, R_NONE, &C_MailcapSanitize, true }, + { "mailcap_sanitize", DT_BOOL, 0, &C_MailcapSanitize, true }, /* ** .pp ** If \fIset\fP, NeoMutt will restrict possible characters in mailcap % expandos @@ -1975,7 +1975,7 @@ struct ConfigDef MuttVars[] = { ** \fBDON'T CHANGE THIS SETTING UNLESS YOU ARE REALLY SURE WHAT YOU ARE ** DOING!\fP */ - { "maildir_check_cur", DT_BOOL, R_NONE, &C_MaildirCheckCur, false }, + { "maildir_check_cur", DT_BOOL, 0, &C_MaildirCheckCur, false }, /* ** .pp ** If \fIset\fP, NeoMutt will poll both the new and cur directories of @@ -1986,7 +1986,7 @@ struct ConfigDef MuttVars[] = { ** to scan all cur messages. */ #ifdef USE_HCACHE - { "maildir_header_cache_verify", DT_BOOL, R_NONE, &C_MaildirHeaderCacheVerify, true }, + { "maildir_header_cache_verify", DT_BOOL, 0, &C_MaildirHeaderCacheVerify, true }, /* ** .pp ** Check for Maildir unaware programs other than NeoMutt having modified maildir @@ -1995,7 +1995,7 @@ struct ConfigDef MuttVars[] = { ** folders). */ #endif - { "maildir_trash", DT_BOOL, R_NONE, &C_MaildirTrash, false }, + { "maildir_trash", DT_BOOL, 0, &C_MaildirTrash, false }, /* ** .pp ** If \fIset\fP, messages marked as deleted will be saved with the maildir @@ -2003,14 +2003,14 @@ struct ConfigDef MuttVars[] = { ** to maildir-style mailboxes. Setting it will have no effect on other ** mailbox types. */ - { "mark_macro_prefix", DT_STRING, R_NONE, &C_MarkMacroPrefix, IP "'" }, + { "mark_macro_prefix", DT_STRING, 0, &C_MarkMacroPrefix, IP "'" }, /* ** .pp ** Prefix for macros created using mark-message. A new macro ** automatically generated with \fIa\fP will be composed ** from this prefix and the letter \fIa\fP. */ - { "mark_old", DT_BOOL, R_INDEX|R_PAGER, &C_MarkOld, true }, + { "mark_old", DT_BOOL|R_INDEX|R_PAGER, 0, &C_MarkOld, true }, /* ** .pp ** Controls whether or not NeoMutt marks \fInew\fP \fBunread\fP @@ -2019,7 +2019,7 @@ struct ConfigDef MuttVars[] = { ** will show up with an "O" next to them in the index menu, ** indicating that they are old. */ - { "markers", DT_BOOL, R_PAGER_FLOW, &C_Markers, true }, + { "markers", DT_BOOL|R_PAGER_FLOW, 0, &C_Markers, true }, /* ** .pp ** Controls the display of wrapped lines in the internal pager. If set, a @@ -2027,14 +2027,14 @@ struct ConfigDef MuttVars[] = { ** .pp ** Also see the $$smart_wrap variable. */ - { "mask", DT_REGEX|DT_REGEX_MATCH_CASE|DT_REGEX_ALLOW_NOT|DT_REGEX_NOSUB, R_NONE, &C_Mask, IP "!^\\.[^.]" }, + { "mask", DT_REGEX|DT_REGEX_MATCH_CASE|DT_REGEX_ALLOW_NOT|DT_REGEX_NOSUB, 0, &C_Mask, IP "!^\\.[^.]" }, /* ** .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. */ - { "mbox", DT_PATH|DT_MAILBOX, R_INDEX|R_PAGER, &C_Mbox, IP "~/mbox" }, + { "mbox", DT_PATH|DT_MAILBOX|R_INDEX|R_PAGER, 0, &C_Mbox, IP "~/mbox" }, /* ** .pp ** This specifies the folder into which read mail in your $$spoolfile @@ -2042,7 +2042,7 @@ struct ConfigDef MuttVars[] = { ** .pp ** Also see the $$move variable. */ - { "mbox_type", DT_MAGIC, R_NONE, &C_MboxType, MUTT_MBOX }, + { "mbox_type", DT_MAGIC, 0, &C_MboxType, MUTT_MBOX }, /* ** .pp ** The default mailbox type used when creating new folders. May be any of @@ -2050,20 +2050,20 @@ struct ConfigDef MuttVars[] = { ** .pp ** This can also be set using the \fC-m\fP command-line option. */ - { "menu_context", DT_NUMBER|DT_NOT_NEGATIVE, R_NONE, &C_MenuContext, 0 }, + { "menu_context", DT_NUMBER|DT_NOT_NEGATIVE, 0, &C_MenuContext, 0 }, /* ** .pp ** This variable controls the number of lines of context that are given ** when scrolling through menus. (Similar to $$pager_context.) */ - { "menu_move_off", DT_BOOL, R_NONE, &C_MenuMoveOff, true }, + { "menu_move_off", DT_BOOL, 0, &C_MenuMoveOff, true }, /* ** .pp ** When \fIunset\fP, the bottom entry of menus will never scroll up past ** the bottom of the screen, unless there are less entries than lines. ** When \fIset\fP, the bottom entry may move off the bottom. */ - { "menu_scroll", DT_BOOL, R_NONE, &C_MenuScroll, false }, + { "menu_scroll", DT_BOOL, 0, &C_MenuScroll, false }, /* ** .pp ** When \fIset\fP, menus will be scrolled up or down one line when you @@ -2072,7 +2072,7 @@ struct ConfigDef MuttVars[] = { ** (useful for slow links to avoid many redraws). */ #if defined(USE_IMAP) || defined(USE_POP) - { "message_cache_clean", DT_BOOL, R_NONE, &C_MessageCacheClean, false }, + { "message_cache_clean", DT_BOOL, 0, &C_MessageCacheClean, false }, /* ** .pp ** If \fIset\fP, NeoMutt will clean out obsolete entries from the message cache when @@ -2080,7 +2080,7 @@ struct ConfigDef MuttVars[] = { ** every once in a while, since it can be a little slow ** (especially for large folders). */ - { "message_cachedir", DT_PATH, R_NONE, &C_MessageCachedir, 0 }, + { "message_cachedir", DT_PATH, 0, &C_MessageCachedir, 0 }, /* ** .pp ** Set this to a directory and NeoMutt will cache copies of messages from @@ -2094,14 +2094,14 @@ struct ConfigDef MuttVars[] = { ** Also see the $$message_cache_clean variable. */ #endif - { "message_format", DT_STRING|DT_NOT_EMPTY, R_NONE, &C_MessageFormat, IP "%s" }, + { "message_format", DT_STRING|DT_NOT_EMPTY, 0, &C_MessageFormat, IP "%s" }, /* ** .pp ** This is the string displayed in the "attachment" menu for ** attachments of type \fCmessage/rfc822\fP. For a full listing of defined ** \fCprintf(3)\fP-like sequences see the section on $$index_format. */ - { "meta_key", DT_BOOL, R_NONE, &C_MetaKey, false }, + { "meta_key", DT_BOOL, 0, &C_MetaKey, false }, /* ** .pp ** If \fIset\fP, forces NeoMutt to interpret keystrokes with the high bit (bit 8) @@ -2112,13 +2112,13 @@ struct ConfigDef MuttVars[] = { ** high bit from \fC0xf8\fP is \fC0x78\fP, which is the ASCII character ** "x". */ - { "metoo", DT_BOOL, R_NONE, &C_Metoo, false }, + { "metoo", DT_BOOL, 0, &C_Metoo, false }, /* ** .pp ** If \fIunset\fP, NeoMutt will remove your address (see the "$alternates" ** command) from the list of recipients when replying to a message. */ - { "mh_purge", DT_BOOL, R_NONE, &C_MhPurge, false }, + { "mh_purge", DT_BOOL, 0, &C_MhPurge, false }, /* ** .pp ** When \fIunset\fP, NeoMutt will mimic mh's behavior and rename deleted messages @@ -2129,22 +2129,22 @@ struct ConfigDef MuttVars[] = { ** .pp ** This option is similar to $$maildir_trash for Maildir folders. */ - { "mh_seq_flagged", DT_STRING, R_NONE, &C_MhSeqFlagged, IP "flagged" }, + { "mh_seq_flagged", DT_STRING, 0, &C_MhSeqFlagged, IP "flagged" }, /* ** .pp ** The name of the MH sequence used for flagged messages. */ - { "mh_seq_replied", DT_STRING, R_NONE, &C_MhSeqReplied, IP "replied" }, + { "mh_seq_replied", DT_STRING, 0, &C_MhSeqReplied, IP "replied" }, /* ** .pp ** The name of the MH sequence used to tag replied messages. */ - { "mh_seq_unseen", DT_STRING, R_NONE, &C_MhSeqUnseen, IP "unseen" }, + { "mh_seq_unseen", DT_STRING, 0, &C_MhSeqUnseen, IP "unseen" }, /* ** .pp ** The name of the MH sequence used for unseen messages. */ - { "mime_forward", DT_QUAD, R_NONE, &C_MimeForward, MUTT_NO }, + { "mime_forward", DT_QUAD, 0, &C_MimeForward, MUTT_NO }, /* ** .pp ** When \fIset\fP, the message you are forwarding will be attached as a @@ -2156,14 +2156,14 @@ struct ConfigDef MuttVars[] = { ** .pp ** Also see $$forward_decode and $$mime_forward_decode. */ - { "mime_forward_decode", DT_BOOL, R_NONE, &C_MimeForwardDecode, false }, + { "mime_forward_decode", DT_BOOL, 0, &C_MimeForwardDecode, false }, /* ** .pp ** Controls the decoding of complex MIME messages into \fCtext/plain\fP when ** forwarding a message while $$mime_forward is \fIset\fP. Otherwise ** $$forward_decode is used instead. */ - { "mime_forward_rest", DT_QUAD, R_NONE, &C_MimeForwardRest, MUTT_YES }, + { "mime_forward_rest", DT_QUAD, 0, &C_MimeForwardRest, MUTT_YES }, /* ** .pp ** When forwarding multiple attachments of a MIME message from the attachment @@ -2171,7 +2171,7 @@ struct ConfigDef MuttVars[] = { ** be attached to the newly composed message if this option is \fIset\fP. */ #ifdef USE_NNTP - { "mime_subject", DT_BOOL, R_NONE, &C_MimeSubject, true }, + { "mime_subject", DT_BOOL, 0, &C_MimeSubject, true }, /* ** .pp ** If \fIunset\fP, 8-bit "subject:" line in article header will not be @@ -2179,7 +2179,7 @@ struct ConfigDef MuttVars[] = { ** is Usenet article, because MIME for news is nonstandard feature. */ #endif - { "mime_type_query_command", DT_COMMAND, R_NONE, &C_MimeTypeQueryCommand, 0 }, + { "mime_type_query_command", DT_COMMAND, 0, &C_MimeTypeQueryCommand, 0 }, /* ** .pp ** This specifies a command to run, to determine the mime type of a @@ -2199,14 +2199,14 @@ struct ConfigDef MuttVars[] = { ** Suggested values are "xdg-mime query filetype" or ** "file -bi". */ - { "mime_type_query_first", DT_BOOL, R_NONE, &C_MimeTypeQueryFirst, false }, + { "mime_type_query_first", DT_BOOL, 0, &C_MimeTypeQueryFirst, false }, /* ** .pp ** When \fIset\fP, the $$mime_type_query_command will be run before the ** mime.types lookup. */ #ifdef MIXMASTER - { "mix_entry_format", DT_STRING|DT_NOT_EMPTY, R_NONE, &C_MixEntryFormat, IP "%4n %c %-16s %a" }, + { "mix_entry_format", DT_STRING|DT_NOT_EMPTY, 0, &C_MixEntryFormat, IP "%4n %c %-16s %a" }, /* ** .pp ** This variable describes the format of a remailer line on the mixmaster @@ -2219,7 +2219,7 @@ struct ConfigDef MuttVars[] = { ** .dt %s .dd The remailer's short name ** .de */ - { "mixmaster", DT_COMMAND, R_NONE, &C_Mixmaster, IP MIXMASTER }, + { "mixmaster", DT_COMMAND, 0, &C_Mixmaster, IP MIXMASTER }, /* ** .pp ** This variable contains the path to the Mixmaster binary on your @@ -2228,21 +2228,21 @@ struct ConfigDef MuttVars[] = { ** mixmaster chain. */ #endif - { "move", DT_QUAD, R_NONE, &C_Move, MUTT_NO }, + { "move", DT_QUAD, 0, &C_Move, MUTT_NO }, /* ** .pp ** Controls whether or not NeoMutt will move read messages ** from your spool mailbox to your $$mbox mailbox, or as a result of ** a "$mbox-hook" command. */ - { "narrow_tree", DT_BOOL, R_TREE|R_INDEX, &C_NarrowTree, false }, + { "narrow_tree", DT_BOOL|R_TREE|R_INDEX, 0, &C_NarrowTree, false }, /* ** .pp ** This variable, when \fIset\fP, makes the thread tree narrower, allowing ** deeper threads to fit on the screen. */ #ifdef USE_SOCKET - { "net_inc", DT_NUMBER|DT_NOT_NEGATIVE, R_NONE, &C_NetInc, 10 }, + { "net_inc", DT_NUMBER|DT_NOT_NEGATIVE, 0, &C_NetInc, 10 }, /* ** .pp ** Operations that expect to transfer a large amount of data over the @@ -2252,7 +2252,7 @@ struct ConfigDef MuttVars[] = { ** See also $$read_inc, $$write_inc and $$net_inc. */ #endif - { "new_mail_command", DT_COMMAND, R_NONE, &C_NewMailCommand, 0 }, + { "new_mail_command", DT_COMMAND, 0, &C_NewMailCommand, 0 }, /* ** .pp ** If \fIset\fP, NeoMutt will call this command after a new message is received. @@ -2260,14 +2260,14 @@ struct ConfigDef MuttVars[] = { ** into this command. */ #ifdef USE_NNTP - { "news_cache_dir", DT_PATH, R_NONE, &C_NewsCacheDir, IP "~/.neomutt" }, + { "news_cache_dir", DT_PATH, 0, &C_NewsCacheDir, IP "~/.neomutt" }, /* ** .pp ** This variable pointing to directory where NeoMutt will save cached news ** articles and headers in. If \fIunset\fP, articles and headers will not be ** saved at all and will be reloaded from the server each time. */ - { "news_server", DT_STRING, R_NONE, &C_NewsServer, 0 }, + { "news_server", DT_STRING, 0, &C_NewsServer, 0 }, /* ** .pp ** This variable specifies domain name or address of NNTP server. @@ -2279,12 +2279,12 @@ struct ConfigDef MuttVars[] = { ** environment variable \fC$$$NNTPSERVER\fP, or putting the server name in the ** file "/etc/nntpserver". */ - { "newsgroups_charset", DT_STRING, R_NONE, &C_NewsgroupsCharset, IP "utf-8", charset_validator }, + { "newsgroups_charset", DT_STRING, 0, &C_NewsgroupsCharset, IP "utf-8", charset_validator }, /* ** .pp ** Character set of newsgroups descriptions. */ - { "newsrc", DT_PATH, R_NONE, &C_Newsrc, IP "~/.newsrc" }, + { "newsrc", DT_PATH, 0, &C_Newsrc, IP "~/.newsrc" }, /* ** .pp ** The file, containing info about subscribed newsgroups - names and @@ -2302,81 +2302,81 @@ struct ConfigDef MuttVars[] = { */ #endif #ifdef USE_NOTMUCH - { "nm_db_limit", DT_NUMBER|DT_NOT_NEGATIVE, R_NONE, &C_NmDbLimit, 0 }, + { "nm_db_limit", DT_NUMBER|DT_NOT_NEGATIVE, 0, &C_NmDbLimit, 0 }, /* ** .pp ** This variable specifies the default limit used in notmuch queries. */ - { "nm_default_uri", DT_STRING, R_NONE, &C_NmDefaultUri, 0 }, + { "nm_default_uri", DT_STRING, 0, &C_NmDefaultUri, 0 }, /* ** .pp ** This variable specifies the default Notmuch database in format ** notmuch://. */ - { "nm_exclude_tags", DT_STRING, R_NONE, &C_NmExcludeTags, 0 }, + { "nm_exclude_tags", DT_STRING, 0, &C_NmExcludeTags, 0 }, /* ** .pp ** The messages tagged with these tags are excluded and not loaded ** from notmuch DB to NeoMutt unless specified explicitly. */ - { "nm_flagged_tag", DT_STRING, R_NONE, &C_NmFlaggedTag, IP "flagged" }, + { "nm_flagged_tag", DT_STRING, 0, &C_NmFlaggedTag, IP "flagged" }, /* ** .pp ** This variable specifies notmuch tag which is used for flagged messages. The ** variable is used to count flagged messages in DB and set the flagged flag when ** modifying tags. All other NeoMutt commands use standard (e.g. maildir) flags. */ - { "nm_open_timeout", DT_NUMBER|DT_NOT_NEGATIVE, R_NONE, &C_NmOpenTimeout, 5 }, + { "nm_open_timeout", DT_NUMBER|DT_NOT_NEGATIVE, 0, &C_NmOpenTimeout, 5 }, /* ** .pp ** This variable specifies the timeout for database open in seconds. */ - { "nm_query_type", DT_STRING, R_NONE, &C_NmQueryType, IP "messages" }, + { "nm_query_type", DT_STRING, 0, &C_NmQueryType, IP "messages" }, /* ** .pp ** This variable specifies the default query type (threads or messages) used in notmuch queries. */ - { "nm_query_window_current_position", DT_NUMBER, R_NONE, &C_NmQueryWindowCurrentPosition, 0 }, + { "nm_query_window_current_position", DT_NUMBER, 0, &C_NmQueryWindowCurrentPosition, 0 }, /* ** .pp ** This variable contains the position of the current search for window based vfolder. */ - { "nm_query_window_current_search", DT_STRING, R_NONE, &C_NmQueryWindowCurrentSearch, 0 }, + { "nm_query_window_current_search", DT_STRING, 0, &C_NmQueryWindowCurrentSearch, 0 }, /* ** .pp ** This variable contains the currently setup notmuch search for window based vfolder. */ - { "nm_query_window_duration", DT_NUMBER|DT_NOT_NEGATIVE, R_NONE, &C_NmQueryWindowDuration, 0 }, + { "nm_query_window_duration", DT_NUMBER|DT_NOT_NEGATIVE, 0, &C_NmQueryWindowDuration, 0 }, /* ** .pp ** This variable sets the time duration of a windowed notmuch query. ** Accepted values all non negative integers. A value of 0 disables the feature. */ - { "nm_query_window_timebase", DT_STRING, R_NONE, &C_NmQueryWindowTimebase, IP "week" }, + { "nm_query_window_timebase", DT_STRING, 0, &C_NmQueryWindowTimebase, IP "week" }, /* ** .pp ** This variable sets the time base of a windowed notmuch query. ** Accepted values are 'minute', 'hour', 'day', 'week', 'month', 'year' */ - { "nm_record", DT_BOOL, R_NONE, &C_NmRecord, false }, + { "nm_record", DT_BOOL, 0, &C_NmRecord, false }, /* ** .pp ** This variable specifies if the NeoMutt record should indexed by notmuch. */ - { "nm_record_tags", DT_STRING, R_NONE, &C_NmRecordTags, 0 }, + { "nm_record_tags", DT_STRING, 0, &C_NmRecordTags, 0 }, /* ** .pp ** This variable specifies the default tags applied to messages stored to the NeoMutt record. ** When set to 0 this variable disable the window feature. */ - { "nm_replied_tag", DT_STRING, R_NONE, &C_NmRepliedTag, IP "replied" }, + { "nm_replied_tag", DT_STRING, 0, &C_NmRepliedTag, IP "replied" }, /* ** .pp ** This variable specifies notmuch tag which is used for replied messages. The ** variable is used to set the replied flag when modifiying tags. All other NeoMutt ** commands use standard (e.g. maildir) flags. */ - { "nm_unread_tag", DT_STRING, R_NONE, &C_NmUnreadTag, IP "unread" }, + { "nm_unread_tag", DT_STRING, 0, &C_NmUnreadTag, IP "unread" }, /* ** .pp ** This variable specifies notmuch tag which is used for unread messages. The @@ -2385,7 +2385,7 @@ struct ConfigDef MuttVars[] = { */ #endif #ifdef USE_NNTP - { "nntp_authenticators", DT_STRING, R_NONE, &C_NntpAuthenticators, 0 }, + { "nntp_authenticators", DT_STRING, 0, &C_NntpAuthenticators, 0 }, /* ** .pp ** This is a colon-delimited list of authentication methods NeoMutt may @@ -2405,7 +2405,7 @@ struct ConfigDef MuttVars[] = { ** the previous methods are unavailable. If a method is available but ** authentication fails, NeoMutt will not connect to the IMAP server. */ - { "nntp_context", DT_NUMBER|DT_NOT_NEGATIVE, R_NONE, &C_NntpContext, 1000 }, + { "nntp_context", DT_NUMBER|DT_NOT_NEGATIVE, 0, &C_NntpContext, 1000 }, /* ** .pp ** This variable defines number of articles which will be in index when @@ -2413,25 +2413,25 @@ struct ConfigDef MuttVars[] = { ** number, oldest articles will be ignored. Also controls how many ** articles headers will be saved in cache when you quit newsgroup. */ - { "nntp_listgroup", DT_BOOL, R_NONE, &C_NntpListgroup, true }, + { "nntp_listgroup", DT_BOOL, 0, &C_NntpListgroup, true }, /* ** .pp ** This variable controls whether or not existence of each article is ** checked when newsgroup is entered. */ - { "nntp_load_description", DT_BOOL, R_NONE, &C_NntpLoadDescription, true }, + { "nntp_load_description", DT_BOOL, 0, &C_NntpLoadDescription, true }, /* ** .pp ** This variable controls whether or not descriptions for each newsgroup ** must be loaded when newsgroup is added to list (first time list ** loading or new newsgroup adding). */ - { "nntp_pass", DT_STRING|DT_SENSITIVE, R_NONE, &C_NntpPass, 0 }, + { "nntp_pass", DT_STRING|DT_SENSITIVE, 0, &C_NntpPass, 0 }, /* ** .pp ** Your password for NNTP account. */ - { "nntp_poll", DT_NUMBER|DT_NOT_NEGATIVE, R_NONE, &C_NntpPoll, 60 }, + { "nntp_poll", DT_NUMBER|DT_NOT_NEGATIVE, 0, &C_NntpPoll, 60 }, /* ** .pp ** The time in seconds until any operations on newsgroup except post new @@ -2439,7 +2439,7 @@ struct ConfigDef MuttVars[] = { ** recheck newsgroup on each operation in index (stepping, read article, ** etc.). */ - { "nntp_user", DT_STRING|DT_SENSITIVE, R_NONE, &C_NntpUser, 0 }, + { "nntp_user", DT_STRING|DT_SENSITIVE, 0, &C_NntpUser, 0 }, /* ** .pp ** Your login name on the NNTP server. If \fIunset\fP and NNTP server requires @@ -2447,7 +2447,7 @@ struct ConfigDef MuttVars[] = { ** connect to news server. */ #endif - { "pager", DT_COMMAND, R_NONE, &C_Pager, IP "builtin" }, + { "pager", DT_COMMAND, 0, &C_Pager, IP "builtin" }, /* ** .pp ** This variable specifies which pager you would like to use to view @@ -2460,7 +2460,7 @@ struct ConfigDef MuttVars[] = { ** directly from the pager, and screen resizes cause lines longer than ** the screen width to be badly formatted in the help menu. */ - { "pager_context", DT_NUMBER|DT_NOT_NEGATIVE, R_NONE, &C_PagerContext, 0 }, + { "pager_context", DT_NUMBER|DT_NOT_NEGATIVE, 0, &C_PagerContext, 0 }, /* ** .pp ** This variable controls the number of lines of context that are given @@ -2472,7 +2472,7 @@ struct ConfigDef MuttVars[] = { ** results. If positive, this many lines will be given before a match, ** if 0, the match will be top-aligned. */ - { "pager_format", DT_STRING, R_PAGER, &C_PagerFormat, IP "-%Z- %C/%m: %-20.20n %s%* -- (%P)" }, + { "pager_format", DT_STRING|R_PAGER, 0, &C_PagerFormat, IP "-%Z- %C/%m: %-20.20n %s%* -- (%P)" }, /* ** .pp ** This variable controls the format of the one-line message "status" @@ -2480,7 +2480,7 @@ struct ConfigDef MuttVars[] = { ** pager. The valid sequences are listed in the $$index_format ** section. */ - { "pager_index_lines", DT_NUMBER|DT_NOT_NEGATIVE, R_PAGER, &C_PagerIndexLines, 0 }, + { "pager_index_lines", DT_NUMBER|DT_NOT_NEGATIVE|R_PAGER, 0, &C_PagerIndexLines, 0 }, /* ** .pp ** Determines the number of lines of a mini-index which is shown when in @@ -2495,14 +2495,14 @@ struct ConfigDef MuttVars[] = { ** is less than $$pager_index_lines, then the index will only use as ** many lines as it needs. */ - { "pager_stop", DT_BOOL, R_NONE, &C_PagerStop, false }, + { "pager_stop", DT_BOOL, 0, &C_PagerStop, false }, /* ** .pp ** When \fIset\fP, the internal-pager will \fBnot\fP move to the next message ** when you are at the end of a message and invoke the \fC\fP ** function. */ - { "pgp_auto_decode", DT_BOOL, R_NONE, &C_PgpAutoDecode, false }, + { "pgp_auto_decode", DT_BOOL, 0, &C_PgpAutoDecode, false }, /* ** .pp ** If \fIset\fP, NeoMutt will automatically attempt to decrypt traditional PGP @@ -2512,7 +2512,7 @@ struct ConfigDef MuttVars[] = { ** checked with the \fC$\fP function, NeoMutt will automatically ** check the message for traditional pgp. */ - { "pgp_autoinline", DT_BOOL, R_NONE, &C_PgpAutoinline, false }, + { "pgp_autoinline", DT_BOOL, 0, &C_PgpAutoinline, false }, /* ** .pp ** This option controls whether NeoMutt generates old-style inline @@ -2533,7 +2533,7 @@ struct ConfigDef MuttVars[] = { ** (PGP only) */ #ifdef CRYPT_BACKEND_CLASSIC_PGP - { "pgp_check_exit", DT_BOOL, R_NONE, &C_PgpCheckExit, true }, + { "pgp_check_exit", DT_BOOL, 0, &C_PgpCheckExit, true }, /* ** .pp ** If \fIset\fP, NeoMutt will check the exit code of the PGP subprocess when @@ -2541,7 +2541,7 @@ struct ConfigDef MuttVars[] = { ** subprocess failed. ** (PGP only) */ - { "pgp_check_gpg_decrypt_status_fd", DT_BOOL, R_NONE, &C_PgpCheckGpgDecryptStatusFd, true }, + { "pgp_check_gpg_decrypt_status_fd", DT_BOOL, 0, &C_PgpCheckGpgDecryptStatusFd, true }, /* ** .pp ** If \fIset\fP, mutt will check the status file descriptor output @@ -2555,7 +2555,7 @@ struct ConfigDef MuttVars[] = { ** against $$pgp_decryption_okay. ** (PGP only) */ - { "pgp_clearsign_command", DT_COMMAND, R_NONE, &C_PgpClearsignCommand, 0 }, + { "pgp_clearsign_command", DT_COMMAND, 0, &C_PgpClearsignCommand, 0 }, /* ** .pp ** This format is used to create an old-style "clearsigned" PGP @@ -2568,7 +2568,7 @@ struct ConfigDef MuttVars[] = { ** one or more quoted values such as email address, name, or keyid. ** (PGP only) */ - { "pgp_decode_command", DT_COMMAND, R_NONE, &C_PgpDecodeCommand, 0 }, + { "pgp_decode_command", DT_COMMAND, 0, &C_PgpDecodeCommand, 0 }, /* ** .pp ** This format strings specifies a command which is used to decode @@ -2592,7 +2592,7 @@ struct ConfigDef MuttVars[] = { ** alongside the documentation. ** (PGP only) */ - { "pgp_decrypt_command", DT_COMMAND, R_NONE, &C_PgpDecryptCommand, 0 }, + { "pgp_decrypt_command", DT_COMMAND, 0, &C_PgpDecryptCommand, 0 }, /* ** .pp ** This command is used to decrypt a PGP encrypted message. @@ -2610,7 +2610,7 @@ struct ConfigDef MuttVars[] = { ** .pp ** See also: https://github.com/neomutt/neomutt/issues/1014 */ - { "pgp_decryption_okay", DT_REGEX, R_NONE, &C_PgpDecryptionOkay, 0 }, + { "pgp_decryption_okay", DT_REGEX, 0, &C_PgpDecryptionOkay, 0 }, /* ** .pp ** If you assign text to this variable, then an encrypted PGP @@ -2625,7 +2625,7 @@ struct ConfigDef MuttVars[] = { ** (PGP only) */ #endif - { "pgp_default_key", DT_STRING, R_NONE, &C_PgpDefaultKey, 0 }, + { "pgp_default_key", DT_STRING, 0, &C_PgpDefaultKey, 0 }, /* ** .pp ** This is the default key-pair to use for PGP operations. It will be @@ -2638,7 +2638,7 @@ struct ConfigDef MuttVars[] = { ** (PGP only) */ #ifdef CRYPT_BACKEND_CLASSIC_PGP - { "pgp_encrypt_only_command", DT_COMMAND, R_NONE, &C_PgpEncryptOnlyCommand, 0 }, + { "pgp_encrypt_only_command", DT_COMMAND, 0, &C_PgpEncryptOnlyCommand, 0 }, /* ** .pp ** This command is used to encrypt a body part without signing it. @@ -2649,7 +2649,7 @@ struct ConfigDef MuttVars[] = { ** one or more quoted values such as email address, name, or keyid. ** (PGP only) */ - { "pgp_encrypt_sign_command", DT_COMMAND, R_NONE, &C_PgpEncryptSignCommand, 0 }, + { "pgp_encrypt_sign_command", DT_COMMAND, 0, &C_PgpEncryptSignCommand, 0 }, /* ** .pp ** This command is used to both sign and encrypt a body part. @@ -2659,7 +2659,7 @@ struct ConfigDef MuttVars[] = { ** (PGP only) */ #endif - { "pgp_entry_format", DT_STRING|DT_NOT_EMPTY, R_NONE, &C_PgpEntryFormat, IP "%4n %t%f %4l/0x%k %-4a %2c %u" }, + { "pgp_entry_format", DT_STRING|DT_NOT_EMPTY, 0, &C_PgpEntryFormat, IP "%4n %t%f %4l/0x%k %-4a %2c %u" }, /* ** .pp ** This variable allows you to customize the PGP key selection menu to @@ -2681,7 +2681,7 @@ struct ConfigDef MuttVars[] = { ** (PGP only) */ #ifdef CRYPT_BACKEND_CLASSIC_PGP - { "pgp_export_command", DT_COMMAND, R_NONE, &C_PgpExportCommand, 0 }, + { "pgp_export_command", DT_COMMAND, 0, &C_PgpExportCommand, 0 }, /* ** .pp ** This command is used to export a public key from the user's @@ -2691,7 +2691,7 @@ struct ConfigDef MuttVars[] = { ** possible \fCprintf(3)\fP-like sequences. ** (PGP only) */ - { "pgp_getkeys_command", DT_COMMAND, R_NONE, &C_PgpGetkeysCommand, 0 }, + { "pgp_getkeys_command", DT_COMMAND, 0, &C_PgpGetkeysCommand, 0 }, /* ** .pp ** This command is invoked whenever NeoMutt needs to fetch the public key associated with @@ -2701,7 +2701,7 @@ struct ConfigDef MuttVars[] = { ** unknown, which is why NeoMutt is invoking this command). ** (PGP only) */ - { "pgp_good_sign", DT_REGEX, R_NONE, &C_PgpGoodSign, 0 }, + { "pgp_good_sign", DT_REGEX, 0, &C_PgpGoodSign, 0 }, /* ** .pp ** If you assign a text to this variable, then a PGP signature is only @@ -2711,7 +2711,7 @@ struct ConfigDef MuttVars[] = { ** (PGP only) */ #endif - { "pgp_ignore_subkeys", DT_BOOL, R_NONE, &C_PgpIgnoreSubkeys, true }, + { "pgp_ignore_subkeys", DT_BOOL, 0, &C_PgpIgnoreSubkeys, true }, /* ** .pp ** Setting this variable will cause NeoMutt to ignore OpenPGP subkeys. Instead, @@ -2720,7 +2720,7 @@ struct ConfigDef MuttVars[] = { ** (PGP only) */ #ifdef CRYPT_BACKEND_CLASSIC_PGP - { "pgp_import_command", DT_COMMAND, R_NONE, &C_PgpImportCommand, 0 }, + { "pgp_import_command", DT_COMMAND, 0, &C_PgpImportCommand, 0 }, /* ** .pp ** This command is used to import a key from a message into @@ -2730,7 +2730,7 @@ struct ConfigDef MuttVars[] = { ** possible \fCprintf(3)\fP-like sequences. ** (PGP only) */ - { "pgp_list_pubring_command", DT_COMMAND, R_NONE, &C_PgpListPubringCommand, 0 }, + { "pgp_list_pubring_command", DT_COMMAND, 0, &C_PgpListPubringCommand, 0 }, /* ** .pp ** This command is used to list the public key ring's contents. The @@ -2747,7 +2747,7 @@ struct ConfigDef MuttVars[] = { ** possible \fCprintf(3)\fP-like sequences. ** (PGP only) */ - { "pgp_list_secring_command", DT_COMMAND, R_NONE, &C_PgpListSecringCommand, 0 }, + { "pgp_list_secring_command", DT_COMMAND, 0, &C_PgpListSecringCommand, 0 }, /* ** .pp ** This command is used to list the secret key ring's contents. The @@ -2765,7 +2765,7 @@ struct ConfigDef MuttVars[] = { ** (PGP only) */ #endif - { "pgp_long_ids", DT_BOOL, R_NONE, &C_PgpLongIds, true }, + { "pgp_long_ids", DT_BOOL, 0, &C_PgpLongIds, true }, /* ** .pp ** If \fIset\fP, use 64 bit PGP key IDs, if \fIunset\fP use the normal 32 bit key IDs. @@ -2774,7 +2774,7 @@ struct ConfigDef MuttVars[] = { ** in the key selection menu and a few other places. ** (PGP only) */ - { "pgp_mime_auto", DT_QUAD, R_NONE, &C_PgpMimeAuto, MUTT_ASKYES }, + { "pgp_mime_auto", DT_QUAD, 0, &C_PgpMimeAuto, MUTT_ASKYES }, /* ** .pp ** This option controls whether NeoMutt will prompt you for @@ -2785,7 +2785,7 @@ struct ConfigDef MuttVars[] = { ** \fBdeprecated\fP. ** (PGP only) */ - { "pgp_replyinline", DT_BOOL, R_NONE, &C_PgpReplyinline, false }, + { "pgp_replyinline", DT_BOOL, 0, &C_PgpReplyinline, false }, /* ** .pp ** Setting this variable will cause NeoMutt to always attempt to @@ -2807,7 +2807,7 @@ struct ConfigDef MuttVars[] = { ** \fBdeprecated\fP. ** (PGP only) */ - { "pgp_retainable_sigs", DT_BOOL, R_NONE, &C_PgpRetainableSigs, false }, + { "pgp_retainable_sigs", DT_BOOL, 0, &C_PgpRetainableSigs, false }, /* ** .pp ** If \fIset\fP, signed and encrypted messages will consist of nested @@ -2818,14 +2818,14 @@ struct ConfigDef MuttVars[] = { ** removed, while the inner \fCmultipart/signed\fP part is retained. ** (PGP only) */ - { "pgp_self_encrypt", DT_BOOL, R_NONE, &C_PgpSelfEncrypt, true }, + { "pgp_self_encrypt", DT_BOOL, 0, &C_PgpSelfEncrypt, true }, /* ** .pp ** When \fIset\fP, PGP encrypted messages will also be encrypted ** using the key in $$pgp_default_key. ** (PGP only) */ - { "pgp_show_unusable", DT_BOOL, R_NONE, &C_PgpShowUnusable, true }, + { "pgp_show_unusable", DT_BOOL, 0, &C_PgpShowUnusable, true }, /* ** .pp ** If \fIset\fP, NeoMutt will display non-usable keys on the PGP key selection @@ -2833,7 +2833,7 @@ struct ConfigDef MuttVars[] = { ** have been marked as "disabled" by the user. ** (PGP only) */ - { "pgp_sign_as", DT_STRING, R_NONE, &C_PgpSignAs, 0 }, + { "pgp_sign_as", DT_STRING, 0, &C_PgpSignAs, 0 }, /* ** .pp ** If you have a different key pair to use for signing, you should @@ -2843,7 +2843,7 @@ struct ConfigDef MuttVars[] = { ** (PGP only) */ #ifdef CRYPT_BACKEND_CLASSIC_PGP - { "pgp_sign_command", DT_COMMAND, R_NONE, &C_PgpSignCommand, 0 }, + { "pgp_sign_command", DT_COMMAND, 0, &C_PgpSignCommand, 0 }, /* ** .pp ** This command is used to create the detached PGP signature for a @@ -2854,7 +2854,7 @@ struct ConfigDef MuttVars[] = { ** (PGP only) */ #endif - { "pgp_sort_keys", DT_SORT|DT_SORT_KEYS, R_NONE, &C_PgpSortKeys, SORT_ADDRESS }, + { "pgp_sort_keys", DT_SORT|DT_SORT_KEYS, 0, &C_PgpSortKeys, SORT_ADDRESS }, /* ** .pp ** Specifies how the entries in the pgp menu are sorted. The @@ -2870,7 +2870,7 @@ struct ConfigDef MuttVars[] = { ** "reverse-". ** (PGP only) */ - { "pgp_strict_enc", DT_BOOL, R_NONE, &C_PgpStrictEnc, true }, + { "pgp_strict_enc", DT_BOOL, 0, &C_PgpStrictEnc, true }, /* ** .pp ** If \fIset\fP, NeoMutt will automatically encode PGP/MIME signed messages as @@ -2880,14 +2880,14 @@ struct ConfigDef MuttVars[] = { ** (PGP only) */ #ifdef CRYPT_BACKEND_CLASSIC_PGP - { "pgp_timeout", DT_LONG|DT_NOT_NEGATIVE, R_NONE, &C_PgpTimeout, 300 }, + { "pgp_timeout", DT_LONG|DT_NOT_NEGATIVE, 0, &C_PgpTimeout, 300 }, /* ** .pp ** The number of seconds after which a cached passphrase will expire if ** not used. ** (PGP only) */ - { "pgp_use_gpg_agent", DT_BOOL, R_NONE, &C_PgpUseGpgAgent, true }, + { "pgp_use_gpg_agent", DT_BOOL, 0, &C_PgpUseGpgAgent, true }, /* ** .pp ** If \fIset\fP, NeoMutt expects a \fCgpg-agent(1)\fP process will handle @@ -2907,7 +2907,7 @@ struct ConfigDef MuttVars[] = { ** \fIunset\fP this variable. ** (PGP only) */ - { "pgp_verify_command", DT_COMMAND, R_NONE, &C_PgpVerifyCommand, 0 }, + { "pgp_verify_command", DT_COMMAND, 0, &C_PgpVerifyCommand, 0 }, /* ** .pp ** This command is used to verify PGP signatures. @@ -2916,7 +2916,7 @@ struct ConfigDef MuttVars[] = { ** possible \fCprintf(3)\fP-like sequences. ** (PGP only) */ - { "pgp_verify_key_command", DT_COMMAND, R_NONE, &C_PgpVerifyKeyCommand, 0 }, + { "pgp_verify_key_command", DT_COMMAND, 0, &C_PgpVerifyKeyCommand, 0 }, /* ** .pp ** This command is used to verify key information from the key selection @@ -2927,7 +2927,7 @@ struct ConfigDef MuttVars[] = { ** (PGP only) */ #endif - { "pipe_decode", DT_BOOL, R_NONE, &C_PipeDecode, false }, + { "pipe_decode", DT_BOOL, 0, &C_PipeDecode, false }, /* ** .pp ** Used in connection with the \fC\fP command. When \fIunset\fP, @@ -2935,13 +2935,13 @@ struct ConfigDef MuttVars[] = { ** will weed headers and will attempt to decode the messages ** first. */ - { "pipe_sep", DT_STRING, R_NONE, &C_PipeSep, IP "\n" }, + { "pipe_sep", DT_STRING, 0, &C_PipeSep, IP "\n" }, /* ** .pp ** The separator to add between messages when piping a list of tagged ** messages to an external Unix command. */ - { "pipe_split", DT_BOOL, R_NONE, &C_PipeSplit, false }, + { "pipe_split", DT_BOOL, 0, &C_PipeSplit, false }, /* ** .pp ** Used in connection with the \fC\fP function following @@ -2952,7 +2952,7 @@ struct ConfigDef MuttVars[] = { ** and the $$pipe_sep separator is added after each message. */ #ifdef USE_POP - { "pop_auth_try_all", DT_BOOL, R_NONE, &C_PopAuthTryAll, true }, + { "pop_auth_try_all", DT_BOOL, 0, &C_PopAuthTryAll, true }, /* ** .pp ** If \fIset\fP, NeoMutt will try all available authentication methods. @@ -2960,7 +2960,7 @@ struct ConfigDef MuttVars[] = { ** methods if the previous methods are unavailable. If a method is ** available but authentication fails, NeoMutt will not connect to the POP server. */ - { "pop_authenticators", DT_STRING, R_NONE, &C_PopAuthenticators, 0 }, + { "pop_authenticators", DT_STRING, 0, &C_PopAuthenticators, 0 }, /* ** .pp ** This is a colon-delimited list of authentication methods NeoMutt may @@ -2976,20 +2976,20 @@ struct ConfigDef MuttVars[] = { ** set pop_authenticators="digest-md5:apop:user" ** .te */ - { "pop_checkinterval", DT_NUMBER|DT_NOT_NEGATIVE, R_NONE, &C_PopCheckinterval, 60 }, + { "pop_checkinterval", DT_NUMBER|DT_NOT_NEGATIVE, 0, &C_PopCheckinterval, 60 }, /* ** .pp ** This variable configures how often (in seconds) NeoMutt should look for ** new mail in the currently selected mailbox if it is a POP mailbox. */ - { "pop_delete", DT_QUAD, R_NONE, &C_PopDelete, MUTT_ASKNO }, + { "pop_delete", DT_QUAD, 0, &C_PopDelete, MUTT_ASKNO }, /* ** .pp ** If \fIset\fP, NeoMutt will delete successfully downloaded messages from the POP ** server when using the \fC$\fP function. When \fIunset\fP, NeoMutt will ** download messages but also leave them on the POP server. */ - { "pop_host", DT_STRING, R_NONE, &C_PopHost, 0 }, + { "pop_host", DT_STRING, 0, &C_PopHost, 0 }, /* ** .pp ** The name of your POP server for the \fC$\fP function. You @@ -3000,14 +3000,14 @@ struct ConfigDef MuttVars[] = { ** .pp ** where "[...]" denotes an optional part. */ - { "pop_last", DT_BOOL, R_NONE, &C_PopLast, false }, + { "pop_last", DT_BOOL, 0, &C_PopLast, false }, /* ** .pp ** If this variable is \fIset\fP, NeoMutt will try to use the "\fCLAST\fP" POP command ** for retrieving only unread messages from the POP server when using ** the \fC$\fP function. */ - { "pop_oauth_refresh_command", DT_STRING|DT_SENSITIVE, R_NONE, &C_PopOauthRefreshCommand, 0 }, + { "pop_oauth_refresh_command", DT_STRING|DT_SENSITIVE, 0, &C_PopOauthRefreshCommand, 0 }, /* ** .pp ** The command to run to generate an OAUTH refresh token for @@ -3015,7 +3015,7 @@ struct ConfigDef MuttVars[] = { ** run on every connection attempt that uses the OAUTHBEARER authentication ** mechanism. See "$oauth" for details. */ - { "pop_pass", DT_STRING|DT_SENSITIVE, R_NONE, &C_PopPass, 0 }, + { "pop_pass", DT_STRING|DT_SENSITIVE, 0, &C_PopPass, 0 }, /* ** .pp ** Specifies the password for your POP account. If \fIunset\fP, NeoMutt will @@ -3025,13 +3025,13 @@ struct ConfigDef MuttVars[] = { ** fairly secure machine, because the superuser can read your neomuttrc ** even if you are the only one who can read the file. */ - { "pop_reconnect", DT_QUAD, R_NONE, &C_PopReconnect, MUTT_ASKYES }, + { "pop_reconnect", DT_QUAD, 0, &C_PopReconnect, MUTT_ASKYES }, /* ** .pp ** Controls whether or not NeoMutt will try to reconnect to the POP server if ** the connection is lost. */ - { "pop_user", DT_STRING|DT_SENSITIVE, R_NONE, &C_PopUser, 0 }, + { "pop_user", DT_STRING|DT_SENSITIVE, 0, &C_PopUser, 0 }, /* ** .pp ** Your login name on the POP server. @@ -3039,14 +3039,14 @@ struct ConfigDef MuttVars[] = { ** This variable defaults to your user name on the local machine. */ #endif /* USE_POP */ - { "post_indent_string", DT_STRING, R_NONE, &C_PostIndentString, 0 }, + { "post_indent_string", DT_STRING, 0, &C_PostIndentString, 0 }, /* ** .pp ** Similar to the $$attribution variable, NeoMutt will append this ** string after the inclusion of a message which is being replied to. */ #ifdef USE_NNTP - { "post_moderated", DT_QUAD, R_NONE, &C_PostModerated, MUTT_ASKYES }, + { "post_moderated", DT_QUAD, 0, &C_PostModerated, MUTT_ASKYES }, /* ** .pp ** If set to \fIyes\fP, NeoMutt will post article to newsgroup that have @@ -3055,7 +3055,7 @@ struct ConfigDef MuttVars[] = { ** posting will not have an effect. */ #endif - { "postpone", DT_QUAD, R_NONE, &C_Postpone, MUTT_ASKYES }, + { "postpone", DT_QUAD, 0, &C_Postpone, MUTT_ASKYES }, /* ** .pp ** Controls whether or not messages are saved in the $$postponed @@ -3066,7 +3066,7 @@ struct ConfigDef MuttVars[] = { ** .pp ** Also see the $$recall variable. */ - { "postpone_encrypt", DT_BOOL, R_NONE, &C_PostponeEncrypt, false }, + { "postpone_encrypt", DT_BOOL, 0, &C_PostponeEncrypt, false }, /* ** .pp ** When \fIset\fP, postponed messages that are marked for encryption will be @@ -3075,14 +3075,14 @@ struct ConfigDef MuttVars[] = { ** set, it will try the deprecated $$postpone_encrypt_as. ** (Crypto only) */ - { "postpone_encrypt_as", DT_STRING, R_NONE, &C_PostponeEncryptAs, 0 }, + { "postpone_encrypt_as", DT_STRING, 0, &C_PostponeEncryptAs, 0 }, /* ** .pp ** This is a deprecated fall-back variable for $$postpone_encrypt. ** Please use $$pgp_default_key or $$smime_default_key. ** (Crypto only) */ - { "postponed", DT_PATH|DT_MAILBOX, R_INDEX, &C_Postponed, IP "~/postponed" }, + { "postponed", DT_PATH|DT_MAILBOX|R_INDEX, 0, &C_Postponed, IP "~/postponed" }, /* ** .pp ** NeoMutt allows you to indefinitely "$postpone sending a message" which @@ -3092,7 +3092,7 @@ struct ConfigDef MuttVars[] = { ** Also see the $$postpone variable. */ #ifdef USE_SOCKET - { "preconnect", DT_STRING, R_NONE, &C_Preconnect, 0 }, + { "preconnect", DT_STRING, 0, &C_Preconnect, 0 }, /* ** .pp ** If \fIset\fP, a shell command to be executed if NeoMutt fails to establish @@ -3111,25 +3111,25 @@ struct ConfigDef MuttVars[] = { ** remote machine without having to enter a password. */ #endif /* USE_SOCKET */ - { "preferred_languages", DT_STRING, R_NONE, &C_PreferredLanguages, 0 }, + { "preferred_languages", DT_STRING, 0, &C_PreferredLanguages, 0 }, /* ** .pp ** RFC8255 : user preferred languages to be search in parts and display ** Ex. : set preferred_languages="en,fr,de" */ - { "print", DT_QUAD, R_NONE, &C_Print, MUTT_ASKNO }, + { "print", DT_QUAD, 0, &C_Print, MUTT_ASKNO }, /* ** .pp ** Controls whether or not NeoMutt really prints messages. ** This is set to "ask-no" by default, because some people ** accidentally hit "p" often. */ - { "print_command", DT_COMMAND, R_NONE, &C_PrintCommand, IP "lpr" }, + { "print_command", DT_COMMAND, 0, &C_PrintCommand, IP "lpr" }, /* ** .pp ** This specifies the command pipe that should be used to print messages. */ - { "print_decode", DT_BOOL, R_NONE, &C_PrintDecode, true }, + { "print_decode", DT_BOOL, 0, &C_PrintDecode, true }, /* ** .pp ** Used in connection with the \fC\fP command. If this @@ -3140,7 +3140,7 @@ struct ConfigDef MuttVars[] = { ** some advanced printer filter which is able to properly format ** e-mail messages for printing. */ - { "print_split", DT_BOOL, R_NONE, &C_PrintSplit, false }, + { "print_split", DT_BOOL, 0, &C_PrintSplit, false }, /* ** .pp ** Used in connection with the \fC\fP command. If this option @@ -3153,7 +3153,7 @@ struct ConfigDef MuttVars[] = { ** Those who use the \fCenscript\fP(1) program's mail-printing mode will ** most likely want to \fIset\fP this option. */ - { "prompt_after", DT_BOOL, R_NONE, &C_PromptAfter, true }, + { "prompt_after", DT_BOOL, 0, &C_PromptAfter, true }, /* ** .pp ** If you use an \fIexternal\fP $$pager, setting this variable will @@ -3161,7 +3161,7 @@ struct ConfigDef MuttVars[] = { ** than returning to the index menu. If \fIunset\fP, NeoMutt will return to the ** index menu when the external pager exits. */ - { "query_command", DT_COMMAND, R_NONE, &C_QueryCommand, 0 }, + { "query_command", DT_COMMAND, 0, &C_QueryCommand, 0 }, /* ** .pp ** This specifies the command NeoMutt will use to make external address @@ -3172,7 +3172,7 @@ struct ConfigDef MuttVars[] = { ** the string, NeoMutt will append the user's query to the end of the string. ** See "$query" for more information. */ - { "query_format", DT_STRING|DT_NOT_EMPTY, R_NONE, &C_QueryFormat, IP "%4c %t %-25.25a %-25.25n %?e?(%e)?" }, + { "query_format", DT_STRING|DT_NOT_EMPTY, 0, &C_QueryFormat, IP "%4c %t %-25.25a %-25.25n %?e?(%e)?" }, /* ** .pp ** This variable describes the format of the "query" menu. The @@ -3192,7 +3192,7 @@ struct ConfigDef MuttVars[] = { ** .pp ** * = can be optionally printed if nonzero, see the $$status_format documentation. */ - { "quit", DT_QUAD, R_NONE, &C_Quit, MUTT_YES }, + { "quit", DT_QUAD, 0, &C_Quit, MUTT_YES }, /* ** .pp ** This variable controls whether "quit" and "exit" actually quit @@ -3200,7 +3200,7 @@ struct ConfigDef MuttVars[] = { ** have no effect, and if it is set to \fIask-yes\fP or \fIask-no\fP, you are ** prompted for confirmation when you try to quit. */ - { "quote_regex", DT_REGEX, R_PAGER, &C_QuoteRegex, IP "^([ \t]*[|>:}#])+" }, + { "quote_regex", DT_REGEX|R_PAGER, 0, &C_QuoteRegex, IP "^([ \t]*[|>:}#])+" }, /* ** .pp ** A regular expression used in the internal pager to determine quoted @@ -3215,7 +3215,7 @@ struct ConfigDef MuttVars[] = { ** .pp ** Match detection may be overridden by the $$smileys regular expression. */ - { "read_inc", DT_NUMBER|DT_NOT_NEGATIVE, R_NONE, &C_ReadInc, 10 }, + { "read_inc", DT_NUMBER|DT_NOT_NEGATIVE, 0, &C_ReadInc, 10 }, /* ** .pp ** If set to a value greater than 0, NeoMutt will display which message it @@ -3231,12 +3231,12 @@ struct ConfigDef MuttVars[] = { ** Also see the $$write_inc, $$net_inc and $$time_inc variables and the ** "$tuning" section of the manual for performance considerations. */ - { "read_only", DT_BOOL, R_NONE, &C_ReadOnly, false }, + { "read_only", DT_BOOL, 0, &C_ReadOnly, false }, /* ** .pp ** If \fIset\fP, all folders are opened in read-only mode. */ - { "realname", DT_STRING, R_INDEX|R_PAGER, &C_Realname, 0 }, + { "realname", DT_STRING|R_INDEX|R_PAGER, 0, &C_Realname, 0 }, /* ** .pp ** This variable specifies what "real" or "personal" name should be used @@ -3245,7 +3245,7 @@ struct ConfigDef MuttVars[] = { ** If not specified, then the user's "real name" will be read from \fC/etc/passwd\fP. ** This option will not be used, if "$$from" is set. */ - { "recall", DT_QUAD, R_NONE, &C_Recall, MUTT_ASKYES }, + { "recall", DT_QUAD, 0, &C_Recall, MUTT_ASKYES }, /* ** .pp ** Controls whether or not NeoMutt recalls postponed messages @@ -3257,7 +3257,7 @@ struct ConfigDef MuttVars[] = { ** .pp ** Also see $$postponed variable. */ - { "record", DT_PATH|DT_MAILBOX, R_NONE, &C_Record, IP "~/sent" }, + { "record", DT_PATH|DT_MAILBOX, 0, &C_Record, IP "~/sent" }, /* ** .pp ** This specifies the file into which your outgoing messages should be @@ -3268,7 +3268,7 @@ struct ConfigDef MuttVars[] = { ** The value of \fI$$record\fP is overridden by the $$force_name and ** $$save_name variables, and the "$fcc-hook" command. Also see $$copy. */ - { "reflow_space_quotes", DT_BOOL, R_NONE, &C_ReflowSpaceQuotes, true }, + { "reflow_space_quotes", DT_BOOL, 0, &C_ReflowSpaceQuotes, true }, /* ** .pp ** This option controls how quotes from format=flowed messages are displayed @@ -3279,7 +3279,7 @@ struct ConfigDef MuttVars[] = { ** \fBNote:\fP If $$reflow_text is \fIunset\fP, this option has no effect. ** Also, this option does not affect replies when $$text_flowed is \fIset\fP. */ - { "reflow_text", DT_BOOL, R_NONE, &C_ReflowText, true }, + { "reflow_text", DT_BOOL, 0, &C_ReflowText, true }, /* ** .pp ** When \fIset\fP, NeoMutt will reformat paragraphs in text/plain @@ -3289,7 +3289,7 @@ struct ConfigDef MuttVars[] = { ** .pp ** Also see $$reflow_wrap, and $$wrap. */ - { "reflow_wrap", DT_NUMBER, R_NONE, &C_ReflowWrap, 78 }, + { "reflow_wrap", DT_NUMBER, 0, &C_ReflowWrap, 78 }, /* ** .pp ** This variable controls the maximum paragraph width when reformatting text/plain @@ -3300,14 +3300,14 @@ struct ConfigDef MuttVars[] = { ** .pp ** Also see $$wrap. */ - { "reply_regex", DT_REGEX, R_INDEX|R_RESORT, &C_ReplyRegex, IP "^((re|aw|sv)(\\[[0-9]+\\])*:[ \t]*)*", reply_validator }, + { "reply_regex", DT_REGEX|R_INDEX|R_RESORT, 0, &C_ReplyRegex, IP "^((re|aw|sv)(\\[[0-9]+\\])*:[ \t]*)*", reply_validator }, /* ** .pp ** A regular expression used to recognize reply messages when threading ** and replying. The default value corresponds to the English "Re:", the ** German "Aw:" and the Swedish "Sv:". */ - { "reply_self", DT_BOOL, R_NONE, &C_ReplySelf, false }, + { "reply_self", DT_BOOL, 0, &C_ReplySelf, false }, /* ** .pp ** If \fIunset\fP and you are replying to a message sent by you, NeoMutt will @@ -3316,7 +3316,7 @@ struct ConfigDef MuttVars[] = { ** .pp ** Also see the "$alternates" command. */ - { "reply_to", DT_QUAD, R_NONE, &C_ReplyTo, MUTT_ASKYES }, + { "reply_to", DT_QUAD, 0, &C_ReplyTo, MUTT_ASKYES }, /* ** .pp ** If \fIset\fP, when replying to a message, NeoMutt will use the address listed @@ -3326,7 +3326,7 @@ struct ConfigDef MuttVars[] = { ** header field to the list address and you want to send a private ** message to the author of a message. */ - { "reply_with_xorig", DT_BOOL, R_NONE, &C_ReplyWithXorig, false }, + { "reply_with_xorig", DT_BOOL, 0, &C_ReplyWithXorig, false }, /* ** .pp ** This variable provides a toggle. When active, the From: header will be @@ -3336,14 +3336,14 @@ struct ConfigDef MuttVars[] = { ** Assuming 'fast_reply' is disabled, this option will prompt the user with a ** prefilled From: header. */ - { "resolve", DT_BOOL, R_NONE, &C_Resolve, true }, + { "resolve", DT_BOOL, 0, &C_Resolve, true }, /* ** .pp ** When \fIset\fP, the cursor will be automatically advanced to the next ** (possibly undeleted) message whenever a command that modifies the ** current message is executed. */ - { "resume_draft_files", DT_BOOL, R_NONE, &C_ResumeDraftFiles, false }, + { "resume_draft_files", DT_BOOL, 0, &C_ResumeDraftFiles, false }, /* ** .pp ** If \fIset\fP, draft files (specified by \fC-H\fP on the command @@ -3352,7 +3352,7 @@ struct ConfigDef MuttVars[] = { ** evaluated; no alias expansion takes place; user-defined headers ** and signatures are not added to the message. */ - { "resume_edited_draft_files", DT_BOOL, R_NONE, &C_ResumeEditedDraftFiles, true }, + { "resume_edited_draft_files", DT_BOOL, 0, &C_ResumeEditedDraftFiles, true }, /* ** .pp ** If \fIset\fP, draft files previously edited (via \fC-E -H\fP on @@ -3368,7 +3368,7 @@ struct ConfigDef MuttVars[] = { ** user-defined headers, and other processing effects from being ** made multiple times to the draft file. */ - { "reverse_alias", DT_BOOL, R_INDEX|R_PAGER, &C_ReverseAlias, false }, + { "reverse_alias", DT_BOOL|R_INDEX|R_PAGER, 0, &C_ReverseAlias, false }, /* ** .pp ** This variable controls whether or not NeoMutt will display the "personal" @@ -3388,7 +3388,7 @@ struct ConfigDef MuttVars[] = { ** "abd30425@somewhere.net." This is useful when the person's e-mail ** address is not human friendly. */ - { "reverse_name", DT_BOOL, R_INDEX|R_PAGER, &C_ReverseName, false }, + { "reverse_name", DT_BOOL|R_INDEX|R_PAGER, 0, &C_ReverseName, false }, /* ** .pp ** It may sometimes arrive that you receive mail to a certain machine, @@ -3402,7 +3402,7 @@ struct ConfigDef MuttVars[] = { ** .pp ** Also see the "$alternates" command. */ - { "reverse_realname", DT_BOOL, R_INDEX|R_PAGER, &C_ReverseRealname, true }, + { "reverse_realname", DT_BOOL|R_INDEX|R_PAGER, 0, &C_ReverseRealname, true }, /* ** .pp ** This variable fine-tunes the behavior of the $$reverse_name feature. @@ -3410,7 +3410,7 @@ struct ConfigDef MuttVars[] = { ** possibly including eventual real names. When it is \fIunset\fP, NeoMutt will ** override any such real names with the setting of the $$realname variable. */ - { "rfc2047_parameters", DT_BOOL, R_NONE, &C_Rfc2047Parameters, false }, + { "rfc2047_parameters", DT_BOOL, 0, &C_Rfc2047Parameters, false }, /* ** .pp ** When this variable is \fIset\fP, NeoMutt will decode RFC2047-encoded MIME @@ -3431,14 +3431,14 @@ struct ConfigDef MuttVars[] = { ** that NeoMutt \fIgenerates\fP this kind of encoding. Instead, NeoMutt will ** unconditionally use the encoding specified in RFC2231. */ - { "save_address", DT_BOOL, R_NONE, &C_SaveAddress, false }, + { "save_address", DT_BOOL, 0, &C_SaveAddress, false }, /* ** .pp ** If \fIset\fP, NeoMutt will take the sender's full address when choosing a ** default folder for saving a mail. If $$save_name or $$force_name ** is \fIset\fP too, the selection of the Fcc folder will be changed as well. */ - { "save_empty", DT_BOOL, R_NONE, &C_SaveEmpty, true }, + { "save_empty", DT_BOOL, 0, &C_SaveEmpty, true }, /* ** .pp ** When \fIunset\fP, mailboxes which contain no saved messages will be removed @@ -3448,13 +3448,13 @@ struct ConfigDef MuttVars[] = { ** \fBNote:\fP This only applies to mbox and MMDF folders, NeoMutt does not ** delete MH and Maildir directories. */ - { "save_history", DT_NUMBER|DT_NOT_NEGATIVE, R_NONE, &C_SaveHistory, 0 }, + { "save_history", DT_NUMBER|DT_NOT_NEGATIVE, 0, &C_SaveHistory, 0 }, /* ** .pp ** This variable controls the size of the history (per category) saved in the ** $$history_file file. */ - { "save_name", DT_BOOL, R_NONE, &C_SaveName, false }, + { "save_name", DT_BOOL, 0, &C_SaveName, false }, /* ** .pp ** This variable controls how copies of outgoing messages are saved. @@ -3468,21 +3468,21 @@ struct ConfigDef MuttVars[] = { ** Also see the $$force_name variable. */ #ifdef USE_NNTP - { "save_unsubscribed", DT_BOOL, R_NONE, &C_SaveUnsubscribed, false }, + { "save_unsubscribed", DT_BOOL, 0, &C_SaveUnsubscribed, false }, /* ** .pp ** When \fIset\fP, info about unsubscribed newsgroups will be saved into ** "newsrc" file and into cache. */ #endif - { "score", DT_BOOL, R_NONE, &C_Score, true }, + { "score", DT_BOOL, 0, &C_Score, true }, /* ** .pp ** When this variable is \fIunset\fP, scoring is turned off. This can ** be useful to selectively disable scoring for certain folders when the ** $$score_threshold_delete variable and related are used. */ - { "score_threshold_delete", DT_NUMBER, R_NONE, &C_ScoreThresholdDelete, -1 }, + { "score_threshold_delete", DT_NUMBER, 0, &C_ScoreThresholdDelete, -1 }, /* ** .pp ** Messages which have been assigned a score equal to or lower than the value @@ -3490,13 +3490,13 @@ struct ConfigDef MuttVars[] = { ** NeoMutt scores are always greater than or equal to zero, the default setting ** of this variable will never mark a message for deletion. */ - { "score_threshold_flag", DT_NUMBER, R_NONE, &C_ScoreThresholdFlag, 9999 }, + { "score_threshold_flag", DT_NUMBER, 0, &C_ScoreThresholdFlag, 9999 }, /* ** .pp ** Messages which have been assigned a score greater than or equal to this ** variable's value are automatically marked "flagged". */ - { "score_threshold_read", DT_NUMBER, R_NONE, &C_ScoreThresholdRead, -1 }, + { "score_threshold_read", DT_NUMBER, 0, &C_ScoreThresholdRead, -1 }, /* ** .pp ** Messages which have been assigned a score equal to or lower than the value @@ -3504,13 +3504,13 @@ struct ConfigDef MuttVars[] = { ** NeoMutt scores are always greater than or equal to zero, the default setting ** of this variable will never mark a message read. */ - { "search_context", DT_NUMBER|DT_NOT_NEGATIVE, R_NONE, &C_SearchContext, 0 }, + { "search_context", DT_NUMBER|DT_NOT_NEGATIVE, 0, &C_SearchContext, 0 }, /* ** .pp ** For the pager, this variable specifies the number of lines shown ** before search results. By default, search results will be top-aligned. */ - { "send_charset", DT_STRING, R_NONE, &C_SendCharset, IP "us-ascii:iso-8859-1:utf-8", charset_validator }, + { "send_charset", DT_STRING, 0, &C_SendCharset, IP "us-ascii:iso-8859-1:utf-8", charset_validator }, /* ** .pp ** A colon-delimited list of character sets for outgoing messages. NeoMutt will use the @@ -3524,7 +3524,7 @@ struct ConfigDef MuttVars[] = { ** In case the text can't be converted into one of these exactly, ** NeoMutt uses $$charset as a fallback. */ - { "sendmail", DT_COMMAND, R_NONE, &C_Sendmail, IP SENDMAIL " -oem -oi" }, + { "sendmail", DT_COMMAND, 0, &C_Sendmail, IP SENDMAIL " -oem -oi" }, /* ** .pp ** Specifies the program and arguments used to deliver mail sent by NeoMutt. @@ -3534,7 +3534,7 @@ struct ConfigDef MuttVars[] = { ** flags, such as for $$use_8bitmime, $$use_envelope_from, ** $$dsn_notify, or $$dsn_return will be added before the delimiter. */ - { "sendmail_wait", DT_NUMBER, R_NONE, &C_SendmailWait, 0 }, + { "sendmail_wait", DT_NUMBER, 0, &C_SendmailWait, 0 }, /* ** .pp ** Specifies the number of seconds to wait for the $$sendmail process @@ -3551,13 +3551,13 @@ struct ConfigDef MuttVars[] = { ** process will be put in a temporary file. If there is some error, you ** will be informed as to where to find the output. */ - { "shell", DT_COMMAND, R_NONE, &C_Shell, IP "/bin/sh" }, + { "shell", DT_COMMAND, 0, &C_Shell, IP "/bin/sh" }, /* ** .pp ** Command to use when spawning a subshell. ** If not specified, then the user's login shell from \fC/etc/passwd\fP is used. */ - { "show_multipart_alternative", DT_STRING, R_NONE, &C_ShowMultipartAlternative, 0, multipart_validator }, + { "show_multipart_alternative", DT_STRING, 0, &C_ShowMultipartAlternative, 0, multipart_validator }, /* ** .pp ** When \fIset\fP to \fCinfo\fP, the multipart/alternative information is shown. @@ -3565,7 +3565,7 @@ struct ConfigDef MuttVars[] = { ** When not set, the default behavior is to show only the chosen alternative. */ #ifdef USE_NNTP - { "show_new_news", DT_BOOL, R_NONE, &C_ShowNewNews, true }, + { "show_new_news", DT_BOOL, 0, &C_ShowNewNews, true }, /* ** .pp ** If \fIset\fP, news server will be asked for new newsgroups on entering @@ -3573,7 +3573,7 @@ struct ConfigDef MuttVars[] = { ** Also controls whether or not number of new articles of subscribed ** newsgroups will be then checked. */ - { "show_only_unread", DT_BOOL, R_NONE, &C_ShowOnlyUnread, false }, + { "show_only_unread", DT_BOOL, 0, &C_ShowOnlyUnread, false }, /* ** .pp ** If \fIset\fP, only subscribed newsgroups that contain unread articles @@ -3581,7 +3581,7 @@ struct ConfigDef MuttVars[] = { */ #endif #ifdef USE_SIDEBAR - { "sidebar_component_depth", DT_NUMBER, R_SIDEBAR, &C_SidebarComponentDepth, 0 }, + { "sidebar_component_depth", DT_NUMBER|R_SIDEBAR, 0, &C_SidebarComponentDepth, 0 }, /* ** .pp ** By default the sidebar will show the mailbox's path, relative to the @@ -3593,7 +3593,7 @@ struct ConfigDef MuttVars[] = { ** .pp ** \fBSee also:\fP $$sidebar_short_path */ - { "sidebar_delim_chars", DT_STRING, R_SIDEBAR, &C_SidebarDelimChars, IP "/." }, + { "sidebar_delim_chars", DT_STRING|R_SIDEBAR, 0, &C_SidebarDelimChars, IP "/." }, /* ** .pp ** This contains the list of characters which you would like to treat @@ -3611,21 +3611,21 @@ struct ConfigDef MuttVars[] = { ** .pp ** \fBSee also:\fP $$sidebar_short_path, $$sidebar_folder_indent, $$sidebar_indent_string. */ - { "sidebar_divider_char", DT_STRING, R_SIDEBAR, &C_SidebarDividerChar, 0 }, + { "sidebar_divider_char", DT_STRING|R_SIDEBAR, 0, &C_SidebarDividerChar, 0 }, /* ** .pp ** This specifies the characters to be drawn between the sidebar (when ** visible) and the other NeoMutt panels. ASCII and Unicode line-drawing ** characters are supported. */ - { "sidebar_folder_indent", DT_BOOL, R_SIDEBAR, &C_SidebarFolderIndent, false }, + { "sidebar_folder_indent", DT_BOOL|R_SIDEBAR, 0, &C_SidebarFolderIndent, false }, /* ** .pp ** Set this to indent mailboxes in the sidebar. ** .pp ** \fBSee also:\fP $$sidebar_short_path, $$sidebar_indent_string, $$sidebar_delim_chars. */ - { "sidebar_format", DT_STRING|DT_NOT_EMPTY, R_SIDEBAR, &C_SidebarFormat, IP "%B%* %n" }, + { "sidebar_format", DT_STRING|DT_NOT_EMPTY|R_SIDEBAR, 0, &C_SidebarFormat, IP "%B%* %n" }, /* ** .pp ** This variable allows you to customize the sidebar display. This string is @@ -3657,7 +3657,7 @@ struct ConfigDef MuttVars[] = { ** be \fIset\fP. When thus set, a suggested value for this option is ** "%B%?F? [%F]?%* %?N?%N/?%S". */ - { "sidebar_indent_string", DT_STRING, R_SIDEBAR, &C_SidebarIndentString, IP " " }, + { "sidebar_indent_string", DT_STRING|R_SIDEBAR, 0, &C_SidebarIndentString, IP " " }, /* ** .pp ** This specifies the string that is used to indent mailboxes in the sidebar. @@ -3665,7 +3665,7 @@ struct ConfigDef MuttVars[] = { ** .pp ** \fBSee also:\fP $$sidebar_short_path, $$sidebar_folder_indent, $$sidebar_delim_chars. */ - { "sidebar_new_mail_only", DT_BOOL, R_SIDEBAR, &C_SidebarNewMailOnly, false }, + { "sidebar_new_mail_only", DT_BOOL|R_SIDEBAR, 0, &C_SidebarNewMailOnly, false }, /* ** .pp ** When set, the sidebar will only display mailboxes containing new, or @@ -3673,14 +3673,14 @@ struct ConfigDef MuttVars[] = { ** .pp ** \fBSee also:\fP $$sidebar_whitelist, $$sidebar_non_empty_mailbox_only. */ - { "sidebar_non_empty_mailbox_only", DT_BOOL, R_SIDEBAR, &C_SidebarNonEmptyMailboxOnly, false }, + { "sidebar_non_empty_mailbox_only", DT_BOOL|R_SIDEBAR, 0, &C_SidebarNonEmptyMailboxOnly, false }, /* ** .pp ** When set, the sidebar will only display mailboxes that contain one or more mails. ** .pp ** \fBSee also:\fP $$sidebar_new_mail_only, $$sidebar_whitelist. */ - { "sidebar_next_new_wrap", DT_BOOL, R_NONE, &C_SidebarNextNewWrap, false }, + { "sidebar_next_new_wrap", DT_BOOL, 0, &C_SidebarNextNewWrap, false }, /* ** .pp ** When set, the \fC\fP command will not stop and the end of @@ -3688,12 +3688,12 @@ struct ConfigDef MuttVars[] = { ** \fC\fP command is similarly affected, wrapping around to ** the end of the list. */ - { "sidebar_on_right", DT_BOOL, R_INDEX|R_PAGER|R_REFLOW, &C_SidebarOnRight, false }, + { "sidebar_on_right", DT_BOOL|R_INDEX|R_PAGER|R_REFLOW, 0, &C_SidebarOnRight, false }, /* ** .pp ** When set, the sidebar will appear on the right-hand side of the screen. */ - { "sidebar_short_path", DT_BOOL, R_SIDEBAR, &C_SidebarShortPath, false }, + { "sidebar_short_path", DT_BOOL|R_SIDEBAR, 0, &C_SidebarShortPath, false }, /* ** .pp ** By default the sidebar will show the mailbox's path, relative to the @@ -3710,7 +3710,7 @@ struct ConfigDef MuttVars[] = { ** \fBSee also:\fP $$sidebar_delim_chars, $$sidebar_folder_indent, ** $$sidebar_indent_string, $$sidebar_component_depth. */ - { "sidebar_sort_method", DT_SORT|DT_SORT_SIDEBAR, R_SIDEBAR, &C_SidebarSortMethod, SORT_ORDER }, + { "sidebar_sort_method", DT_SORT|DT_SORT_SIDEBAR|R_SIDEBAR, 0, &C_SidebarSortMethod, SORT_ORDER }, /* ** .pp ** Specifies how to sort entries in the file browser. By default, the @@ -3729,7 +3729,7 @@ struct ConfigDef MuttVars[] = { ** You may optionally use the "reverse-" prefix to specify reverse sorting ** order (example: "\fCset sort_browser=reverse-date\fP"). */ - { "sidebar_visible", DT_BOOL, R_REFLOW, &C_SidebarVisible, false }, + { "sidebar_visible", DT_BOOL|R_REFLOW, 0, &C_SidebarVisible, false }, /* ** .pp ** This specifies whether or not to show sidebar. The sidebar shows a list of @@ -3737,7 +3737,7 @@ struct ConfigDef MuttVars[] = { ** .pp ** \fBSee also:\fP $$sidebar_format, $$sidebar_width */ - { "sidebar_width", DT_NUMBER|DT_NOT_NEGATIVE, R_REFLOW, &C_SidebarWidth, 30 }, + { "sidebar_width", DT_NUMBER|DT_NOT_NEGATIVE|R_REFLOW, 0, &C_SidebarWidth, 30 }, /* ** .pp ** This controls the width of the sidebar. It is measured in screen columns. @@ -3745,7 +3745,7 @@ struct ConfigDef MuttVars[] = { ** Chinese characters. */ #endif - { "sig_dashes", DT_BOOL, R_NONE, &C_SigDashes, true }, + { "sig_dashes", DT_BOOL, 0, &C_SigDashes, true }, /* ** .pp ** If \fIset\fP, a line containing "-- " (note the trailing space) will be inserted before your @@ -3755,7 +3755,7 @@ struct ConfigDef MuttVars[] = { ** detect your signature. For example, NeoMutt has the ability to highlight ** the signature in a different color in the built-in pager. */ - { "sig_on_top", DT_BOOL, R_NONE, &C_SigOnTop, false }, + { "sig_on_top", DT_BOOL, 0, &C_SigOnTop, false }, /* ** .pp ** If \fIset\fP, the signature will be included before any quoted or forwarded @@ -3763,7 +3763,7 @@ struct ConfigDef MuttVars[] = { ** unless you really know what you are doing, and are prepared to take ** some heat from netiquette guardians. */ - { "signature", DT_PATH, R_NONE, &C_Signature, IP "~/.signature" }, + { "signature", DT_PATH, 0, &C_Signature, IP "~/.signature" }, /* ** .pp ** Specifies the filename of your signature, which is appended to all @@ -3771,7 +3771,7 @@ struct ConfigDef MuttVars[] = { ** assumed that filename is a shell command and input should be read from ** its standard output. */ - { "simple_search", DT_STRING, R_NONE, &C_SimpleSearch, IP "~f %s | ~s %s" }, + { "simple_search", DT_STRING, 0, &C_SimpleSearch, IP "~f %s | ~s %s" }, /* ** .pp ** Specifies how NeoMutt should expand a simple search into a real search @@ -3783,13 +3783,13 @@ struct ConfigDef MuttVars[] = { ** replacing "%s" with the supplied string. ** For the default value, "joe" would be expanded to: "~f joe | ~s joe". */ - { "skip_quoted_offset", DT_NUMBER|DT_NOT_NEGATIVE, R_NONE, &C_SkipQuotedOffset, 0 }, + { "skip_quoted_offset", DT_NUMBER|DT_NOT_NEGATIVE, 0, &C_SkipQuotedOffset, 0 }, /* ** .pp ** Lines of quoted text that are displayed before the unquoted text after ** "skip to quoted" command (S) */ - { "sleep_time", DT_NUMBER|DT_NOT_NEGATIVE, R_NONE, &C_SleepTime, 1 }, + { "sleep_time", DT_NUMBER|DT_NOT_NEGATIVE, 0, &C_SleepTime, 1 }, /* ** .pp ** Specifies time, in seconds, to pause while displaying certain informational @@ -3797,7 +3797,7 @@ struct ConfigDef MuttVars[] = { ** messages from the current folder. The default is to pause one second, so ** a value of zero for this option suppresses the pause. */ - { "smart_wrap", DT_BOOL, R_PAGER_FLOW, &C_SmartWrap, true }, + { "smart_wrap", DT_BOOL|R_PAGER_FLOW, 0, &C_SmartWrap, true }, /* ** .pp ** Controls the display of lines longer than the screen width in the @@ -3805,7 +3805,7 @@ struct ConfigDef MuttVars[] = { ** \fIunset\fP, lines are simply wrapped at the screen edge. Also see the ** $$markers variable. */ - { "smileys", DT_REGEX, R_PAGER, &C_Smileys, IP "(>From )|(:[-^]?[][)(><}{|/DP])" }, + { "smileys", DT_REGEX|R_PAGER, 0, &C_Smileys, IP "(>From )|(:[-^]?[][)(><}{|/DP])" }, /* ** .pp ** The \fIpager\fP uses this variable to catch some common false @@ -3814,7 +3814,7 @@ struct ConfigDef MuttVars[] = { ** happens at the beginning of a line. */ #ifdef CRYPT_BACKEND_CLASSIC_SMIME - { "smime_ask_cert_label", DT_BOOL, R_NONE, &C_SmimeAskCertLabel, true }, + { "smime_ask_cert_label", DT_BOOL, 0, &C_SmimeAskCertLabel, true }, /* ** .pp ** This flag controls whether you want to be asked to enter a label @@ -3822,14 +3822,14 @@ struct ConfigDef MuttVars[] = { ** \fIset\fP by default. ** (S/MIME only) */ - { "smime_ca_location", DT_PATH, R_NONE, &C_SmimeCaLocation, 0 }, + { "smime_ca_location", DT_PATH, 0, &C_SmimeCaLocation, 0 }, /* ** .pp ** This variable contains the name of either a directory, or a file which ** contains trusted certificates for use with OpenSSL. ** (S/MIME only) */ - { "smime_certificates", DT_PATH, R_NONE, &C_SmimeCertificates, 0 }, + { "smime_certificates", DT_PATH, 0, &C_SmimeCertificates, 0 }, /* ** .pp ** Since for S/MIME there is no pubring/secring as with PGP, NeoMutt has to handle @@ -3841,7 +3841,7 @@ struct ConfigDef MuttVars[] = { ** the location of the certificates. ** (S/MIME only) */ - { "smime_decrypt_command", DT_COMMAND, R_NONE, &C_SmimeDecryptCommand, 0 }, + { "smime_decrypt_command", DT_COMMAND, 0, &C_SmimeDecryptCommand, 0 }, /* ** .pp ** This format string specifies a command which is used to decrypt @@ -3868,7 +3868,7 @@ struct ConfigDef MuttVars[] = { ** alongside the documentation. ** (S/MIME only) */ - { "smime_decrypt_use_default_key", DT_BOOL, R_NONE, &C_SmimeDecryptUseDefaultKey, true }, + { "smime_decrypt_use_default_key", DT_BOOL, 0, &C_SmimeDecryptUseDefaultKey, true }, /* ** .pp ** If \fIset\fP (default) this tells NeoMutt to use the default key for decryption. Otherwise, @@ -3877,7 +3877,7 @@ struct ConfigDef MuttVars[] = { ** (S/MIME only) */ #endif - { "smime_default_key", DT_STRING, R_NONE, &C_SmimeDefaultKey, 0 }, + { "smime_default_key", DT_STRING, 0, &C_SmimeDefaultKey, 0 }, /* ** .pp ** This is the default key-pair to use for S/MIME operations, and must be @@ -3896,7 +3896,7 @@ struct ConfigDef MuttVars[] = { ** (S/MIME only) */ #ifdef CRYPT_BACKEND_CLASSIC_SMIME - { "smime_encrypt_command", DT_COMMAND, R_NONE, &C_SmimeEncryptCommand, 0 }, + { "smime_encrypt_command", DT_COMMAND, 0, &C_SmimeEncryptCommand, 0 }, /* ** .pp ** This command is used to create encrypted S/MIME messages. @@ -3911,7 +3911,7 @@ struct ConfigDef MuttVars[] = { ** (S/MIME only) */ #endif - { "smime_encrypt_with", DT_STRING, R_NONE, &C_SmimeEncryptWith, IP "aes256" }, + { "smime_encrypt_with", DT_STRING, 0, &C_SmimeEncryptWith, IP "aes256" }, /* ** .pp ** This sets the algorithm that should be used for encryption. @@ -3919,7 +3919,7 @@ struct ConfigDef MuttVars[] = { ** (S/MIME only) */ #ifdef CRYPT_BACKEND_CLASSIC_SMIME - { "smime_get_cert_command", DT_COMMAND, R_NONE, &C_SmimeGetCertCommand, 0 }, + { "smime_get_cert_command", DT_COMMAND, 0, &C_SmimeGetCertCommand, 0 }, /* ** .pp ** This command is used to extract X509 certificates from a PKCS7 structure. @@ -3928,7 +3928,7 @@ struct ConfigDef MuttVars[] = { ** possible \fCprintf(3)\fP-like sequences. ** (S/MIME only) */ - { "smime_get_cert_email_command", DT_COMMAND, R_NONE, &C_SmimeGetCertEmailCommand, 0 }, + { "smime_get_cert_email_command", DT_COMMAND, 0, &C_SmimeGetCertEmailCommand, 0 }, /* ** .pp ** This command is used to extract the mail address(es) used for storing @@ -3939,7 +3939,7 @@ struct ConfigDef MuttVars[] = { ** possible \fCprintf(3)\fP-like sequences. ** (S/MIME only) */ - { "smime_get_signer_cert_command", DT_COMMAND, R_NONE, &C_SmimeGetSignerCertCommand, 0 }, + { "smime_get_signer_cert_command", DT_COMMAND, 0, &C_SmimeGetSignerCertCommand, 0 }, /* ** .pp ** This command is used to extract only the signers X509 certificate from a S/MIME @@ -3950,7 +3950,7 @@ struct ConfigDef MuttVars[] = { ** possible \fCprintf(3)\fP-like sequences. ** (S/MIME only) */ - { "smime_import_cert_command", DT_COMMAND, R_NONE, &C_SmimeImportCertCommand, 0 }, + { "smime_import_cert_command", DT_COMMAND, 0, &C_SmimeImportCertCommand, 0 }, /* ** .pp ** This command is used to import a certificate via smime_keys. @@ -3961,7 +3961,7 @@ struct ConfigDef MuttVars[] = { ** (S/MIME only) */ #endif - { "smime_is_default", DT_BOOL, R_NONE, &C_SmimeIsDefault, false }, + { "smime_is_default", DT_BOOL, 0, &C_SmimeIsDefault, false }, /* ** .pp ** The default behavior of NeoMutt is to use PGP on all auto-sign/encryption @@ -3972,7 +3972,7 @@ struct ConfigDef MuttVars[] = { ** (S/MIME only) */ #ifdef CRYPT_BACKEND_CLASSIC_SMIME - { "smime_keys", DT_PATH, R_NONE, &C_SmimeKeys, 0 }, + { "smime_keys", DT_PATH, 0, &C_SmimeKeys, 0 }, /* ** .pp ** Since for S/MIME there is no pubring/secring as with PGP, NeoMutt has to handle @@ -3983,7 +3983,7 @@ struct ConfigDef MuttVars[] = { ** edited. This option points to the location of the private keys. ** (S/MIME only) */ - { "smime_pk7out_command", DT_COMMAND, R_NONE, &C_SmimePk7outCommand, 0 }, + { "smime_pk7out_command", DT_COMMAND, 0, &C_SmimePk7outCommand, 0 }, /* ** .pp ** This command is used to extract PKCS7 structures of S/MIME signatures, @@ -3994,14 +3994,14 @@ struct ConfigDef MuttVars[] = { ** (S/MIME only) */ #endif - { "smime_self_encrypt", DT_BOOL, R_NONE, &C_SmimeSelfEncrypt, true }, + { "smime_self_encrypt", DT_BOOL, 0, &C_SmimeSelfEncrypt, true }, /* ** .pp ** When \fIset\fP, S/MIME encrypted messages will also be encrypted ** using the certificate in $$smime_default_key. ** (S/MIME only) */ - { "smime_sign_as", DT_STRING, R_NONE, &C_SmimeSignAs, 0 }, + { "smime_sign_as", DT_STRING, 0, &C_SmimeSignAs, 0 }, /* ** .pp ** If you have a separate key to use for signing, you should set this @@ -4009,7 +4009,7 @@ struct ConfigDef MuttVars[] = { ** (S/MIME only) */ #ifdef CRYPT_BACKEND_CLASSIC_SMIME - { "smime_sign_command", DT_COMMAND, R_NONE, &C_SmimeSignCommand, 0 }, + { "smime_sign_command", DT_COMMAND, 0, &C_SmimeSignCommand, 0 }, /* ** .pp ** This command is used to created S/MIME signatures of type @@ -4019,21 +4019,21 @@ struct ConfigDef MuttVars[] = { ** possible \fCprintf(3)\fP-like sequences. ** (S/MIME only) */ - { "smime_sign_digest_alg", DT_STRING, R_NONE, &C_SmimeSignDigestAlg, IP "sha256" }, + { "smime_sign_digest_alg", DT_STRING, 0, &C_SmimeSignDigestAlg, IP "sha256" }, /* ** .pp ** This sets the algorithm that should be used for the signature message digest. ** Valid choices are "md5", "sha1", "sha224", "sha256", "sha384", "sha512". ** (S/MIME only) */ - { "smime_timeout", DT_NUMBER|DT_NOT_NEGATIVE, R_NONE, &C_SmimeTimeout, 300 }, + { "smime_timeout", DT_NUMBER|DT_NOT_NEGATIVE, 0, &C_SmimeTimeout, 300 }, /* ** .pp ** The number of seconds after which a cached passphrase will expire if ** not used. ** (S/MIME only) */ - { "smime_verify_command", DT_COMMAND, R_NONE, &C_SmimeVerifyCommand, 0 }, + { "smime_verify_command", DT_COMMAND, 0, &C_SmimeVerifyCommand, 0 }, /* ** .pp ** This command is used to verify S/MIME signatures of type \fCmultipart/signed\fP. @@ -4042,7 +4042,7 @@ struct ConfigDef MuttVars[] = { ** possible \fCprintf(3)\fP-like sequences. ** (S/MIME only) */ - { "smime_verify_opaque_command", DT_COMMAND, R_NONE, &C_SmimeVerifyOpaqueCommand, 0 }, + { "smime_verify_opaque_command", DT_COMMAND, 0, &C_SmimeVerifyOpaqueCommand, 0 }, /* ** .pp ** This command is used to verify S/MIME signatures of type @@ -4054,7 +4054,7 @@ struct ConfigDef MuttVars[] = { */ #endif #ifdef USE_SMTP - { "smtp_authenticators", DT_STRING, R_NONE, &C_SmtpAuthenticators, 0 }, + { "smtp_authenticators", DT_STRING, 0, &C_SmtpAuthenticators, 0 }, /* ** .pp ** This is a colon-delimited list of authentication methods NeoMutt may @@ -4072,7 +4072,7 @@ struct ConfigDef MuttVars[] = { ** set smtp_authenticators="digest-md5:cram-md5" ** .te */ - { "smtp_oauth_refresh_command", DT_STRING|DT_SENSITIVE, R_NONE, &C_SmtpOauthRefreshCommand, 0 }, + { "smtp_oauth_refresh_command", DT_STRING|DT_SENSITIVE, 0, &C_SmtpOauthRefreshCommand, 0 }, /* ** .pp ** The command to run to generate an OAUTH refresh token for @@ -4080,7 +4080,7 @@ struct ConfigDef MuttVars[] = { ** run on every connection attempt that uses the OAUTHBEARER authentication ** mechanism. See "$oauth" for details. */ - { "smtp_pass", DT_STRING|DT_SENSITIVE, R_NONE, &C_SmtpPass, 0 }, + { "smtp_pass", DT_STRING|DT_SENSITIVE, 0, &C_SmtpPass, 0 }, /* ** .pp ** Specifies the password for your SMTP account. If \fIunset\fP, NeoMutt will @@ -4091,7 +4091,7 @@ struct ConfigDef MuttVars[] = { ** fairly secure machine, because the superuser can read your neomuttrc even ** if you are the only one who can read the file. */ - { "smtp_url", DT_STRING|DT_SENSITIVE, R_NONE, &C_SmtpUrl, 0 }, + { "smtp_url", DT_STRING|DT_SENSITIVE, 0, &C_SmtpUrl, 0 }, /* ** .pp ** Defines the SMTP smarthost where sent messages should relayed for @@ -4105,7 +4105,7 @@ struct ConfigDef MuttVars[] = { ** variable. */ #endif /* USE_SMTP */ - { "sort", DT_SORT, R_INDEX|R_RESORT, &C_Sort, SORT_DATE, pager_validator }, + { "sort", DT_SORT|R_INDEX|R_RESORT, 0, &C_Sort, SORT_DATE, pager_validator }, /* ** .pp ** Specifies how to sort messages in the "index" menu. Valid values @@ -4131,7 +4131,7 @@ struct ConfigDef MuttVars[] = { ** set sort=reverse-date-sent ** .te */ - { "sort_alias", DT_SORT|DT_SORT_ALIAS, R_NONE, &C_SortAlias, SORT_ALIAS }, + { "sort_alias", DT_SORT|DT_SORT_ALIAS, 0, &C_SortAlias, SORT_ALIAS }, /* ** .pp ** Specifies how the entries in the "alias" menu are sorted. The @@ -4142,7 +4142,7 @@ struct ConfigDef MuttVars[] = { ** .dd unsorted (leave in order specified in .neomuttrc) ** .ie */ - { "sort_aux", DT_SORT|DT_SORT_AUX, R_INDEX|R_RESORT|R_RESORT_SUB, &C_SortAux, SORT_DATE }, + { "sort_aux", DT_SORT|DT_SORT_AUX|R_INDEX|R_RESORT|R_RESORT_SUB, 0, &C_SortAux, SORT_DATE }, /* ** .pp ** This provides a secondary sort for messages in the "index" menu, used @@ -4168,7 +4168,7 @@ struct ConfigDef MuttVars[] = { ** order, $$sort_aux is reversed again (which is not the right thing to do, ** but kept to not break any existing configuration setting). */ - { "sort_browser", DT_SORT|DT_SORT_BROWSER, R_NONE, &C_SortBrowser, SORT_ALPHA }, + { "sort_browser", DT_SORT|DT_SORT_BROWSER, 0, &C_SortBrowser, SORT_ALPHA }, /* ** .pp ** Specifies how to sort entries in the file browser. By default, the @@ -4186,7 +4186,7 @@ struct ConfigDef MuttVars[] = { ** You may optionally use the "reverse-" prefix to specify reverse sorting ** order (example: "\fCset sort_browser=reverse-date\fP"). */ - { "sort_re", DT_BOOL, R_INDEX|R_RESORT|R_RESORT_INIT, &C_SortRe, true, pager_validator }, + { "sort_re", DT_BOOL|R_INDEX|R_RESORT|R_RESORT_INIT, 0, &C_SortRe, true, pager_validator }, /* ** .pp ** This variable is only useful when sorting by mailboxes in sidebar. By default, @@ -4199,7 +4199,7 @@ struct ConfigDef MuttVars[] = { ** .dd unsorted ** .ie */ - { "spam_separator", DT_STRING, R_NONE, &C_SpamSeparator, IP "," }, + { "spam_separator", DT_STRING, 0, &C_SpamSeparator, IP "," }, /* ** .pp ** This variable controls what happens when multiple spam headers @@ -4208,7 +4208,7 @@ struct ConfigDef MuttVars[] = { ** match will append to the previous, using this variable's value as a ** separator. */ - { "spoolfile", DT_PATH|DT_MAILBOX, R_NONE, &C_Spoolfile, 0 }, + { "spoolfile", DT_PATH|DT_MAILBOX, 0, &C_Spoolfile, 0 }, /* ** .pp ** If your spool mailbox is in a non-default place where NeoMutt can't find @@ -4220,7 +4220,7 @@ struct ConfigDef MuttVars[] = { */ #ifdef USE_SSL #ifdef USE_SSL_GNUTLS - { "ssl_ca_certificates_file", DT_PATH, R_NONE, &C_SslCaCertificatesFile, 0 }, + { "ssl_ca_certificates_file", DT_PATH, 0, &C_SslCaCertificatesFile, 0 }, /* ** .pp ** This variable specifies a file containing trusted CA certificates. @@ -4233,7 +4233,7 @@ struct ConfigDef MuttVars[] = { ** .te */ #endif /* USE_SSL_GNUTLS */ - { "ssl_ciphers", DT_STRING, R_NONE, &C_SslCiphers, 0 }, + { "ssl_ciphers", DT_STRING, 0, &C_SslCiphers, 0 }, /* ** .pp ** Contains a colon-separated list of ciphers to use when using SSL. @@ -4244,13 +4244,13 @@ struct ConfigDef MuttVars[] = { ** syntax and more details. (Note: GnuTLS version 2.1.7 or higher is ** required.) */ - { "ssl_client_cert", DT_PATH, R_NONE, &C_SslClientCert, 0 }, + { "ssl_client_cert", DT_PATH, 0, &C_SslClientCert, 0 }, /* ** .pp ** The file containing a client certificate and its associated private ** key. */ - { "ssl_force_tls", DT_BOOL, R_NONE, &C_SslForceTls, true }, + { "ssl_force_tls", DT_BOOL, 0, &C_SslForceTls, true }, /* ** .pp ** If this variable is \fIset\fP, NeoMutt will require that all connections @@ -4260,7 +4260,7 @@ struct ConfigDef MuttVars[] = { ** option supersedes $$ssl_starttls. */ #ifdef USE_SSL_GNUTLS - { "ssl_min_dh_prime_bits", DT_NUMBER|DT_NOT_NEGATIVE, R_NONE, &C_SslMinDhPrimeBits, 0 }, + { "ssl_min_dh_prime_bits", DT_NUMBER|DT_NOT_NEGATIVE, 0, &C_SslMinDhPrimeBits, 0 }, /* ** .pp ** This variable specifies the minimum acceptable prime size (in bits) @@ -4268,7 +4268,7 @@ struct ConfigDef MuttVars[] = { ** the default from the GNUTLS library. (GnuTLS only) */ #endif /* USE_SSL_GNUTLS */ - { "ssl_starttls", DT_QUAD, R_NONE, &C_SslStarttls, MUTT_YES }, + { "ssl_starttls", DT_QUAD, 0, &C_SslStarttls, MUTT_YES }, /* ** .pp ** If \fIset\fP (the default), NeoMutt will attempt to use \fCSTARTTLS\fP on servers @@ -4276,7 +4276,7 @@ struct ConfigDef MuttVars[] = { ** use \fCSTARTTLS\fP regardless of the server's capabilities. */ #ifdef USE_SSL_OPENSSL - { "ssl_use_sslv2", DT_BOOL, R_NONE, &C_SslUseSslv2, false }, + { "ssl_use_sslv2", DT_BOOL, 0, &C_SslUseSslv2, false }, /* ** .pp ** If \fIset\fP , Mutt will use SSLv2 when communicating with servers that @@ -4285,35 +4285,35 @@ struct ConfigDef MuttVars[] = { ** (OpenSSL only) */ #endif /* defined USE_SSL_OPENSSL */ - { "ssl_use_sslv3", DT_BOOL, R_NONE, &C_SslUseSslv3, false }, + { "ssl_use_sslv3", DT_BOOL, 0, &C_SslUseSslv3, false }, /* ** .pp ** If \fIset\fP , Mutt will use SSLv3 when communicating with servers that ** request it. \fBN.B. As of 2015, SSLv3 is considered insecure, and using ** it is inadvisable. See https://tools.ietf.org/html/rfc7525 .\fP */ - { "ssl_use_tlsv1", DT_BOOL, R_NONE, &C_SslUseTlsv1, false }, + { "ssl_use_tlsv1", DT_BOOL, 0, &C_SslUseTlsv1, false }, /* ** .pp ** If \fIset\fP , Mutt will use TLSv1.0 when communicating with servers that ** request it. \fBN.B. As of 2015, TLSv1.0 is considered insecure, and using ** it is inadvisable. See https://tools.ietf.org/html/rfc7525 .\fP */ - { "ssl_use_tlsv1_1", DT_BOOL, R_NONE, &C_SslUseTlsv11, false }, + { "ssl_use_tlsv1_1", DT_BOOL, 0, &C_SslUseTlsv11, false }, /* ** .pp ** If \fIset\fP , Mutt will use TLSv1.1 when communicating with servers that ** request it. \fBN.B. As of 2015, TLSv1.1 is considered insecure, and using ** it is inadvisable. See https://tools.ietf.org/html/rfc7525 .\fP */ - { "ssl_use_tlsv1_2", DT_BOOL, R_NONE, &C_SslUseTlsv12, true }, + { "ssl_use_tlsv1_2", DT_BOOL, 0, &C_SslUseTlsv12, true }, /* ** .pp ** If \fIset\fP , Mutt will use TLSv1.2 when communicating with servers that ** request it. */ #ifdef USE_SSL_OPENSSL - { "ssl_usesystemcerts", DT_BOOL, R_NONE, &C_SslUsesystemcerts, true }, + { "ssl_usesystemcerts", DT_BOOL, 0, &C_SslUsesystemcerts, true }, /* ** .pp ** If set to \fIyes\fP, NeoMutt will use CA certificates in the @@ -4321,7 +4321,7 @@ struct ConfigDef MuttVars[] = { ** is signed by a trusted CA. (OpenSSL only) */ #endif - { "ssl_verify_dates", DT_BOOL, R_NONE, &C_SslVerifyDates, true }, + { "ssl_verify_dates", DT_BOOL, 0, &C_SslVerifyDates, true }, /* ** .pp ** If \fIset\fP (the default), NeoMutt will not automatically accept a server @@ -4329,7 +4329,7 @@ struct ConfigDef MuttVars[] = { ** only unset this for particular known hosts, using the ** \fC$\fP function. */ - { "ssl_verify_host", DT_BOOL, R_NONE, &C_SslVerifyHost, true }, + { "ssl_verify_host", DT_BOOL, 0, &C_SslVerifyHost, true }, /* ** .pp ** If \fIset\fP (the default), NeoMutt will not automatically accept a server @@ -4339,7 +4339,7 @@ struct ConfigDef MuttVars[] = { */ #ifdef USE_SSL_OPENSSL #ifdef HAVE_SSL_PARTIAL_CHAIN - { "ssl_verify_partial_chains", DT_BOOL, R_NONE, &C_SslVerifyPartialChains, false }, + { "ssl_verify_partial_chains", DT_BOOL, 0, &C_SslVerifyPartialChains, false }, /* ** .pp ** This option should not be changed from the default unless you understand @@ -4356,7 +4356,7 @@ struct ConfigDef MuttVars[] = { #endif /* defined HAVE_SSL_PARTIAL_CHAIN */ #endif /* defined USE_SSL_OPENSSL */ #endif /* defined(USE_SSL) */ - { "status_chars", DT_MBTABLE, R_INDEX|R_PAGER, &C_StatusChars, IP "-*%A" }, + { "status_chars", DT_MBTABLE|R_INDEX|R_PAGER, 0, &C_StatusChars, IP "-*%A" }, /* ** .pp ** Controls the characters used by the "%r" indicator in $$status_format. @@ -4373,7 +4373,7 @@ struct ConfigDef MuttVars[] = { ** forwarding, etc. are not permitted in this mode) ** .de */ - { "status_format", DT_STRING, R_INDEX|R_PAGER, &C_StatusFormat, IP "-%r-NeoMutt: %D [Msgs:%?M?%M/?%m%?n? New:%n?%?o? Old:%o?%?d? Del:%d?%?F? Flag:%F?%?t? Tag:%t?%?p? Post:%p?%?b? Inc:%b?%?l? %l?]---(%s/%S)-%>-(%P)---" }, + { "status_format", DT_STRING|R_INDEX|R_PAGER, 0, &C_StatusFormat, IP "-%r-NeoMutt: %D [Msgs:%?M?%M/?%m%?n? New:%n?%?o? Old:%o?%?d? Del:%d?%?F? Flag:%F?%?t? Tag:%t?%?p? Post:%p?%?b? Inc:%b?%?l? %l?]---(%s/%S)-%>-(%P)---" }, /* ** .pp ** Controls the format of the status line displayed in the "index" @@ -4448,14 +4448,14 @@ struct ConfigDef MuttVars[] = { ** will replace any dots in the expansion by underscores. This might be helpful ** with IMAP folders that don't like dots in folder names. */ - { "status_on_top", DT_BOOL, R_REFLOW, &C_StatusOnTop, false }, + { "status_on_top", DT_BOOL|R_REFLOW, 0, &C_StatusOnTop, false }, /* ** .pp ** Setting this variable causes the "status bar" to be displayed on ** the first line of the screen rather than near the bottom. If $$help ** is \fIset\fP, too it'll be placed at the bottom. */ - { "strict_threads", DT_BOOL, R_RESORT|R_RESORT_INIT|R_INDEX, &C_StrictThreads, false, pager_validator }, + { "strict_threads", DT_BOOL|R_RESORT|R_RESORT_INIT|R_INDEX, 0, &C_StrictThreads, false, pager_validator }, /* ** .pp ** If \fIset\fP, threading will only make use of the "In-Reply-To" and @@ -4467,14 +4467,14 @@ struct ConfigDef MuttVars[] = { ** $$sort_re for a less drastic way of controlling this ** behavior. */ - { "suspend", DT_BOOL, R_NONE, &C_Suspend, true }, + { "suspend", DT_BOOL, 0, &C_Suspend, true }, /* ** .pp ** When \fIunset\fP, NeoMutt won't stop when the user presses the terminal's ** \fIsusp\fP key, usually "^Z". This is useful if you run NeoMutt ** inside an xterm using a command like "\fCxterm -e neomutt\fP". */ - { "text_flowed", DT_BOOL, R_NONE, &C_TextFlowed, false }, + { "text_flowed", DT_BOOL, 0, &C_TextFlowed, false }, /* ** .pp ** When \fIset\fP, NeoMutt will generate "format=flowed" bodies with a content type @@ -4485,7 +4485,7 @@ struct ConfigDef MuttVars[] = { ** .pp ** Note that $$indent_string is ignored when this option is \fIset\fP. */ - { "thorough_search", DT_BOOL, R_NONE, &C_ThoroughSearch, true }, + { "thorough_search", DT_BOOL, 0, &C_ThoroughSearch, true }, /* ** .pp ** Affects the \fC~b\fP and \fC~h\fP search operations described in @@ -4499,19 +4499,19 @@ struct ConfigDef MuttVars[] = { ** raw message received (for example quoted-printable encoded or with encoded ** headers) which may lead to incorrect search results. */ - { "thread_received", DT_BOOL, R_RESORT|R_RESORT_INIT|R_INDEX, &C_ThreadReceived, false, pager_validator }, + { "thread_received", DT_BOOL|R_RESORT|R_RESORT_INIT|R_INDEX, 0, &C_ThreadReceived, false, pager_validator }, /* ** .pp ** When \fIset\fP, NeoMutt uses the date received rather than the date sent ** to thread messages by subject. */ - { "tilde", DT_BOOL, R_PAGER, &C_Tilde, false }, + { "tilde", DT_BOOL|R_PAGER, 0, &C_Tilde, false }, /* ** .pp ** When \fIset\fP, the internal-pager will pad blank lines to the bottom of the ** screen with a tilde ("~"). */ - { "time_inc", DT_NUMBER|DT_NOT_NEGATIVE, R_NONE, &C_TimeInc, 0 }, + { "time_inc", DT_NUMBER|DT_NOT_NEGATIVE, 0, &C_TimeInc, 0 }, /* ** .pp ** Along with $$read_inc, $$write_inc, and $$net_inc, this @@ -4522,7 +4522,7 @@ struct ConfigDef MuttVars[] = { ** .pp ** Also see the "$tuning" section of the manual for performance considerations. */ - { "timeout", DT_NUMBER|DT_NOT_NEGATIVE, R_NONE, &C_Timeout, 600 }, + { "timeout", DT_NUMBER|DT_NOT_NEGATIVE, 0, &C_Timeout, 600 }, /* ** .pp ** When NeoMutt is waiting for user input either idling in menus or @@ -4537,7 +4537,7 @@ struct ConfigDef MuttVars[] = { ** .pp ** A value of zero or less will cause NeoMutt to never time out. */ - { "tmpdir", DT_PATH, R_NONE, &C_Tmpdir, IP "/tmp" }, + { "tmpdir", DT_PATH, 0, &C_Tmpdir, IP "/tmp" }, /* ** .pp ** This variable allows you to specify where NeoMutt will place its @@ -4546,7 +4546,7 @@ struct ConfigDef MuttVars[] = { ** If this variable is not set, the environment variable \fC$$$TMPDIR\fP is ** used. Failing that, then "\fC/tmp\fP" is used. */ - { "to_chars", DT_MBTABLE, R_INDEX|R_PAGER, &C_ToChars, IP " +TCFLR" }, + { "to_chars", DT_MBTABLE|R_INDEX|R_PAGER, 0, &C_ToChars, IP " +TCFLR" }, /* ** .pp ** Controls the character used to indicate mail addressed to you. @@ -4561,7 +4561,7 @@ struct ConfigDef MuttVars[] = { ** .dt 7 .dd R .dd Your address appears in the "Reply-To:" header field but none of the above applies. ** .de */ - { "trash", DT_PATH|DT_MAILBOX, R_NONE, &C_Trash, 0 }, + { "trash", DT_PATH|DT_MAILBOX, 0, &C_Trash, 0 }, /* ** .pp ** If set, this variable specifies the path of the trash folder where the @@ -4571,21 +4571,21 @@ struct ConfigDef MuttVars[] = { ** NOTE: When you delete a message in the trash folder, it is really ** deleted, so that you have a way to clean the trash. */ - { "ts_enabled", DT_BOOL, R_INDEX|R_PAGER, &C_TsEnabled, false }, + { "ts_enabled", DT_BOOL|R_INDEX|R_PAGER, 0, &C_TsEnabled, false }, /* The default must be off to force in the validity checking. */ /* ** .pp ** Controls whether NeoMutt tries to set the terminal status line and icon name. ** Most terminal emulators emulate the status line in the window title. */ - { "ts_icon_format", DT_STRING, R_INDEX|R_PAGER, &C_TsIconFormat, IP "M%?n?AIL&ail?" }, + { "ts_icon_format", DT_STRING|R_INDEX|R_PAGER, 0, &C_TsIconFormat, IP "M%?n?AIL&ail?" }, /* ** .pp ** Controls the format of the icon title, as long as "$$ts_enabled" is set. ** This string is identical in formatting to the one used by ** "$$status_format". */ - { "ts_status_format", DT_STRING, R_INDEX|R_PAGER, &C_TsStatusFormat, IP "NeoMutt with %?m?%m messages&no messages?%?n? [%n NEW]?" }, + { "ts_status_format", DT_STRING|R_INDEX|R_PAGER, 0, &C_TsStatusFormat, IP "NeoMutt with %?m?%m messages&no messages?%?n? [%n NEW]?" }, /* ** .pp ** Controls the format of the terminal status line (or window title), @@ -4593,7 +4593,7 @@ struct ConfigDef MuttVars[] = { ** formatting to the one used by "$$status_format". */ #ifdef USE_SOCKET - { "tunnel", DT_STRING, R_NONE, &C_Tunnel, 0 }, + { "tunnel", DT_STRING, 0, &C_Tunnel, 0 }, /* ** .pp ** Setting this variable will cause NeoMutt to open a pipe to a command @@ -4611,13 +4611,13 @@ struct ConfigDef MuttVars[] = { ** tunnel commands per connection. */ #endif - { "uncollapse_jump", DT_BOOL, R_NONE, &C_UncollapseJump, false }, + { "uncollapse_jump", DT_BOOL, 0, &C_UncollapseJump, false }, /* ** .pp ** When \fIset\fP, NeoMutt will jump to the next unread message, if any, ** when the current thread is \fIun\fPcollapsed. */ - { "uncollapse_new", DT_BOOL, R_NONE, &C_UncollapseNew, true }, + { "uncollapse_new", DT_BOOL, 0, &C_UncollapseNew, true }, /* ** .pp ** When \fIset\fP, NeoMutt will automatically uncollapse any collapsed thread @@ -4625,7 +4625,7 @@ struct ConfigDef MuttVars[] = { ** remain collapsed. the presence of the new message will still affect ** index sorting, though. */ - { "use_8bitmime", DT_BOOL, R_NONE, &C_Use8bitmime, false }, + { "use_8bitmime", DT_BOOL, 0, &C_Use8bitmime, false }, /* ** .pp ** \fBWarning:\fP do not set this variable unless you are using a version @@ -4635,14 +4635,14 @@ struct ConfigDef MuttVars[] = { ** When \fIset\fP, NeoMutt will invoke $$sendmail with the \fC-B8BITMIME\fP ** flag when sending 8-bit messages to enable ESMTP negotiation. */ - { "use_domain", DT_BOOL, R_NONE, &C_UseDomain, true }, + { "use_domain", DT_BOOL, 0, &C_UseDomain, true }, /* ** .pp ** When \fIset\fP, NeoMutt will qualify all local addresses (ones without the ** "@host" portion) with the value of $$hostname. If \fIunset\fP, no ** addresses will be qualified. */ - { "use_envelope_from", DT_BOOL, R_NONE, &C_UseEnvelopeFrom, false }, + { "use_envelope_from", DT_BOOL, 0, &C_UseEnvelopeFrom, false }, /* ** .pp ** When \fIset\fP, NeoMutt will set the \fIenvelope\fP sender of the message. @@ -4655,7 +4655,7 @@ struct ConfigDef MuttVars[] = { ** if the $$sendmail variable already contains \fC-f\fP or if the ** executable pointed to by $$sendmail doesn't support the \fC-f\fP switch. */ - { "use_from", DT_BOOL, R_NONE, &C_UseFrom, true }, + { "use_from", DT_BOOL, 0, &C_UseFrom, true }, /* ** .pp ** When \fIset\fP, NeoMutt will generate the "From:" header field when @@ -4664,7 +4664,7 @@ struct ConfigDef MuttVars[] = { ** command. */ #ifdef HAVE_GETADDRINFO - { "use_ipv6", DT_BOOL, R_NONE, &C_UseIpv6, true }, + { "use_ipv6", DT_BOOL, 0, &C_UseIpv6, true }, /* ** .pp ** When \fIset\fP, NeoMutt will look for IPv6 addresses of hosts it tries to @@ -4672,7 +4672,7 @@ struct ConfigDef MuttVars[] = { ** Normally, the default should work. */ #endif /* HAVE_GETADDRINFO */ - { "user_agent", DT_BOOL, R_NONE, &C_UserAgent, true }, + { "user_agent", DT_BOOL, 0, &C_UserAgent, true }, /* ** .pp ** When \fIset\fP, NeoMutt will add a "User-Agent:" header to outgoing @@ -4680,14 +4680,14 @@ struct ConfigDef MuttVars[] = { ** them. */ #ifdef USE_NOTMUCH - { "vfolder_format", DT_STRING|DT_NOT_EMPTY, R_INDEX, &C_VfolderFormat, IP "%2C %?n?%4n/& ?%4m %f" }, + { "vfolder_format", DT_STRING|DT_NOT_EMPTY|R_INDEX, 0, &C_VfolderFormat, IP "%2C %?n?%4n/& ?%4m %f" }, /* ** .pp ** This variable allows you to customize the file browser display for virtual ** folders to your personal taste. This string uses many of the same ** expandos as $$folder_format. */ - { "virtual_spoolfile", DT_BOOL, R_NONE, &C_VirtualSpoolfile, false }, + { "virtual_spoolfile", DT_BOOL, 0, &C_VirtualSpoolfile, false }, /* ** .pp ** When \fIset\fP, NeoMutt will use the first defined virtual mailbox (see @@ -4697,7 +4697,7 @@ struct ConfigDef MuttVars[] = { ** mailbox descriptions as a value. */ #endif - { "visual", DT_COMMAND, R_NONE, &C_Visual, IP "vi" }, + { "visual", DT_COMMAND, 0, &C_Visual, IP "vi" }, /* ** .pp ** Specifies the visual editor to invoke when the "\fC~v\fP" command is @@ -4705,7 +4705,7 @@ struct ConfigDef MuttVars[] = { ** .pp ** $$visual is overridden by the environment variable \fC$$$VISUAL\fP or \fC$$$EDITOR\fP. */ - { "wait_key", DT_BOOL, R_NONE, &C_WaitKey, true }, + { "wait_key", DT_BOOL, 0, &C_WaitKey, true }, /* ** .pp ** Controls whether NeoMutt will ask you to press a key after an external command @@ -4720,13 +4720,13 @@ struct ConfigDef MuttVars[] = { ** When \fIset\fP, NeoMutt will always ask for a key. When \fIunset\fP, NeoMutt will wait ** for a key only if the external command returned a non-zero status. */ - { "weed", DT_BOOL, R_NONE, &C_Weed, true }, + { "weed", DT_BOOL, 0, &C_Weed, true }, /* ** .pp ** When \fIset\fP, NeoMutt will weed headers when displaying, forwarding, ** printing, or replying to messages. */ - { "wrap", DT_NUMBER, R_PAGER_FLOW, &C_Wrap, 0 }, + { "wrap", DT_NUMBER|R_PAGER_FLOW, 0, &C_Wrap, 0 }, /* ** .pp ** When set to a positive value, NeoMutt will wrap text at $$wrap characters. @@ -4736,7 +4736,7 @@ struct ConfigDef MuttVars[] = { ** .pp ** Also see $$reflow_wrap. */ - { "wrap_headers", DT_NUMBER|DT_NOT_NEGATIVE, R_PAGER, &C_WrapHeaders, 78 }, + { "wrap_headers", DT_NUMBER|DT_NOT_NEGATIVE|R_PAGER, 0, &C_WrapHeaders, 78 }, /* ** .pp ** This option specifies the number of characters to use for wrapping @@ -4747,7 +4747,7 @@ struct ConfigDef MuttVars[] = { ** recommends a line length of 78 (the default), so \fBplease only change ** this setting when you know what you're doing\fP. */ - { "wrap_search", DT_BOOL, R_NONE, &C_WrapSearch, true }, + { "wrap_search", DT_BOOL, 0, &C_WrapSearch, true }, /* ** .pp ** Controls whether searches wrap around the end. @@ -4755,7 +4755,7 @@ struct ConfigDef MuttVars[] = { ** When \fIset\fP, searches will wrap around the first (or last) item. When ** \fIunset\fP, incremental searches will not wrap. */ - { "write_bcc", DT_BOOL, R_NONE, &C_WriteBcc, true }, + { "write_bcc", DT_BOOL, 0, &C_WriteBcc, true }, /* ** .pp ** Controls whether NeoMutt writes out the "Bcc:" header when preparing @@ -4764,7 +4764,7 @@ struct ConfigDef MuttVars[] = { ** option does nothing: NeoMutt will never write out the "Bcc:" header ** in this case. */ - { "write_inc", DT_NUMBER|DT_NOT_NEGATIVE, R_NONE, &C_WriteInc, 10 }, + { "write_inc", DT_NUMBER|DT_NOT_NEGATIVE, 0, &C_WriteInc, 10 }, /* ** .pp ** When writing a mailbox, a message will be printed every @@ -4775,7 +4775,7 @@ struct ConfigDef MuttVars[] = { ** "$tuning" section of the manual for performance considerations. */ #ifdef USE_NNTP - { "x_comment_to", DT_BOOL, R_NONE, &C_XCommentTo, false }, + { "x_comment_to", DT_BOOL, 0, &C_XCommentTo, false }, /* ** .pp ** If \fIset\fP, NeoMutt will add "X-Comment-To:" field (that contains full @@ -4784,40 +4784,40 @@ struct ConfigDef MuttVars[] = { #endif /*--*/ - { "ignore_linear_white_space", DT_BOOL, R_NONE, &C_IgnoreLinearWhiteSpace, false }, - { "pgp_encrypt_self", DT_QUAD, R_NONE, &C_PgpEncryptSelf, MUTT_NO }, - { "smime_encrypt_self", DT_QUAD, R_NONE, &C_SmimeEncryptSelf, MUTT_NO }, - { "wrapmargin", DT_NUMBER, R_PAGER, &C_Wrap, 0 }, + { "ignore_linear_white_space", DT_BOOL, 0, &C_IgnoreLinearWhiteSpace, false }, + { "pgp_encrypt_self", DT_QUAD, 0, &C_PgpEncryptSelf, MUTT_NO }, + { "smime_encrypt_self", DT_QUAD, 0, &C_SmimeEncryptSelf, MUTT_NO }, + { "wrapmargin", DT_NUMBER|R_PAGER, 0, &C_Wrap, 0 }, - { "abort_noattach_regexp", DT_SYNONYM, R_NONE, NULL, IP "abort_noattach_regex", }, - { "attach_keyword", DT_SYNONYM, R_NONE, NULL, IP "abort_noattach_regex", }, - { "edit_hdrs", DT_SYNONYM, R_NONE, NULL, IP "edit_headers", }, - { "envelope_from", DT_SYNONYM, R_NONE, NULL, IP "use_envelope_from", }, - { "forw_decode", DT_SYNONYM, R_NONE, NULL, IP "forward_decode", }, - { "forw_decrypt", DT_SYNONYM, R_NONE, NULL, IP "forward_decrypt", }, - { "forw_format", DT_SYNONYM, R_NONE, NULL, IP "forward_format", }, - { "forw_quote", DT_SYNONYM, R_NONE, NULL, IP "forward_quote", }, - { "hdr_format", DT_SYNONYM, R_NONE, NULL, IP "index_format", }, - { "indent_str", DT_SYNONYM, R_NONE, NULL, IP "indent_string", }, - { "mime_fwd", DT_SYNONYM, R_NONE, NULL, IP "mime_forward", }, - { "msg_format", DT_SYNONYM, R_NONE, NULL, IP "message_format", }, - { "pgp_autoencrypt", DT_SYNONYM, R_NONE, NULL, IP "crypt_autoencrypt", }, - { "pgp_autosign", DT_SYNONYM, R_NONE, NULL, IP "crypt_autosign", }, - { "pgp_auto_traditional", DT_SYNONYM, R_NONE, NULL, IP "pgp_replyinline", }, - { "pgp_create_traditional", DT_SYNONYM, R_NONE, NULL, IP "pgp_autoinline", }, - { "pgp_replyencrypt", DT_SYNONYM, R_NONE, NULL, IP "crypt_replyencrypt", }, - { "pgp_replysign", DT_SYNONYM, R_NONE, NULL, IP "crypt_replysign", }, - { "pgp_replysignencrypted", DT_SYNONYM, R_NONE, NULL, IP "crypt_replysignencrypted", }, - { "pgp_self_encrypt_as", DT_SYNONYM, R_NONE, NULL, IP "pgp_default_key", }, - { "pgp_verify_sig", DT_SYNONYM, R_NONE, NULL, IP "crypt_verify_sig", }, - { "post_indent_str", DT_SYNONYM, R_NONE, NULL, IP "post_indent_string", }, - { "print_cmd", DT_SYNONYM, R_NONE, NULL, IP "print_command", }, - { "quote_regexp", DT_SYNONYM, R_NONE, NULL, IP "quote_regex", }, - { "reply_regexp", DT_SYNONYM, R_NONE, NULL, IP "reply_regex", }, - { "smime_self_encrypt_as", DT_SYNONYM, R_NONE, NULL, IP "smime_default_key", }, - { "xterm_icon", DT_SYNONYM, R_NONE, NULL, IP "ts_icon_format", }, - { "xterm_set_titles", DT_SYNONYM, R_NONE, NULL, IP "ts_enabled", }, - { "xterm_title", DT_SYNONYM, R_NONE, NULL, IP "ts_status_format", }, + { "abort_noattach_regexp", DT_SYNONYM, 0, NULL, IP "abort_noattach_regex", }, + { "attach_keyword", DT_SYNONYM, 0, NULL, IP "abort_noattach_regex", }, + { "edit_hdrs", DT_SYNONYM, 0, NULL, IP "edit_headers", }, + { "envelope_from", DT_SYNONYM, 0, NULL, IP "use_envelope_from", }, + { "forw_decode", DT_SYNONYM, 0, NULL, IP "forward_decode", }, + { "forw_decrypt", DT_SYNONYM, 0, NULL, IP "forward_decrypt", }, + { "forw_format", DT_SYNONYM, 0, NULL, IP "forward_format", }, + { "forw_quote", DT_SYNONYM, 0, NULL, IP "forward_quote", }, + { "hdr_format", DT_SYNONYM, 0, NULL, IP "index_format", }, + { "indent_str", DT_SYNONYM, 0, NULL, IP "indent_string", }, + { "mime_fwd", DT_SYNONYM, 0, NULL, IP "mime_forward", }, + { "msg_format", DT_SYNONYM, 0, NULL, IP "message_format", }, + { "pgp_autoencrypt", DT_SYNONYM, 0, NULL, IP "crypt_autoencrypt", }, + { "pgp_autosign", DT_SYNONYM, 0, NULL, IP "crypt_autosign", }, + { "pgp_auto_traditional", DT_SYNONYM, 0, NULL, IP "pgp_replyinline", }, + { "pgp_create_traditional", DT_SYNONYM, 0, NULL, IP "pgp_autoinline", }, + { "pgp_replyencrypt", DT_SYNONYM, 0, NULL, IP "crypt_replyencrypt", }, + { "pgp_replysign", DT_SYNONYM, 0, NULL, IP "crypt_replysign", }, + { "pgp_replysignencrypted", DT_SYNONYM, 0, NULL, IP "crypt_replysignencrypted", }, + { "pgp_self_encrypt_as", DT_SYNONYM, 0, NULL, IP "pgp_default_key", }, + { "pgp_verify_sig", DT_SYNONYM, 0, NULL, IP "crypt_verify_sig", }, + { "post_indent_str", DT_SYNONYM, 0, NULL, IP "post_indent_string", }, + { "print_cmd", DT_SYNONYM, 0, NULL, IP "print_command", }, + { "quote_regexp", DT_SYNONYM, 0, NULL, IP "quote_regex", }, + { "reply_regexp", DT_SYNONYM, 0, NULL, IP "reply_regex", }, + { "smime_self_encrypt_as", DT_SYNONYM, 0, NULL, IP "smime_default_key", }, + { "xterm_icon", DT_SYNONYM, 0, NULL, IP "ts_icon_format", }, + { "xterm_set_titles", DT_SYNONYM, 0, NULL, IP "ts_enabled", }, + { "xterm_title", DT_SYNONYM, 0, NULL, IP "ts_status_format", }, { NULL, 0, 0, 0, 0 }, }; diff --git a/menu.c b/menu.c index 02400f0d1..74030d294 100644 --- a/menu.c +++ b/menu.c @@ -1605,9 +1605,9 @@ int mutt_menu_observer(struct NotifyCallback *nc) struct EventConfig *ec = (struct EventConfig *) nc->event; const struct ConfigDef *cdef = ec->he->data; - ConfigRedrawFlags flags = cdef->flags; + ConfigRedrawFlags flags = cdef->type & R_REDRAW_MASK; - if (flags == 0) + if (flags == R_REDRAW_NO_FLAGS) return 0; if (flags & R_INDEX) -- 2.40.0