NeoMutt  2024-12-12-14-g7b49f7
Teaching an old dog new tricks
DOXYGEN
Loading...
Searching...
No Matches
config.c
Go to the documentation of this file.
1
29#include "config.h"
30#include <stdbool.h>
31#include <stddef.h>
32#include "mutt/lib.h"
33#include "config/lib.h"
34
38static struct ConfigDef EmailVars[] = {
39 // clang-format off
40 { "auto_subscribe", DT_BOOL, false, 0, NULL,
41 "Automatically check if the user is subscribed to a mailing list"
42 },
43 { "hidden_tags", DT_SLIST|D_SLIST_SEP_COMMA, IP "unread,draft,flagged,passed,replied,attachment,signed,encrypted", 0, NULL,
44 "List of tags that shouldn't be displayed on screen (comma-separated)"
45 },
46 // L10N: $reply_regex default format
47 //
48 // This is a regular expression that matches reply subject lines.
49 // By default, it only matches an initial "Re: ", which is the
50 // standardized Latin prefix.
51 //
52 // However, many locales have other prefixes that are commonly used
53 // too, such as Aw in Germany. To add other prefixes, modify the first
54 // parenthesized expression, such as:
55 // "^(re|aw)
56 // you can add multiple values, for example:
57 // "^(re|aw|sv)
58 //
59 // Important:
60 // - Use all lower case letters.
61 // - Don't remove the 're' prefix from the list of choices.
62 // - Please test the value you use inside Mutt. A mistake here will break
63 // NeoMutt's threading behavior. Note: the header cache can interfere with
64 // testing, so be sure to test with $header_cache unset.
65 { "reply_regex", DT_REGEX|D_L10N_STRING, IP N_("^((re)(\\[[0-9]+\\])*:[ \t]*)*"), 0, NULL,
66 "Regex to match message reply subjects like 're: '"
67 },
68 { "reverse_alias", DT_BOOL, false, 0, NULL,
69 "Display the alias in the index, rather than the message's sender"
70 },
71 { "rfc2047_parameters", DT_BOOL, true, 0, NULL,
72 "Decode RFC2047-encoded MIME parameters"
73 },
74 { "spam_separator", DT_STRING, IP ",", 0, NULL,
75 "Separator for multiple spam headers"
76 },
77
78 { "reply_regexp", DT_SYNONYM, IP "reply_regex", IP "2021-03-21" },
79 { NULL },
80 // clang-format on
81};
82
87{
89}
Convenience wrapper for the config headers.
bool cs_register_variables(const struct ConfigSet *cs, struct ConfigDef vars[])
Register a set of config items.
Definition: set.c:281
#define IP
Definition: set.h:54
static struct ConfigDef EmailVars[]
Config definitions for the Email library.
Definition: config.c:38
bool config_init_email(struct ConfigSet *cs)
Register email config variables - Implements module_init_config_t -.
Definition: config.c:86
Convenience wrapper for the library headers.
#define N_(a)
Definition: message.h:32
Definition: set.h:64
Container for lots of config items.
Definition: set.h:252
#define D_SLIST_SEP_COMMA
Slist items are comma-separated.
Definition: types.h:111
#define D_L10N_STRING
String can be localised.
Definition: types.h:82
@ DT_SLIST
a list of strings
Definition: types.h:43
@ DT_BOOL
boolean option
Definition: types.h:32
@ DT_SYNONYM
synonym for another variable
Definition: types.h:46
@ DT_STRING
a string
Definition: types.h:45
@ DT_REGEX
regular expressions
Definition: types.h:42