NeoMutt  2025-09-05-55-g97fc89
Teaching an old dog new tricks
DOXYGEN
Loading...
Searching...
No Matches
mutt_config.c File Reference

Definitions of config variables. More...

#include "config.h"
#include <stdbool.h>
#include <stdint.h>
#include <stdio.h>
#include "mutt/lib.h"
#include "config/lib.h"
#include "email/lib.h"
#include "core/lib.h"
#include "attach/lib.h"
#include "expando/lib.h"
#include "index/lib.h"
#include "mutt_logging.h"
#include "mutt_thread.h"
#include "mx.h"
+ Include dependency graph for mutt_config.c:

Go to the source code of this file.

Macros

#define CONFIG_INIT_TYPE(CS, NAME)
 
#define CONFIG_INIT_VARS(CS, NAME)
 

Functions

static int multipart_validator (const struct ConfigDef *cdef, intptr_t value, struct Buffer *err)
 Validate the "show_multipart_alternative" config variable - Implements ConfigDef::validator() -.
 
struct ExpandoNodeparse_index_date_recv_local (const char *str, struct ExpandoFormat *fmt, int did, int uid, ExpandoParserFlags flags, const char **parsed_until, struct ExpandoParseError *err)
 Parse a Date Expando - Implements ExpandoDefinition::parse() -.
 
struct ExpandoNodeparse_index_date_local (const char *str, struct ExpandoFormat *fmt, int did, int uid, ExpandoParserFlags flags, const char **parsed_until, struct ExpandoParseError *err)
 Parse a Date Expando - Implements ExpandoDefinition::parse() -.
 
struct ExpandoNodeparse_index_date (const char *str, struct ExpandoFormat *fmt, int did, int uid, ExpandoParserFlags flags, const char **parsed_until, struct ExpandoParseError *err)
 Parse a Date Expando - Implements ExpandoDefinition::parse() -.
 
struct ExpandoNodeparse_index_hook (const char *str, struct ExpandoFormat *fmt, int did, int uid, ExpandoParserFlags flags, const char **parsed_until, struct ExpandoParseError *err)
 Parse an index-hook - Implements ExpandoDefinition::parse() -.
 
struct ExpandoNodeparse_tags_transformed (const char *str, struct ExpandoFormat *fmt, int did, int uid, ExpandoParserFlags flags, const char **parsed_until, struct ExpandoParseError *err)
 Parse a Tags-Transformed Expando - Implements ExpandoDefinition::parse() -.
 
struct ExpandoNodeparse_subject (const char *str, struct ExpandoFormat *fmt, int did, int uid, ExpandoParserFlags flags, const char **parsed_until, struct ExpandoParseError *err)
 Parse a Subject Expando - Implements ExpandoDefinition::parse() -.
 
static bool config_init_main (struct ConfigSet *cs)
 Register main config variables - Implements module_init_config_t -.
 
static void init_types (struct ConfigSet *cs)
 Create the config types.
 
static void init_variables (struct ConfigSet *cs)
 Define the config variables.
 
void init_config (struct ConfigSet *cs)
 Initialise the config system.
 

Variables

const struct ExpandoDefinition IndexFormatDef []
 Expando definitions.
 
static const struct Mapping SortAuxMethods []
 Sort methods for '$sort_aux' for the index.
 
const struct Mapping SortMethods []
 Sort methods for '$sort' for the index.
 
static const struct ExpandoDefinition AttachFormatDef []
 Expando definitions.
 
static const struct ExpandoDefinition *const IndexFormatDefNoPadding = &(IndexFormatDef[3])
 IndexFormatDefNoPadding - Index format definitions, without padding.
 
const struct ExpandoDefinition *const StatusFormatDefNoPadding = &(StatusFormatDef[3])
 StatusFormatDefNoPadding - Status format definitions, without padding.
 
static struct ConfigDef MainVars []
 General Config definitions for NeoMutt.
 
static struct ConfigDef MainVarsIdn []
 IDN Config definitions.
 

Detailed Description

Definitions of config variables.

Authors
  • Aditya De Saha
  • Louis Brauer
  • Pietro Cerutti
  • Richard Russon
  • Ashish Panigrahi
  • наб
  • Tóth János

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

You should have received a copy of the GNU General Public License along with this program. If not, see http://www.gnu.org/licenses/.

Definition in file mutt_config.c.

Macro Definition Documentation

◆ CONFIG_INIT_TYPE

