NeoMutt  2022-04-29-178-g3b62e6
Teaching an old dog new tricks
DOXYGEN
config.c
Go to the documentation of this file.
1
29#include "config.h"
30#include <stddef.h>
31#include <config/lib.h>
32#include <stdbool.h>
33
34static struct ConfigDef MaildirVars[] = {
35 // clang-format off
36 { "check_new", DT_BOOL, true, 0, NULL,
37 "(maildir,mh) Check for new mail while the mailbox is open"
38 },
39 { "maildir_check_cur", DT_BOOL, false, 0, NULL,
40 "Check both 'new' and 'cur' directories for new mail"
41 },
42 { "maildir_trash", DT_BOOL, false, 0, NULL,
43 "Use the maildir 'trashed' flag, rather than deleting"
44 },
45 { "mh_purge", DT_BOOL, false, 0, NULL,
46 "Really delete files in MH mailboxes"
47 },
48 { "mh_seq_flagged", DT_STRING, IP "flagged", 0, NULL,
49 "MH sequence for flagged message"
50 },
51 { "mh_seq_replied", DT_STRING, IP "replied", 0, NULL,
52 "MH sequence to tag replied messages"
53 },
54 { "mh_seq_unseen", DT_STRING, IP "unseen", 0, NULL,
55 "MH sequence for unseen messages"
56 },
57 { NULL },
58 // clang-format on
59};
60
61#if defined(USE_HCACHE)
62static struct ConfigDef MaildirVarsHcache[] = {
63 // clang-format off
64 { "maildir_header_cache_verify", DT_BOOL, true, 0, NULL,
65 "Check for maildir changes when opening mailbox"
66 },
67 { NULL },
68 // clang-format on
69};
70#endif
71
76{
77 bool rc = cs_register_variables(cs, MaildirVars, 0);
78
79#if defined(USE_HCACHE)
81#endif
82
83 return rc;
84}
Convenience wrapper for the config headers.
bool config_init_maildir(struct ConfigSet *cs)
Register maildir config variables - Implements module_init_config_t -.
Definition: config.c:75
static struct ConfigDef MaildirVars[]
Definition: config.c:34
static struct ConfigDef MaildirVarsHcache[]
Definition: config.c:62
bool cs_register_variables(const struct ConfigSet *cs, struct ConfigDef vars[], uint32_t flags)
Register a set of config items.
Definition: set.c:276
#define IP
Definition: set.h:54
Definition: set.h:64
Container for lots of config items.
Definition: set.h:260
#define DT_BOOL
boolean option
Definition: types.h:30
#define DT_STRING
a string
Definition: types.h:41