NeoMutt  2023-05-17-56-ga67199
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
37static struct ConfigDef MaildirVars[] = {
38 // clang-format off
39 { "check_new", DT_BOOL, true, 0, NULL,
40 "(maildir,mh) Check for new mail while the mailbox is open"
41 },
42 { "maildir_check_cur", DT_BOOL, false, 0, NULL,
43 "Check both 'new' and 'cur' directories for new mail"
44 },
45 { "maildir_trash", DT_BOOL, false, 0, NULL,
46 "Use the maildir 'trashed' flag, rather than deleting"
47 },
48 { "mh_purge", DT_BOOL, false, 0, NULL,
49 "Really delete files in MH mailboxes"
50 },
51 { "mh_seq_flagged", DT_STRING, IP "flagged", 0, NULL,
52 "MH sequence for flagged message"
53 },
54 { "mh_seq_replied", DT_STRING, IP "replied", 0, NULL,
55 "MH sequence to tag replied messages"
56 },
57 { "mh_seq_unseen", DT_STRING, IP "unseen", 0, NULL,
58 "MH sequence for unseen messages"
59 },
60 { NULL },
61 // clang-format on
62};
63
64#if defined(USE_HCACHE)
68static struct ConfigDef MaildirVarsHcache[] = {
69 // clang-format off
70 { "maildir_header_cache_verify", DT_BOOL, true, 0, NULL,
71 "Check for maildir changes when opening mailbox"
72 },
73 { NULL },
74 // clang-format on
75};
76#endif
77
82{
84
85#if defined(USE_HCACHE)
87#endif
88
89 return rc;
90}
Convenience wrapper for the config headers.
bool cs_register_variables(const struct ConfigSet *cs, struct ConfigDef vars[], uint32_t flags)
Register a set of config items.
Definition: set.c:279
#define IP
Definition: set.h:54
bool config_init_maildir(struct ConfigSet *cs)
Register maildir config variables - Implements module_init_config_t -.
Definition: config.c:81
static struct ConfigDef MaildirVars[]
Config definitions for the Maildir library.
Definition: config.c:37
static struct ConfigDef MaildirVarsHcache[]
Config definitions for the Maildir header cache.
Definition: config.c:68
Definition: set.h:64
Container for lots of config items.
Definition: set.h:252
#define DT_BOOL
boolean option
Definition: types.h:30
#define DT_STRING
a string
Definition: types.h:41
#define DT_NO_FLAGS
No flags are set.
Definition: types.h:47