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

Config used by the Email library. More...

#include "config.h"
#include <stdbool.h>
#include <stddef.h>
#include "mutt/lib.h"
#include "config/lib.h"
+ Include dependency graph for config.c:

Go to the source code of this file.

Functions

bool config_init_email (struct ConfigSet *cs)
 Register email config variables - Implements module_init_config_t -.
 

Variables

static struct ConfigDef EmailVars []
 Config definitions for the Email library.
 

Detailed Description

Config used by the Email library.

Authors
  • Richard Russon

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 config.c.

Variable Documentation

◆ EmailVars

struct ConfigDef EmailVars[]
static

Config definitions for the Email library.

Definition at line 38 of file config.c.

38 {
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};
#define IP
Definition set.h:52
#define N_(a)
Definition message.h:32
#define D_SLIST_SEP_COMMA
Slist items are comma-separated.
Definition types.h:110
#define D_L10N_STRING
String can be localised.
Definition types.h:81
@ DT_SLIST
a list of strings
Definition types.h:42
@ DT_BOOL
boolean option
Definition types.h:32
@ DT_SYNONYM
synonym for another variable
Definition types.h:45
@ DT_STRING
a string
Definition types.h:44
@ DT_REGEX
regular expressions
Definition types.h:41