#define CONFIG_INIT_TYPE ( CS,
NAME )
Value:
extern const struct ConfigSetType Cst##NAME; \
cs_register_type(CS, &Cst##NAME)

Definition at line 52 of file mutt_config.c.

52#define CONFIG_INIT_TYPE(CS, NAME) \
53 extern const struct ConfigSetType Cst##NAME; \
54 cs_register_type(CS, &Cst##NAME)

◆ CONFIG_INIT_VARS

#define CONFIG_INIT_VARS ( CS,
NAME )
Value:
bool config_init_##NAME(struct ConfigSet *cs); \
config_init_##NAME(CS)
Container for lots of config items.
Definition set.h:248

Definition at line 56 of file mutt_config.c.

56#define CONFIG_INIT_VARS(CS, NAME) \
57 bool config_init_##NAME(struct ConfigSet *cs); \
58 config_init_##NAME(CS)

Function Documentation

◆ init_types()

static void init_types ( struct ConfigSet * cs)
static

Create the config types.

Parameters
csConfig items

Define the config types, e.g. DT_STRING.

Definition at line 866 of file mutt_config.c.

867{
869 CONFIG_INIT_TYPE(cs, Bool);
870 CONFIG_INIT_TYPE(cs, Enum);
872 CONFIG_INIT_TYPE(cs, Long);
873 CONFIG_INIT_TYPE(cs, Mbtable);
874 CONFIG_INIT_TYPE(cs, MyVar);
875 CONFIG_INIT_TYPE(cs, Number);
876 CONFIG_INIT_TYPE(cs, Path);
877 CONFIG_INIT_TYPE(cs, Quad);
880 CONFIG_INIT_TYPE(cs, Sort);
881 CONFIG_INIT_TYPE(cs, String);
882}
#define CONFIG_INIT_TYPE(CS, NAME)
Definition mutt_config.c:52
An email address.
Definition address.h:35
Parsed Expando trees.
Definition expando.h:41
Cached regular expression.
Definition regex3.h:86
String list.
Definition slist.h:37
+ Here is the caller graph for this function:

◆ init_variables()

static void init_variables ( struct ConfigSet * cs)
static

Define the config variables.

Parameters
csConfig items

Definition at line 888 of file mutt_config.c.

889{
890 // Define the config variables
892 CONFIG_INIT_VARS(cs, alias);
893#if defined(USE_AUTOCRYPT)
894 CONFIG_INIT_VARS(cs, autocrypt);
895#endif
896 CONFIG_INIT_VARS(cs, browser);
897 CONFIG_INIT_VARS(cs, compose);
898 CONFIG_INIT_VARS(cs, conn);
899 CONFIG_INIT_VARS(cs, email);
900#if defined(USE_HCACHE)
901 CONFIG_INIT_VARS(cs, hcache);
902#endif
903 CONFIG_INIT_VARS(cs, helpbar);
904 CONFIG_INIT_VARS(cs, history);
905 CONFIG_INIT_VARS(cs, imap);
906 CONFIG_INIT_VARS(cs, index);
907 CONFIG_INIT_VARS(cs, maildir);
908 CONFIG_INIT_VARS(cs, mbox);
909 CONFIG_INIT_VARS(cs, menu);
910 CONFIG_INIT_VARS(cs, mh);
911 CONFIG_INIT_VARS(cs, ncrypt);
912 CONFIG_INIT_VARS(cs, nntp);
913#if defined(USE_NOTMUCH)
914 CONFIG_INIT_VARS(cs, notmuch);
915#endif
916 CONFIG_INIT_VARS(cs, pager);
917 CONFIG_INIT_VARS(cs, pattern);
918 CONFIG_INIT_VARS(cs, pop);
919 CONFIG_INIT_VARS(cs, progress);
921 CONFIG_INIT_VARS(cs, sidebar);
922}
static bool config_init_main(struct ConfigSet *cs)
Register main config variables - Implements module_init_config_t -.
static bool send(struct Notify *source, struct Notify *current, enum NotifyType event_type, int event_subtype, void *event_data)
Send out a notification message.
Definition notify.c:120
#define CONFIG_INIT_VARS(CS, NAME)
Definition mutt_config.c:56
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ init_config()

void init_config ( struct ConfigSet * cs)

Initialise the config system.

Parameters
csConfig items

Definition at line 928 of file mutt_config.c.

929{
930 init_types(cs);
931 init_variables(cs);
932}
static void init_types(struct ConfigSet *cs)
Create the config types.
static void init_variables(struct ConfigSet *cs)
Define the config variables.
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

Variable Documentation

◆ IndexFormatDef

const struct ExpandoDefinition IndexFormatDef[]

Expando definitions.

Config:

  • $attribution_intro
  • $attribution_trailer
  • $forward_attribution_intro
  • $forward_attribution_trailer
  • $forward_format
  • $index_format
  • $message_format
  • $pager_format
Note
Longer Expandos must precede any similar, but shorter Expandos

Definition at line 310 of file mutt_config.c.

310 {
311 // clang-format off
312 { "*", "padding-soft", ED_GLOBAL, ED_GLO_PADDING_SOFT, node_padding_parse },
313 { ">", "padding-hard", ED_GLOBAL, ED_GLO_PADDING_HARD, node_padding_parse },
314 { "|", "padding-eol", ED_GLOBAL, ED_GLO_PADDING_EOL, node_padding_parse },
317 { "a", "from", ED_ENVELOPE, ED_ENV_FROM, NULL },
318 { "A", "reply-to", ED_ENVELOPE, ED_ENV_REPLY_TO, NULL },
319 { "b", "mailbox-name", ED_MAILBOX, ED_MBX_MAILBOX_NAME, NULL },
320 { "B", "list-address", ED_ENVELOPE, ED_ENV_LIST_ADDRESS, NULL },
321 { "cr", "body-characters", ED_EMAIL, ED_EMA_BODY_CHARACTERS, NULL },
322 { "c", "size", ED_EMAIL, ED_EMA_SIZE, NULL },
323 { "C", "number", ED_EMAIL, ED_EMA_NUMBER, NULL },
324 { "d", "date-format", ED_EMAIL, ED_EMA_DATE_FORMAT, NULL },
325 { "D", "date-format-local", ED_EMAIL, ED_EMA_DATE_FORMAT_LOCAL, NULL },
326 { "e", "thread-number", ED_EMAIL, ED_EMA_THREAD_NUMBER, NULL },
327 { "E", "thread-count", ED_EMAIL, ED_EMA_THREAD_COUNT, NULL },
328 { "f", "from-full", ED_ENVELOPE, ED_ENV_FROM_FULL, NULL },
329 { "Fp", "sender-plain", ED_ENVELOPE, ED_ENV_SENDER_PLAIN, NULL },
330 { "F", "sender", ED_ENVELOPE, ED_ENV_SENDER, NULL },
331 { "g", "tags", ED_EMAIL, ED_EMA_TAGS, NULL },
332 { "G", "tags-transformed", ED_EMAIL, ED_EMA_TAGS_TRANSFORMED, parse_tags_transformed },
333 { "H", "spam", ED_ENVELOPE, ED_ENV_SPAM, NULL },
334 { "i", "message-id", ED_ENVELOPE, ED_ENV_MESSAGE_ID, NULL },
335 { "I", "initials", ED_ENVELOPE, ED_ENV_INITIALS, NULL },
336 { "J", "thread-tags", ED_EMAIL, ED_EMA_THREAD_TAGS, NULL },
337 { "K", "list-empty", ED_ENVELOPE, ED_ENV_LIST_EMPTY, NULL },
338 { "l", "lines", ED_EMAIL, ED_EMA_LINES, NULL },
339 { "L", "from-list", ED_EMAIL, ED_EMA_FROM_LIST, NULL },
340 { "m", "message-count", ED_MAILBOX, ED_MBX_MESSAGE_COUNT, NULL },
341 { "M", "thread-hidden-count", ED_EMAIL, ED_EMA_THREAD_HIDDEN_COUNT, NULL },
342 { "n", "name", ED_ENVELOPE, ED_ENV_NAME, NULL },
343 { "N", "score", ED_EMAIL, ED_EMA_SCORE, NULL },
344 { "O", "save-folder", ED_EMAIL, ED_EMA_LIST_OR_SAVE_FOLDER, NULL },
345 { "P", "percentage", ED_MAILBOX, ED_MBX_PERCENTAGE, NULL },
346 { "q", "newsgroup", ED_ENVELOPE, ED_ENV_NEWSGROUP, NULL },
347 { "r", "to-all", ED_ENVELOPE, ED_ENV_TO_ALL, NULL },
348 { "R", "cc-all", ED_ENVELOPE, ED_ENV_CC_ALL, NULL },
349 { "s", "subject", ED_ENVELOPE, ED_ENV_SUBJECT, parse_subject },
350 { "S", "flag-chars", ED_EMAIL, ED_EMA_FLAG_CHARS, NULL },
351 { "t", "to", ED_ENVELOPE, ED_ENV_TO, NULL },
352 { "T", "to-chars", ED_EMAIL, ED_EMA_TO_CHARS, NULL },
353 { "u", "username", ED_ENVELOPE, ED_ENV_USERNAME, NULL },
354 { "v", "first-name", ED_ENVELOPE, ED_ENV_FIRST_NAME, NULL },
355 { "W", "organization", ED_ENVELOPE, ED_ENV_ORGANIZATION, NULL },
356 { "x", "x-comment-to", ED_ENVELOPE, ED_ENV_X_COMMENT_TO, NULL },
357 { "X", "attachment-count", ED_EMAIL, ED_EMA_ATTACHMENT_COUNT, NULL },
358 { "y", "x-label", ED_ENVELOPE, ED_ENV_X_LABEL, NULL },
359 { "Y", "thread-x-label", ED_ENVELOPE, ED_ENV_THREAD_X_LABEL, NULL },
360 { "Z", "combined-flags", ED_EMAIL, ED_EMA_COMBINED_FLAGS, NULL },
361 { "zc", "crypto-flags", ED_EMAIL, ED_EMA_CRYPTO_FLAGS, NULL },
362 { "zs", "status-flags", ED_EMAIL, ED_EMA_STATUS_FLAGS, NULL },
363 { "zt", "message-flags", ED_EMAIL, ED_EMA_MESSAGE_FLAGS, NULL },
366 { NULL, NULL, 0, -1, NULL }
367 // clang-format on
368};
@ ED_MBX_MESSAGE_COUNT
Mailbox.msg_count.
Definition mailbox.h:158
@ ED_MBX_PERCENTAGE
EmailFormatInfo.pager_progress.
Definition mailbox.h:159
@ ED_MBX_MAILBOX_NAME
Mailbox, mailbox_path()
Definition mailbox.h:157
@ ED_ENVELOPE
Envelope ED_ENV_ ExpandoDataEnvelope.
Definition domain.h:42
@ ED_EMAIL
Email ED_EMA_ ExpandoDataEmail.
Definition domain.h:41
@ ED_GLOBAL
Global ED_GLO_ ExpandoDataGlobal.
Definition domain.h:44
@ ED_MAILBOX
Mailbox ED_MBX_ ExpandoDataMailbox.
Definition domain.h:47
@ ED_EMA_DATE_STRF_LOCAL
Email.date_sent.
Definition email.h:143
@ ED_EMA_ATTACHMENT_COUNT
Email, mutt_count_body_parts()
Definition email.h:136
@ ED_EMA_DATE_FORMAT_LOCAL
Email.date_sent.
Definition email.h:141
@ ED_EMA_TAGS_TRANSFORMED
Email.tags, driver_tags_get_transformed()
Definition email.h:156
@ ED_EMA_THREAD_HIDDEN_COUNT
Email.collapsed, Email.num_hidden, ...
Definition email.h:158
@ ED_EMA_DATE_FORMAT
Email.date_sent.
Definition email.h:140
@ ED_EMA_THREAD_TAGS
Email.tags.
Definition email.h:160
@ ED_EMA_TAGS
Email.tags.
Definition email.h:155
@ ED_EMA_SIZE
Body.length.
Definition email.h:152
@ ED_EMA_FLAG_CHARS
Email.deleted, Email.attach_del, ...
Definition email.h:144
@ ED_EMA_THREAD_NUMBER
Email, mutt_messages_in_thread()
Definition email.h:159
@ ED_EMA_TO_CHARS
Email, User_is_recipient()
Definition email.h:161
@ ED_EMA_BODY_CHARACTERS
Body.length.
Definition email.h:137
@ ED_EMA_COMBINED_FLAGS
Email.read, Email.old, thread_is_new(), ...
Definition email.h:138
@ ED_EMA_THREAD_COUNT
Email, mutt_messages_in_thread()
Definition email.h:157
@ ED_EMA_STATUS_FLAGS
Email.deleted, Email.attach_del, ...
Definition email.h:153
@ ED_EMA_NUMBER
Email.msgno.
Definition email.h:150
@ ED_EMA_DATE_STRF
Email.date_sent, Email.zhours, Email.zminutes, Email.zoccident.
Definition email.h:142
@ ED_EMA_FROM_LIST
Envelope.to, Envelope.cc.
Definition email.h:145
@ ED_EMA_SCORE
Email.score.
Definition email.h:151
@ ED_EMA_CRYPTO_FLAGS
Email.security, SecurityFlags.
Definition email.h:139
@ ED_EMA_STRF_RECV_LOCAL
Email.received.
Definition email.h:154
@ ED_EMA_LIST_OR_SAVE_FOLDER
Envelope.to, Envelope.cc, check_for_mailing_list()
Definition email.h:148
@ ED_EMA_INDEX_HOOK
Mailbox, Email, mutt_idxfmt_hook()
Definition email.h:146
@ ED_EMA_LINES
Email.lines.
Definition email.h:147
@ ED_EMA_MESSAGE_FLAGS
Email.tagged, Email.flagged.
Definition email.h:149
@ ED_ENV_SUBJECT
Envelope.subject, Envelope.disp_subj.
Definition envelope.h:116
@ ED_ENV_NEWSGROUP
Envelope.newsgroups.
Definition envelope.h:109
@ ED_ENV_INITIALS
Envelope.from (first)
Definition envelope.h:104
@ ED_ENV_FROM_FULL
Envelope.from (all)
Definition envelope.h:103
@ ED_ENV_X_COMMENT_TO
Envelope.x_comment_to.
Definition envelope.h:123
@ ED_ENV_FROM
Envelope.from (first)
Definition envelope.h:102
@ ED_ENV_LIST_ADDRESS
Envelope.to, Envelope.cc.
Definition envelope.h:105
@ ED_ENV_SPAM
Envelope.spam.
Definition envelope.h:115
@ ED_ENV_SENDER
Envelope, make_from()
Definition envelope.h:113
@ ED_ENV_TO_ALL
Envelope.to (all)
Definition envelope.h:120
@ ED_ENV_X_LABEL
Envelope.x_label.
Definition envelope.h:124
@ ED_ENV_NAME
Envelope.from (first)
Definition envelope.h:108
@ ED_ENV_CC_ALL
Envelope.cc.
Definition envelope.h:100
@ ED_ENV_ORGANIZATION
Envelope.organization.
Definition envelope.h:110
@ ED_ENV_REPLY_TO
Envelope.reply_to.
Definition envelope.h:112
@ ED_ENV_LIST_EMPTY
Envelope.to, Envelope.cc.
Definition envelope.h:106
@ ED_ENV_THREAD_X_LABEL
Envelope.x_label.
Definition envelope.h:118
@ ED_ENV_MESSAGE_ID
Envelope.message_id.
Definition envelope.h:107
@ ED_ENV_SENDER_PLAIN
Envelope, make_from()
Definition envelope.h:114
@ ED_ENV_USERNAME
Envelope.from.
Definition envelope.h:121
@ ED_ENV_TO
Envelope.to, Envelope.cc (first)
Definition envelope.h:119
@ ED_ENV_FIRST_NAME
Envelope.from, Envelope.to, Envelope.cc.
Definition envelope.h:101
struct ExpandoNode * node_padding_parse(const char *str, struct ExpandoFormat *fmt, int did, int uid, ExpandoParserFlags flags, const char **parsed_until, struct ExpandoParseError *err)
Parse a Padding Expando - Implements ExpandoDefinition::parse() -.
struct ExpandoNode * parse_index_hook(const char *str, struct ExpandoFormat *fmt, int did, int uid, ExpandoParserFlags flags, const char **parsed_until, struct ExpandoParseError *err)
Parse an index-hook - Implements ExpandoDefinition::parse() -.
struct ExpandoNode * parse_subject(const char *str, struct ExpandoFormat *fmt, int did, int uid, ExpandoParserFlags flags, const char **parsed_until, struct ExpandoParseError *err)
Parse a Subject Expando - Implements ExpandoDefinition::parse() -.
struct ExpandoNode * parse_index_date_recv_local(const char *str, struct ExpandoFormat *fmt, int did, int uid, ExpandoParserFlags flags, const char **parsed_until, struct ExpandoParseError *err)
Parse a Date Expando - Implements ExpandoDefinition::parse() -.
struct ExpandoNode * parse_index_date_local(const char *str, struct ExpandoFormat *fmt, int did, int uid, ExpandoParserFlags flags, const char **parsed_until, struct ExpandoParseError *err)
Parse a Date Expando - Implements ExpandoDefinition::parse() -.
struct ExpandoNode * parse_index_date(const char *str, struct ExpandoFormat *fmt, int did, int uid, ExpandoParserFlags flags, const char **parsed_until, struct ExpandoParseError *err)
Parse a Date Expando - Implements ExpandoDefinition::parse() -.
struct ExpandoNode * parse_tags_transformed(const char *str, struct ExpandoFormat *fmt, int did, int uid, ExpandoParserFlags flags, const char **parsed_until, struct ExpandoParseError *err)
Parse a Tags-Transformed Expando - Implements ExpandoDefinition::parse() -.
@ ED_GLO_PADDING_EOL
Padding to end-of-line.
Definition uid.h:38
@ ED_GLO_PADDING_HARD
Hard Padding.
Definition uid.h:39
@ ED_GLO_PADDING_SOFT
Soft Padding.
Definition uid.h:40

◆ SortAuxMethods

const struct Mapping SortAuxMethods[]
static
Initial value:
= {
{ "date", EMAIL_SORT_DATE },
{ "date-received", EMAIL_SORT_DATE_RECEIVED },
{ "from", EMAIL_SORT_FROM },
{ "label", EMAIL_SORT_LABEL },
{ "score", EMAIL_SORT_SCORE },
{ "size", EMAIL_SORT_SIZE },
{ "spam", EMAIL_SORT_SPAM },
{ "subject", EMAIL_SORT_SUBJECT },
{ "to", EMAIL_SORT_TO },
{ "unsorted", EMAIL_SORT_UNSORTED },
{ "date-sent", EMAIL_SORT_DATE },
{ "mailbox-order", EMAIL_SORT_UNSORTED },
{ "threads", EMAIL_SORT_DATE },
{ NULL, 0 },
}
@ EMAIL_SORT_LABEL
Sort by the emails label.
Definition sort.h:57
@ EMAIL_SORT_DATE_RECEIVED
Sort by when the message was delivered locally.
Definition sort.h:55
@ EMAIL_SORT_SPAM
Sort by the email's spam score.
Definition sort.h:60
@ EMAIL_SORT_SCORE
Sort by the email's score.
Definition sort.h:58
@ EMAIL_SORT_DATE
Sort by the date the email was sent.
Definition sort.h:54
@ EMAIL_SORT_SUBJECT
Sort by the email's subject.
Definition sort.h:61
@ EMAIL_SORT_FROM
Sort by the email's From field.
Definition sort.h:56
@ EMAIL_SORT_UNSORTED
Sort by the order the messages appear in the mailbox.
Definition sort.h:64
@ EMAIL_SORT_SIZE
Sort by the size of the email.
Definition sort.h:59
@ EMAIL_SORT_TO
Sort by the email's To field.
Definition sort.h:63

Sort methods for '$sort_aux' for the index.

Definition at line 63 of file mutt_config.c.

63 {
64 // clang-format off
65 { "date", EMAIL_SORT_DATE },
66 { "date-received", EMAIL_SORT_DATE_RECEIVED },
67 { "from", EMAIL_SORT_FROM },
68 { "label", EMAIL_SORT_LABEL },
69 { "score", EMAIL_SORT_SCORE },
70 { "size", EMAIL_SORT_SIZE },
71 { "spam", EMAIL_SORT_SPAM },
72 { "subject", EMAIL_SORT_SUBJECT },
73 { "to", EMAIL_SORT_TO },
74 { "unsorted", EMAIL_SORT_UNSORTED },
75 // Compatibility
76 { "date-sent", EMAIL_SORT_DATE },
77 { "mailbox-order", EMAIL_SORT_UNSORTED },
78 { "threads", EMAIL_SORT_DATE },
79 { NULL, 0 },
80 // clang-format on
81};

◆ SortMethods

const struct Mapping SortMethods[]
Initial value:
= {
{ "date", EMAIL_SORT_DATE },
{ "date-received", EMAIL_SORT_DATE_RECEIVED },
{ "from", EMAIL_SORT_FROM },
{ "label", EMAIL_SORT_LABEL },
{ "score", EMAIL_SORT_SCORE },
{ "size", EMAIL_SORT_SIZE },
{ "spam", EMAIL_SORT_SPAM },
{ "subject", EMAIL_SORT_SUBJECT },
{ "threads", EMAIL_SORT_THREADS },
{ "to", EMAIL_SORT_TO },
{ "unsorted", EMAIL_SORT_UNSORTED },
{ "date-sent", EMAIL_SORT_DATE },
{ "mailbox-order", EMAIL_SORT_UNSORTED },
{ NULL, 0 },
}
@ EMAIL_SORT_THREADS
Sort by email threads.
Definition sort.h:62

Sort methods for '$sort' for the index.

Definition at line 86 of file mutt_config.c.

86 {
87 // clang-format off
88 { "date", EMAIL_SORT_DATE },
89 { "date-received", EMAIL_SORT_DATE_RECEIVED },
90 { "from", EMAIL_SORT_FROM },
91 { "label", EMAIL_SORT_LABEL },
92 { "score", EMAIL_SORT_SCORE },
93 { "size", EMAIL_SORT_SIZE },
94 { "spam", EMAIL_SORT_SPAM },
95 { "subject", EMAIL_SORT_SUBJECT },
96 { "threads", EMAIL_SORT_THREADS },
97 { "to", EMAIL_SORT_TO },
98 { "unsorted", EMAIL_SORT_UNSORTED },
99 // Compatibility
100 { "date-sent", EMAIL_SORT_DATE },
101 { "mailbox-order", EMAIL_SORT_UNSORTED },
102 { NULL, 0 },
103 // clang-format on
104};

◆ AttachFormatDef

const struct ExpandoDefinition AttachFormatDef[]
static
Initial value:
= {
{ "*", "padding-soft", ED_GLOBAL, ED_GLO_PADDING_SOFT, node_padding_parse },
{ ">", "padding-hard", ED_GLOBAL, ED_GLO_PADDING_HARD, node_padding_parse },
{ "|", "padding-eol", ED_GLOBAL, ED_GLO_PADDING_EOL, node_padding_parse },
{ "c", "charset-convert", ED_BODY, ED_BOD_CHARSET_CONVERT, NULL },
{ "C", "charset", ED_ATTACH, ED_ATT_CHARSET, NULL },
{ "d", "description", ED_BODY, ED_BOD_DESCRIPTION, NULL },
{ "D", "deleted", ED_BODY, ED_BOD_DELETED, NULL },
{ "e", "mime-encoding", ED_BODY, ED_BOD_MIME_ENCODING, NULL },
{ "f", "file", ED_BODY, ED_BOD_FILE, NULL },
{ "F", "file-disposition", ED_BODY, ED_BOD_FILE_DISPOSITION, NULL },
{ "I", "disposition", ED_BODY, ED_BOD_DISPOSITION, NULL },
{ "m", "mime-major", ED_BODY, ED_BOD_MIME_MAJOR, NULL },
{ "M", "mime-minor", ED_BODY, ED_BOD_MIME_MINOR, NULL },
{ "n", "number", ED_ATTACH, ED_ATT_NUMBER, NULL },
{ "Q", "attach-qualifies", ED_BODY, ED_BOD_ATTACH_QUALIFIES, NULL },
{ "s", "file-size", ED_BODY, ED_BOD_FILE_SIZE, NULL },
{ "t", "tagged", ED_BODY, ED_BOD_TAGGED, NULL },
{ "T", "tree", ED_ATTACH, ED_ATT_TREE, NULL },
{ "u", "unlink", ED_BODY, ED_BOD_UNLINK, NULL },
{ "X", "attach-count", ED_BODY, ED_BOD_ATTACH_COUNT, NULL },
{ NULL, NULL, 0, -1, NULL }
}
@ ED_ATT_NUMBER
AttachPtr.num.
Definition attach.h:55
@ ED_ATT_TREE
AttachPtr.tree.
Definition attach.h:56
@ ED_ATT_CHARSET
AttachPtr.body.
Definition attach.h:54
@ ED_BODY
Body ED_BOD_ ExpandoDataBody.
Definition domain.h:38
@ ED_ATTACH
Attach ED_ATT_ ExpandoDataAttach.
Definition domain.h:36
@ ED_BOD_DESCRIPTION
Body.description.
Definition body.h:106
@ ED_BOD_CHARSET_CONVERT
Body.type.
Definition body.h:104
@ ED_BOD_DELETED
Body.deleted.
Definition body.h:105
@ ED_BOD_UNLINK
Body.unlink.
Definition body.h:115
@ ED_BOD_FILE_SIZE
Body.filename.
Definition body.h:110
@ ED_BOD_DISPOSITION
Body.disposition.
Definition body.h:107
@ ED_BOD_ATTACH_QUALIFIES
Body.attach_qualifies.
Definition body.h:103
@ ED_BOD_MIME_MAJOR
Body.type, Body.xtype.
Definition body.h:112
@ ED_BOD_TAGGED
Body.tagged.
Definition body.h:114
@ ED_BOD_ATTACH_COUNT
Body.attach_count.
Definition body.h:102
@ ED_BOD_FILE
Body.filename.
Definition body.h:108
@ ED_BOD_MIME_MINOR
Body.subtype.
Definition body.h:113
@ ED_BOD_FILE_DISPOSITION
Body.d_filename.
Definition body.h:109
@ ED_BOD_MIME_ENCODING
Body.encoding.
Definition body.h:111

Expando definitions.

Config:

  • $attach_format

Definition at line 129 of file mutt_config.c.

129 {
130 // clang-format off
131 { "*", "padding-soft", ED_GLOBAL, ED_GLO_PADDING_SOFT, node_padding_parse },
132 { ">", "padding-hard", ED_GLOBAL, ED_GLO_PADDING_HARD, node_padding_parse },
133 { "|", "padding-eol", ED_GLOBAL, ED_GLO_PADDING_EOL, node_padding_parse },
134 { "c", "charset-convert", ED_BODY, ED_BOD_CHARSET_CONVERT, NULL },
135 { "C", "charset", ED_ATTACH, ED_ATT_CHARSET, NULL },
136 { "d", "description", ED_BODY, ED_BOD_DESCRIPTION, NULL },
137 { "D", "deleted", ED_BODY, ED_BOD_DELETED, NULL },
138 { "e", "mime-encoding", ED_BODY, ED_BOD_MIME_ENCODING, NULL },
139 { "f", "file", ED_BODY, ED_BOD_FILE, NULL },
140 { "F", "file-disposition", ED_BODY, ED_BOD_FILE_DISPOSITION, NULL },
141 { "I", "disposition", ED_BODY, ED_BOD_DISPOSITION, NULL },
142 { "m", "mime-major", ED_BODY, ED_BOD_MIME_MAJOR, NULL },
143 { "M", "mime-minor", ED_BODY, ED_BOD_MIME_MINOR, NULL },
144 { "n", "number", ED_ATTACH, ED_ATT_NUMBER, NULL },
145 { "Q", "attach-qualifies", ED_BODY, ED_BOD_ATTACH_QUALIFIES, NULL },
146 { "s", "file-size", ED_BODY, ED_BOD_FILE_SIZE, NULL },
147 { "t", "tagged", ED_BODY, ED_BOD_TAGGED, NULL },
148 { "T", "tree", ED_ATTACH, ED_ATT_TREE, NULL },
149 { "u", "unlink", ED_BODY, ED_BOD_UNLINK, NULL },
150 { "X", "attach-count", ED_BODY, ED_BOD_ATTACH_COUNT, NULL },
151 { NULL, NULL, 0, -1, NULL }
152 // clang-format on
153};

◆ IndexFormatDefNoPadding

const struct ExpandoDefinition* const IndexFormatDefNoPadding = &(IndexFormatDef[3])
static

IndexFormatDefNoPadding - Index format definitions, without padding.

Definition at line 371 of file mutt_config.c.

◆ StatusFormatDefNoPadding

const struct ExpandoDefinition* const StatusFormatDefNoPadding = &(StatusFormatDef[3])

StatusFormatDefNoPadding - Status format definitions, without padding.

Definition at line 374 of file mutt_config.c.

◆ MainVars

struct ConfigDef MainVars[]
static

General Config definitions for NeoMutt.

Definition at line 379 of file mutt_config.c.

379 {
380 // clang-format off
381 { "abort_backspace", DT_BOOL, true, 0, NULL,
382 "Hitting backspace against an empty prompt aborts the prompt"
383 },
384 { "abort_key", DT_STRING|D_NOT_EMPTY|D_ON_STARTUP, IP "\007", 0, NULL,
385 "String representation of key to abort prompts"
386 },
387 { "ascii_chars", DT_BOOL, false, 0, NULL,
388 "Use plain ASCII characters, when drawing email threads"
389 },
391 "If a message is missing a character set, assume this character set"
392 },
393 { "attach_format", DT_EXPANDO|D_NOT_EMPTY, IP "%u%D%I %t%4n %T%d %> [%.7m/%.10M, %.6e%<C?, %C>, %s] ", IP &AttachFormatDef, NULL,
394 "printf-like format string for the attachment menu"
395 },
396 { "attach_save_dir", DT_PATH|D_PATH_DIR, IP "./", 0, NULL,
397 "Default directory where attachments are saved"
398 },
399 { "attach_save_without_prompting", DT_BOOL, false, 0, NULL,
400 "If true, then don't prompt to save"
401 },
402 { "attach_sep", DT_STRING, IP "\n", 0, NULL,
403 "Separator to add between saved/printed/piped attachments"
404 },
405 { "attach_split", DT_BOOL, true, 0, NULL,
406 "Save/print/pipe tagged messages individually"
407 },
408 { "auto_edit", DT_BOOL, false, 0, NULL,
409 "Skip the initial compose menu and edit the email"
410 },
411 { "auto_tag", DT_BOOL, false, 0, NULL,
412 "Automatically apply actions to all tagged messages"
413 },
414 { "beep", DT_BOOL, true, 0, NULL,
415 "Make a noise when an error occurs"
416 },
417 { "beep_new", DT_BOOL, false, 0, NULL,
418 "Make a noise when new mail arrives"
419 },
420 { "bounce", DT_QUAD, MUTT_ASKYES, 0, NULL,
421 "Confirm before bouncing a message"
422 },
423 { "braille_friendly", DT_BOOL, false, 0, NULL,
424 "Move the cursor to the beginning of the line"
425 },
427 "Default character set for displaying text on screen"
428 },
429 { "collapse_flagged", DT_BOOL, true, 0, NULL,
430 "Prevent the collapse of threads with flagged emails"
431 },
432 { "collapse_unread", DT_BOOL, true, 0, NULL,
433 "Prevent the collapse of threads with unread emails"
434 },
435 { "color_directcolor", DT_BOOL|D_ON_STARTUP, false, 0, NULL,
436 "Use 24bit colors (aka truecolor aka directcolor)"
437 },
438 { "config_charset", DT_STRING, 0, 0, charset_validator,
439 "Character set that the config files are in"
440 },
441 { "confirm_append", DT_BOOL, true, 0, NULL,
442 "Confirm before appending emails to a mailbox"
443 },
444 { "confirm_create", DT_BOOL, true, 0, NULL,
445 "Confirm before creating a new mailbox"
446 },
447 { "copy_decode_weed", DT_BOOL, false, 0, NULL,
448 "Controls whether to weed headers when copying or saving emails"
449 },
450 { "count_alternatives", DT_BOOL, false, 0, NULL,
451 "Recurse inside multipart/alternatives while counting attachments"
452 },
453 { "crypt_chars", DT_MBTABLE, IP "SPsK ", 0, NULL,
454 "User-configurable crypto flags: signed, encrypted etc."
455 },
456 { "date_format", DT_STRING|D_NOT_EMPTY, IP "!%a, %b %d, %Y at %I:%M:%S%p %Z", 0, NULL,
457 "strftime format string for the `%d` expando"
458 },
459 { "debug_file", DT_PATH|D_PATH_FILE, IP "~/.neomuttdebug", 0, NULL,
460 "File to save debug logs"
461 },
462 { "debug_level", DT_NUMBER, 0, 0, level_validator,
463 "Logging level for debug logs"
464 },
465 { "default_hook", DT_STRING, IP "~f %s !~P | (~P ~C %s)", 0, NULL,
466 "Pattern to use for hooks that only have a simple regex"
467 },
468 { "delete", DT_QUAD, MUTT_ASKYES, 0, NULL,
469 "Really delete messages, when the mailbox is closed"
470 },
471 { "delete_untag", DT_BOOL, true, 0, NULL,
472 "Untag messages when they are marked for deletion"
473 },
474 { "digest_collapse", DT_BOOL, true, 0, NULL,
475 "Hide the subparts of a multipart/digest"
476 },
477 { "duplicate_threads", DT_BOOL, true, 0, NULL,
478 "Highlight messages with duplicated message IDs"
479 },
480 { "editor", DT_STRING|D_NOT_EMPTY|D_STRING_COMMAND, 0, 0, NULL,
481 "External command to use as an email editor"
482 },
483 { "flag_chars", DT_MBTABLE, IP "*!DdrONon- ", 0, NULL,
484 "User-configurable index flags: tagged, new, etc"
485 },
486 { "flag_safe", DT_BOOL, false, 0, NULL,
487 "Protect flagged messages from deletion"
488 },
489 { "folder", DT_STRING|D_STRING_MAILBOX, IP "~/Mail", 0, NULL,
490 "Base folder for a set of mailboxes"
491 },
492 { "force_name", DT_BOOL, false, 0, NULL,
493 "Save outgoing mail in a folder of their name"
494 },
495 { "forward_decode", DT_BOOL, true, 0, NULL,
496 "Decode the message when forwarding it"
497 },
498 { "forward_quote", DT_BOOL, false, 0, NULL,
499 "Automatically quote a forwarded message using `$indent_string`"
500 },
501 { "from", DT_ADDRESS, 0, 0, NULL,
502 "Default 'From' address to use, if isn't otherwise set"
503 },
504 { "from_chars", DT_MBTABLE, 0, 0, NULL,
505 "User-configurable index flags: to address, cc address, etc"
506 },
507 { "gecos_mask", DT_REGEX, IP "^[^,]*", 0, NULL,
508 "Regex for parsing GECOS field of /etc/passwd"
509 },
510 { "header", DT_BOOL, false, 0, NULL,
511 "Include the message headers in the reply email (Weed applies)"
512 },
513 { "hide_limited", DT_BOOL, false, 0, NULL,
514 "Don't indicate hidden messages, in the thread tree"
515 },
516 { "hide_missing", DT_BOOL, true, 0, NULL,
517 "Don't indicate missing messages, in the thread tree"
518 },
519 { "hide_thread_subject", DT_BOOL, true, 0, NULL,
520 "Hide subjects that are similar to that of the parent message"
521 },
522 { "hide_top_limited", DT_BOOL, false, 0, NULL,
523 "Don't indicate hidden top message, in the thread tree"
524 },
525 { "hide_top_missing", DT_BOOL, true, 0, NULL,
526 "Don't indicate missing top message, in the thread tree"
527 },
528 { "honor_disposition", DT_BOOL, false, 0, NULL,
529 "Don't display MIME parts inline if they have a disposition of 'attachment'"
530 },
531 { "hostname", DT_STRING, 0, 0, NULL,
532 "Fully-qualified domain name of this machine"
533 },
534 { "implicit_auto_view", DT_BOOL, false, 0, NULL,
535 "Display MIME attachments inline if a 'copiousoutput' mailcap entry exists"
536 },
537 { "include_encrypted", DT_BOOL, false, 0, NULL,
538 "Whether to include encrypted content when replying"
539 },
540 { "include_only_first", DT_BOOL, false, 0, NULL,
541 "Only include the first attachment when replying"
542 },
543 { "indent_string", DT_EXPANDO, IP "> ", IP IndexFormatDefNoPadding, NULL,
544 "String used to indent 'reply' text"
545 },
546 { "index_format", DT_EXPANDO|D_NOT_EMPTY, IP "%4C %Z %{%b %d} %-15.15L (%<l?%4l&%4c>) %s", IP &IndexFormatDef, NULL,
547 "printf-like format string for the index menu (emails)"
548 },
549 { "keep_flagged", DT_BOOL, false, 0, NULL,
550 "Don't move flagged messages from `$spool_file` to `$mbox`"
551 },
552 { "local_date_header", DT_BOOL, true, 0, NULL,
553 "Convert the date in the Date header of sent emails into local timezone, UTC otherwise"
554 },
555 { "mail_check", DT_NUMBER|D_INTEGER_NOT_NEGATIVE, 5, 0, NULL,
556 "Number of seconds before NeoMutt checks for new mail"
557 },
558 { "mail_check_recent", DT_BOOL, true, 0, NULL,
559 "Notify the user about new mail since the last time the mailbox was opened"
560 },
561 { "mail_check_stats", DT_BOOL, false, 0, NULL,
562 "Periodically check for new mail"
563 },
564 { "mail_check_stats_interval", DT_NUMBER|D_INTEGER_NOT_NEGATIVE, 60, 0, NULL,
565 "How often to check for new mail"
566 },
567 { "mailcap_path", DT_SLIST|D_SLIST_SEP_COLON, IP "~/.mailcap:" PKGDATADIR "/mailcap:" SYSCONFDIR "/mailcap:/etc/mailcap:/usr/etc/mailcap:/usr/local/etc/mailcap", 0, NULL,
568 "List of mailcap files (colon-separated)"
569 },
570 { "mailcap_sanitize", DT_BOOL, true, 0, NULL,
571 "Restrict the possible characters in mailcap expandos"
572 },
573 { "mark_old", DT_BOOL, true, 0, NULL,
574 "Mark new emails as old when leaving the mailbox"
575 },
576 { "mbox", DT_STRING|D_STRING_MAILBOX, IP "~/mbox", 0, NULL,
577 "Folder that receives read emails (see Move)"
578 },
579 { "mbox_type", DT_ENUM, MUTT_MBOX, IP &MboxTypeDef, NULL,
580 "Default type for creating new mailboxes"
581 },
582 { "message_cache_clean", DT_BOOL, false, 0, NULL,
583 "(imap/pop) Clean out obsolete entries from the message cache"
584 },
585 { "message_cache_dir", DT_PATH|D_PATH_DIR, 0, 0, NULL,
586 "(imap/pop) Directory for the message cache"
587 },
588 { "message_format", DT_EXPANDO|D_NOT_EMPTY, IP "%s", IP &IndexFormatDef, NULL,
589 "printf-like format string for listing attached messages"
590 },
591 { "meta_key", DT_BOOL, false, 0, NULL,
592 "Interpret 'ALT-x' as 'ESC-x'"
593 },
594 { "mime_forward", DT_QUAD, MUTT_NO, 0, NULL,
595 "Forward a message as a 'message/RFC822' MIME part"
596 },
597 { "mime_forward_rest", DT_QUAD, MUTT_YES, 0, NULL,
598 "Forward all attachments, even if they can't be decoded"
599 },
600 { "move", DT_QUAD, MUTT_NO, 0, NULL,
601 "Move emails from `$spool_file` to `$mbox` when read"
602 },
603 { "narrow_tree", DT_BOOL, false, 0, NULL,
604 "Draw a narrower thread tree in the index"
605 },
606 { "new_mail_command", DT_EXPANDO|D_STRING_COMMAND, 0, IP StatusFormatDefNoPadding, NULL,
607 "External command to run when new mail arrives"
608 },
609 { "pipe_decode", DT_BOOL, false, 0, NULL,
610 "Decode the message when piping it"
611 },
612 { "pipe_decode_weed", DT_BOOL, true, 0, NULL,
613 "Control whether to weed headers when piping an email"
614 },
615 { "pipe_sep", DT_STRING, IP "\n", 0, NULL,
616 "Separator to add between multiple piped messages"
617 },
618 { "pipe_split", DT_BOOL, false, 0, NULL,
619 "Run the pipe command on each message separately"
620 },
621 { "postponed", DT_STRING|D_STRING_MAILBOX, IP "~/postponed", 0, NULL,
622 "Folder to store postponed messages"
623 },
624 { "preferred_languages", DT_SLIST|D_SLIST_SEP_COMMA, 0, 0, NULL,
625 "List of Preferred Languages for multilingual MIME (comma-separated)"
626 },
627 { "print", DT_QUAD, MUTT_ASKNO, 0, NULL,
628 "Confirm before printing a message"
629 },
630 { "print_command", DT_STRING|D_STRING_COMMAND, IP "lpr", 0, NULL,
631 "External command to print a message"
632 },
633 { "print_decode", DT_BOOL, true, 0, NULL,
634 "Decode message before printing it"
635 },
636 { "print_decode_weed", DT_BOOL, true, 0, NULL,
637 "Control whether to weed headers when printing an email"
638 },
639 { "print_split", DT_BOOL, false, 0, NULL,
640 "Print multiple messages separately"
641 },
642 { "quit", DT_QUAD, MUTT_YES, 0, NULL,
643 "Prompt before exiting NeoMutt"
644 },
645 { "quote_regex", DT_REGEX, IP "^([ \t]*[|>:}#])+", 0, NULL,
646 "Regex to match quoted text in a reply"
647 },
648 { "read_only", DT_BOOL, false, 0, NULL,
649 "Open folders in read-only mode"
650 },
651 { "real_name", DT_STRING, 0, 0, NULL,
652 "Real name of the user"
653 },
654 { "record", DT_STRING|D_STRING_MAILBOX, IP "~/sent", 0, NULL,
655 "Folder to save 'sent' messages"
656 },
657 { "reflow_space_quotes", DT_BOOL, true, 0, NULL,
658 "Insert spaces into reply quotes for 'format=flowed' messages"
659 },
660 { "reflow_text", DT_BOOL, true, 0, NULL,
661 "Reformat paragraphs of 'format=flowed' text"
662 },
663 { "reflow_wrap", DT_NUMBER, 78, 0, NULL,
664 "Maximum paragraph width for reformatting 'format=flowed' text"
665 },
666 { "resolve", DT_BOOL, true, 0, NULL,
667 "Move to the next email whenever a command modifies an email"
668 },
669 { "resume_edited_draft_files", DT_BOOL, true, 0, NULL,
670 "Resume editing previously saved draft files"
671 },
672 { "save_address", DT_BOOL, false, 0, NULL,
673 "Use sender's full address as a default save folder"
674 },
675 { "save_empty", DT_BOOL, true, 0, NULL,
676 "(mbox,mmdf) Preserve empty mailboxes"
677 },
678 { "save_name", DT_BOOL, false, 0, NULL,
679 "Save outgoing message to mailbox of recipient's name if it exists"
680 },
681 { "score", DT_BOOL, true, 0, NULL,
682 "Use message scoring"
683 },
684 { "score_threshold_delete", DT_NUMBER, -1, 0, NULL,
685 "Messages with a lower score will be automatically deleted"
686 },
687 { "score_threshold_flag", DT_NUMBER, 9999, 0, NULL,
688 "Messages with a greater score will be automatically flagged"
689 },
690 { "score_threshold_read", DT_NUMBER, -1, 0, NULL,
691 "Messages with a lower score will be automatically marked read"
692 },
693 { "send_charset", DT_SLIST|D_SLIST_SEP_COLON|D_SLIST_ALLOW_EMPTY|D_CHARSET_STRICT, IP "us-ascii:iso-8859-1:utf-8", 0, charset_slist_validator,
694 "Character sets for outgoing mail"
695 },
696 { "shell", DT_STRING|D_STRING_COMMAND, IP "/bin/sh", 0, NULL,
697 "External command to run subshells in"
698 },
699 { "show_multipart_alternative", DT_STRING, 0, 0, multipart_validator,
700 "How to display 'multipart/alternative' MIME parts"
701 },
702 { "simple_search", DT_STRING, IP "~f %s | ~s %s", 0, NULL,
703 "Pattern to search for when search doesn't contain ~'s"
704 },
705 { "size_show_bytes", DT_BOOL, false, 0, NULL,
706 "Show smaller sizes in bytes"
707 },
708 { "size_show_fractions", DT_BOOL, true, 0, NULL,
709 "Show size fractions with a single decimal place"
710 },
711 { "size_show_mb", DT_BOOL, true, 0, NULL,
712 "Show sizes in megabytes for sizes greater than 1 megabyte"
713 },
714 { "size_units_on_left", DT_BOOL, false, 0, NULL,
715 "Show the units as a prefix to the size"
716 },
717 { "sleep_time", DT_NUMBER|D_INTEGER_NOT_NEGATIVE, 1, 0, NULL,
718 "Time to pause after certain info messages"
719 },
721 "Sort method for the index"
722 },
724 "Secondary sort method for the index"
725 },
726 { "sort_re", DT_BOOL, true, 0, NULL,
727 "Whether $reply_regex must be matched when not $strict_threads"
728 },
729 { "spool_file", DT_STRING|D_STRING_MAILBOX, 0, 0, NULL,
730 "Inbox"
731 },
732 { "status_chars", DT_MBTABLE, IP "-*%A", 0, NULL,
733 "Indicator characters for the status bar"
734 },
735 { "status_on_top", DT_BOOL, false, 0, NULL,
736 "Display the status bar at the top"
737 },
738 { "strict_threads", DT_BOOL, false, 0, NULL,
739 "Thread messages using 'In-Reply-To' and 'References' headers"
740 },
741 { "suspend", DT_BOOL, true, 0, NULL,
742 "Allow the user to suspend NeoMutt using '^Z'"
743 },
744 { "text_flowed", DT_BOOL, false, 0, NULL,
745 "Generate 'format=flowed' messages"
746 },
747 { "thread_received", DT_BOOL, false, 0, NULL,
748 "Sort threaded messages by their received date"
749 },
750 { "timeout", DT_NUMBER|D_INTEGER_NOT_NEGATIVE, 600, 0, NULL,
751 "Time to wait for user input in menus"
752 },
753 { "tmp_dir", DT_PATH|D_PATH_DIR|D_NOT_EMPTY, IP TMPDIR, 0, NULL,
754 "Directory for temporary files"
755 },
756 { "to_chars", DT_MBTABLE, IP " +TCFLR", 0, NULL,
757 "Indicator characters for the 'To' field in the index"
758 },
759 { "trash", DT_STRING|D_STRING_MAILBOX, 0, 0, NULL,
760 "Folder to put deleted emails"
761 },
762 { "ts_enabled", DT_BOOL, false, 0, NULL,
763 "Allow NeoMutt to set the terminal status line and icon"
764 },
765 // L10N: $ts_icon_format default format
766 { "ts_icon_format", DT_EXPANDO|D_L10N_STRING, IP N_("M%<n?AIL&ail>"), IP StatusFormatDefNoPadding, NULL,
767 "printf-like format string for the terminal's icon title"
768 },
769 // L10N: $ts_status_format default format
770 { "ts_status_format", DT_EXPANDO|D_L10N_STRING, IP N_("NeoMutt with %<m?%m messages&no messages>%<n? [%n NEW]>"), IP StatusFormatDefNoPadding, NULL,
771 "printf-like format string for the terminal's status (window title)"
772 },
773 { "use_domain", DT_BOOL, true, 0, NULL,
774 "Qualify local addresses using this domain"
775 },
776 { "use_threads", DT_ENUM, UT_UNSET, IP &UseThreadsTypeDef, NULL,
777 "Whether to use threads for the index"
778 },
779 { "wait_key", DT_BOOL, true, 0, NULL,
780 "Prompt to press a key after running external commands"
781 },
782 { "weed", DT_BOOL, true, 0, NULL,
783 "Filter headers when displaying/forwarding/printing/replying"
784 },
785 { "wrap", DT_NUMBER, 0, 0, NULL,
786 "Width to wrap text in the pager"
787 },
788 { "wrap_search", DT_BOOL, true, 0, NULL,
789 "Wrap around when the search hits the end"
790 },
791
792 { "cursor_overlay", D_INTERNAL_DEPRECATED|DT_BOOL, 0, IP "2020-07-20" },
793 { "escape", D_INTERNAL_DEPRECATED|DT_STRING, 0, IP "2021-03-18" },
794 { "ignore_linear_white_space", D_INTERNAL_DEPRECATED|DT_BOOL, 0, IP "2021-03-18" },
795 { "mixmaster", D_INTERNAL_DEPRECATED|DT_STRING, 0, IP "2024-05-30" },
796 { "mix_entry_format", D_INTERNAL_DEPRECATED|DT_EXPANDO,0, IP "2024-05-30" },
797 { "visual", D_INTERNAL_DEPRECATED|DT_STRING, 0, IP "2021-03-18" },
798
799 { "autoedit", DT_SYNONYM, IP "auto_edit", IP "2021-03-21" },
800 { "confirmappend", DT_SYNONYM, IP "confirm_append", IP "2021-03-21" },
801 { "confirmcreate", DT_SYNONYM, IP "confirm_create", IP "2021-03-21" },
802 { "edit_hdrs", DT_SYNONYM, IP "edit_headers", IP "2021-03-21" },
803 { "forw_decode", DT_SYNONYM, IP "forward_decode", IP "2021-03-21" },
804 { "forw_quote", DT_SYNONYM, IP "forward_quote", IP "2021-03-21" },
805 { "hdr_format", DT_SYNONYM, IP "index_format", IP "2021-03-21" },
806 { "implicit_autoview", DT_SYNONYM, IP "implicit_auto_view", IP "2023-01-25" },
807 { "include_onlyfirst", DT_SYNONYM, IP "include_only_first", IP "2021-03-21" },
808 { "indent_str", DT_SYNONYM, IP "indent_string", IP "2021-03-21" },
809 { "message_cachedir", DT_SYNONYM, IP "message_cache_dir", IP "2023-01-25" },
810 { "mime_fwd", DT_SYNONYM, IP "mime_forward", IP "2021-03-21" },
811 { "msg_format", DT_SYNONYM, IP "message_format", IP "2021-03-21" },
812 { "print_cmd", DT_SYNONYM, IP "print_command", IP "2021-03-21" },
813 { "quote_regexp", DT_SYNONYM, IP "quote_regex", IP "2021-03-21" },
814 { "realname", DT_SYNONYM, IP "real_name", IP "2021-03-21" },
815 { "spoolfile", DT_SYNONYM, IP "spool_file", IP "2021-03-21" },
816 { "tmpdir", DT_SYNONYM, IP "tmp_dir", IP "2023-01-25" },
817 { "xterm_icon", DT_SYNONYM, IP "ts_icon_format", IP "2021-03-21" },
818 { "xterm_set_titles", DT_SYNONYM, IP "ts_enabled", IP "2021-03-21" },
819 { "xterm_title", DT_SYNONYM, IP "ts_status_format", IP "2021-03-21" },
820
821 { "devel_security", DT_BOOL, false, 0, NULL,
822 "Devel feature: Security -- https://github.com/neomutt/neomutt/discussions/4251"
823 },
824
825 { NULL },
826 // clang-format on
827};
#define IP
Definition set.h:52
@ MUTT_MBOX
'mbox' Mailbox type
Definition mailbox.h:45
const struct Mapping SortMethods[]
Sort methods for '$sort' for the index.
Definition mutt_config.c:86
int sort_validator(const struct ConfigDef *cdef, intptr_t value, struct Buffer *err)
Validate the "sort" config variable - Implements ConfigDef::validator() -.
static int multipart_validator(const struct ConfigDef *cdef, intptr_t value, struct Buffer *err)
Validate the "show_multipart_alternative" config variable - Implements ConfigDef::validator() -.
int charset_validator(const struct ConfigDef *cdef, intptr_t value, struct Buffer *err)
Validate the "charset" config variables - Implements ConfigDef::validator() -.
Definition charset.c:45
int level_validator(const struct ConfigDef *cdef, intptr_t value, struct Buffer *err)
Validate the "debug_level" config variable - Implements ConfigDef::validator() -.
int charset_slist_validator(const struct ConfigDef *cdef, intptr_t value, struct Buffer *err)
Validate the multiple "charset" config variables - Implements ConfigDef::validator() -.
Definition charset.c:84
const struct ExpandoDefinition IndexFormatDef[]
Expando definitions.
#define N_(a)
Definition message.h:32
const struct ExpandoDefinition *const StatusFormatDefNoPadding
StatusFormatDefNoPadding - Status format definitions, without padding.
static const struct ExpandoDefinition *const IndexFormatDefNoPadding
IndexFormatDefNoPadding - Index format definitions, without padding.
static const struct Mapping SortAuxMethods[]
Sort methods for '$sort_aux' for the index.
Definition mutt_config.c:63
static const struct ExpandoDefinition AttachFormatDef[]
Expando definitions.
const struct EnumDef UseThreadsTypeDef
Data for the $use_threads enumeration.
Definition mutt_thread.c:65
@ UT_UNSET
Not yet set by user, stick to legacy semantics.
Definition mutt_thread.h:97
const struct EnumDef MboxTypeDef
Data for the $mbox_type enumeration.
Definition mx.c:92
@ MUTT_ASKNO
Ask the user, defaulting to 'No'.
Definition quad.h:40
@ MUTT_NO
User answered 'No', or assume 'No'.
Definition quad.h:38
@ MUTT_ASKYES
Ask the user, defaulting to 'Yes'.
Definition quad.h:41
@ MUTT_YES
User answered 'Yes', or assume 'Yes'.
Definition quad.h:39
#define D_SLIST_SEP_COMMA
Slist items are comma-separated.
Definition types.h:110
#define D_CHARSET_SINGLE
Flag for charset_validator to allow only one charset.
Definition types.h:83
#define D_SLIST_SEP_COLON
Slist items are colon-separated.
Definition types.h:111
#define D_INTERNAL_DEPRECATED
Config item shouldn't be used any more.
Definition types.h:87
#define D_STRING_COMMAND
A command.
Definition types.h:98
#define D_SLIST_ALLOW_EMPTY
Slist may be empty.
Definition types.h:115
#define D_L10N_STRING
String can be localised.
Definition types.h:81
#define D_PATH_DIR
Path is a directory.
Definition types.h:102
#define D_CHARSET_STRICT
Flag for charset_validator to use strict char check.
Definition types.h:84
#define D_PATH_FILE
Path is a file.
Definition types.h:103
@ DT_NUMBER
a number
Definition types.h:38
@ DT_SLIST
a list of strings
Definition types.h:42
@ DT_BOOL
boolean option
Definition types.h:32
@ DT_QUAD
quad-option (no/yes/ask-no/ask-yes)
Definition types.h:40
@ DT_SYNONYM
synonym for another variable
Definition types.h:45
@ DT_STRING
a string
Definition types.h:44
@ DT_SORT
sorting methods
Definition types.h:43
@ DT_MBTABLE
multibyte char table
Definition types.h:36
@ DT_ADDRESS
e-mail address
Definition types.h:31
@ DT_EXPANDO
an expando
Definition types.h:34
@ DT_ENUM
an enumeration
Definition types.h:33
@ DT_REGEX
regular expressions
Definition types.h:41
@ DT_PATH
a path to a file/directory
Definition types.h:39
#define D_STRING_MAILBOX
Don't perform path expansions.
Definition types.h:97
#define D_SORT_LAST
Sort flag for -last prefix.
Definition types.h:118
#define D_SORT_REVERSE
Sort flag for -reverse prefix.
Definition types.h:119
#define D_NOT_EMPTY
Empty strings are not allowed.
Definition types.h:79
#define D_INTEGER_NOT_NEGATIVE
Negative numbers are not allowed.
Definition types.h:100
#define D_ON_STARTUP
May only be set at startup.
Definition types.h:78

◆ MainVarsIdn

struct ConfigDef MainVarsIdn[]
static
Initial value:
= {
{ "idn_decode", DT_BOOL, true, 0, NULL,
"(idn) Decode international domain names"
},
{ "idn_encode", DT_BOOL, true, 0, NULL,
"(idn) Encode international domain names"
},
{ NULL },
}

IDN Config definitions.

Definition at line 833 of file mutt_config.c.

833 {
834 // clang-format off
835 { "idn_decode", DT_BOOL, true, 0, NULL,
836 "(idn) Decode international domain names"
837 },
838 { "idn_encode", DT_BOOL, true, 0, NULL,
839 "(idn) Encode international domain names"
840 },
841 { NULL },
842 // clang-format on
843};