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 // clang-format off
37 // clang-format on
38 
39 static struct ConfigDef AutocryptVars[] = {
40  // clang-format off
41  { "autocrypt", DT_BOOL, false, 0, NULL,
42  "Enables the Autocrypt feature"
43  },
44  { "autocrypt_acct_format", DT_STRING|R_MENU, IP "%4n %-30a %20p %10s", 0, NULL,
45  "Format of the autocrypt account menu"
46  },
47  { "autocrypt_dir", DT_PATH|DT_PATH_DIR, IP "~/.mutt/autocrypt", 0, NULL,
48  "Location of autocrypt files, including the GPG keyring and SQLite database"
49  },
50  { "autocrypt_reply", DT_BOOL, true, 0, NULL,
51  "Replying to an autocrypt email automatically enables autocrypt in the reply"
52  },
53  { NULL },
54  // clang-format on
55 };
56 
61 {
62  return cs_register_variables(cs, AutocryptVars, 0);
63 }
Container for lots of config items.
Definition: set.h:259
#define IP
Definition: set.h:54
char * AutocryptSignAs
Autocrypt Key id to sign as.
Definition: config.c:35
Definition: set.h:63
char * AutocryptDefaultKey
Autocrypt default key id (used for postponing messages)
Definition: config.c:36
bool config_init_autocrypt(struct ConfigSet *cs)
Register autocrypt config variables - Implements module_init_config_t -.
Definition: config.c:60
Convenience wrapper for the config headers.
#define DT_PATH_DIR
Path is a directory.
Definition: types.h:53
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 R_MENU
Redraw all menus.
Definition: types.h:72
#define DT_STRING
a string
Definition: types.h:41
#define DT_PATH
a path to a file/directory
Definition: types.h:36
#define DT_BOOL
boolean option
Definition: types.h:30