NeoMutt  2021-02-05-666-ge300cd
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 
34 static 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 #ifdef USE_HCACHE
43  { "maildir_header_cache_verify", DT_BOOL, true, 0, NULL,
44  "Check for maildir changes when opening mailbox"
45  },
46 #endif
47  { "maildir_trash", DT_BOOL, false, 0, NULL,
48  "Use the maildir 'trashed' flag, rather than deleting"
49  },
50  { "mh_purge", DT_BOOL, false, 0, NULL,
51  "Really delete files in MH mailboxes"
52  },
53  { "mh_seq_flagged", DT_STRING, IP "flagged", 0, NULL,
54  "MH sequence for flagged message"
55  },
56  { "mh_seq_replied", DT_STRING, IP "replied", 0, NULL,
57  "MH sequence to tag replied messages"
58  },
59  { "mh_seq_unseen", DT_STRING, IP "unseen", 0, NULL,
60  "MH sequence for unseen messages"
61  },
62  { NULL },
63  // clang-format on
64 };
65 
70 {
71  return cs_register_variables(cs, MaildirVars, 0);
72 }
Container for lots of config items.
Definition: set.h:259
#define IP
Definition: set.h:54
Definition: set.h:63
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:276
#define DT_STRING
a string
Definition: types.h:41
bool config_init_maildir(struct ConfigSet *cs)
Register maildir config variables - Implements module_init_config_t -.
Definition: config.c:69
#define DT_BOOL
boolean option
Definition: types.h:30