NeoMutt  2024-10-02-37-gfa9146
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 "config/lib.h"
33
37static struct ConfigDef MhVars[] = {
38 // clang-format off
39 { "mh_purge", DT_BOOL, false, 0, NULL,
40 "Really delete files in MH mailboxes"
41 },
42 { "mh_seq_flagged", DT_STRING, IP "flagged", 0, NULL,
43 "MH sequence for flagged message"
44 },
45 { "mh_seq_replied", DT_STRING, IP "replied", 0, NULL,
46 "MH sequence to tag replied messages"
47 },
48 { "mh_seq_unseen", DT_STRING, IP "unseen", 0, NULL,
49 "MH sequence for unseen messages"
50 },
51 { NULL },
52 // clang-format on
53};
54
58bool config_init_mh(struct ConfigSet *cs)
59{
60 return cs_register_variables(cs, MhVars);
61}
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
bool config_init_mh(struct ConfigSet *cs)
Register mh config variables - Implements module_init_config_t -.
Definition: config.c:58
static struct ConfigDef MhVars[]
Config definitions for the Mh library.
Definition: config.c:37
Definition: set.h:64
Container for lots of config items.
Definition: set.h:252
@ DT_BOOL
boolean option
Definition: types.h:32
@ DT_STRING
a string
Definition: types.h:45