NeoMutt  2021-02-05-89-gabe350
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 #include "private.h"
34 #include "mutt/lib.h"
35 
36 // clang-format off
41 
44 // clang-format on
45 
47  // clang-format off
48  { "autocrypt", DT_BOOL, &C_Autocrypt, false, 0, NULL,
49  "Enables the Autocrypt feature"
50  },
51  { "autocrypt_acct_format", DT_STRING|R_MENU, &C_AutocryptAcctFormat, IP "%4n %-30a %20p %10s", 0, NULL,
52  "Format of the autocrypt account menu"
53  },
54  { "autocrypt_dir", DT_PATH|DT_PATH_DIR, &C_AutocryptDir, IP "~/.mutt/autocrypt", 0, NULL,
55  "Location of autocrypt files, including the GPG keyring and SQLite database"
56  },
57  { "autocrypt_reply", DT_BOOL, &C_AutocryptReply, true, 0, NULL,
58  "Replying to an autocrypt email automatically enables autocrypt in the reply"
59  },
60  { NULL, 0, NULL, 0, 0, NULL, NULL },
61  // clang-format on
62 };
63 
68 {
69  return cs_register_variables(cs, AutocryptVars, 0);
70 }
IP
#define IP
Definition: set.h:54
DT_STRING
#define DT_STRING
a string
Definition: types.h:41
C_AutocryptAcctFormat
char * C_AutocryptAcctFormat
Config: Format of the autocrypt account menu.
Definition: config.c:39
R_MENU
#define R_MENU
Redraw all menus.
Definition: types.h:74
DT_PATH_DIR
#define DT_PATH_DIR
Path is a directory.
Definition: types.h:53
C_Autocrypt
bool C_Autocrypt
Config: Enables the Autocrypt feature.
Definition: config.c:37
cs_register_variables
bool cs_register_variables(const struct ConfigSet *cs, struct ConfigDef vars[], uint32_t flags)
Register a set of config items.
Definition: set.c:286
config_init_autocrypt
bool config_init_autocrypt(struct ConfigSet *cs)
Register autocrypt config variables - Implements module_init_config_t.
Definition: config.c:67
lib.h
AutocryptDefaultKey
char * AutocryptDefaultKey
Autocrypt default key id (used for postponing messages)
Definition: config.c:43
lib.h
DT_PATH
#define DT_PATH
a path to a file/directory
Definition: types.h:36
C_AutocryptDir
char * C_AutocryptDir
Config: Location of autocrypt files, including the GPG keyring and SQLite database.
Definition: config.c:40
C_AutocryptReply
bool C_AutocryptReply
Config: Replying to an autocrypt email automatically enables autocrypt in the reply.
Definition: config.c:38
DT_BOOL
#define DT_BOOL
boolean option
Definition: types.h:30
ConfigDef
Config item definition.
Definition: set.h:61
ConfigSet
Container for lots of config items.
Definition: set.h:228
private.h
AutocryptSignAs
char * AutocryptSignAs
Autocrypt Key id to sign as.
Definition: config.c:42
AutocryptVars
struct ConfigDef AutocryptVars[]
Definition: config.c:46