NeoMutt  2023-11-03-107-g582dc1
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 <stddef.h>
31#include <stdbool.h>
32#include "config/lib.h"
33
34// clang-format off
35char *AutocryptSignAs = NULL;
36char *AutocryptDefaultKey = NULL;
37// clang-format on
38
42static struct ConfigDef AutocryptVars[] = {
43 // clang-format off
44 { "autocrypt", DT_BOOL, false, 0, NULL,
45 "Enables the Autocrypt feature"
46 },
47 { "autocrypt_acct_format", DT_STRING, IP "%4n %-30a %20p %10s", 0, NULL,
48 "Format of the autocrypt account menu"
49 },
50 { "autocrypt_dir", DT_PATH|DT_PATH_DIR, IP "~/.mutt/autocrypt", 0, NULL,
51 "Location of autocrypt files, including the GPG keyring and SQLite database"
52 },
53 { "autocrypt_reply", DT_BOOL, true, 0, NULL,
54 "Replying to an autocrypt email automatically enables autocrypt in the reply"
55 },
56 { NULL },
57 // clang-format on
58};
59
64{
65 bool rc = false;
66
67#if defined(USE_AUTOCRYPT)
69#endif
70
71 return rc;
72}
char * AutocryptSignAs
Autocrypt Key id to sign as.
Definition: config.c:35
char * AutocryptDefaultKey
Autocrypt default key id (used for postponing messages)
Definition: config.c:36
static struct ConfigDef AutocryptVars[]
Config definitions for the autocrypt library.
Definition: config.c:42
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_autocrypt(struct ConfigSet *cs)
Register autocrypt config variables - Implements module_init_config_t -.
Definition: config.c:63
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_PATH_DIR
Path is a directory.
Definition: types.h:57
#define DT_PATH
a path to a file/directory
Definition: types.h:36
#define DT_STRING
a string
Definition: types.h:41
#define DT_NO_FLAGS
No flags are set.
Definition: types.h:47