NeoMutt  2020-08-07-1-gab41a1
Teaching an old dog new tricks
DOXYGEN
config.c File Reference

Config used by libautocrypt. More...

#include "config.h"
#include <stddef.h>
#include <config/lib.h>
#include <stdbool.h>
#include "private.h"
#include "mutt/lib.h"
+ Include dependency graph for config.c:

Go to the source code of this file.

Functions

bool config_init_autocrypt (struct ConfigSet *cs)
 Register autocrypt config variables. More...
 

Variables

bool C_Autocrypt
 Config: Enables the Autocrypt feature. More...
 
bool C_AutocryptReply
 Config: Replying to an autocrypt email automatically enables autocrypt in the reply. More...
 
char * C_AutocryptAcctFormat
 Config: Format of the autocrypt account menu. More...
 
char * C_AutocryptDir
 Config: Location of autocrypt files, including the GPG keyring and SQLite database. More...
 
char * AutocryptSignAs
 Autocrypt Key id to sign as. More...
 
char * AutocryptDefaultKey
 Autocrypt default key id (used for postponing messages) More...
 
struct ConfigDef AutocryptVars []
 

Detailed Description

Config used by libautocrypt.

Authors
  • Richard Russon

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

You should have received a copy of the GNU General Public License along with this program. If not, see http://www.gnu.org/licenses/.

Definition in file config.c.

Function Documentation

◆ config_init_autocrypt()

bool config_init_autocrypt ( struct ConfigSet cs)

Register autocrypt config variables.

Definition at line 67 of file config.c.

68 {
69  return cs_register_variables(cs, AutocryptVars, 0);
70 }
struct ConfigDef AutocryptVars[]
Definition: config.c:46
bool cs_register_variables(const struct ConfigSet *cs, struct ConfigDef vars[], int flags)
Register a set of config items.
Definition: set.c:287
+ Here is the call graph for this function:

Variable Documentation

◆ C_Autocrypt

bool C_Autocrypt

Config: Enables the Autocrypt feature.

Definition at line 37 of file config.c.

◆ C_AutocryptReply

bool C_AutocryptReply

Config: Replying to an autocrypt email automatically enables autocrypt in the reply.

Definition at line 38 of file config.c.

◆ C_AutocryptAcctFormat

char* C_AutocryptAcctFormat

Config: Format of the autocrypt account menu.

Definition at line 39 of file config.c.

◆ C_AutocryptDir

char* C_AutocryptDir

Config: Location of autocrypt files, including the GPG keyring and SQLite database.

Definition at line 40 of file config.c.

◆ AutocryptSignAs

char* AutocryptSignAs

Autocrypt Key id to sign as.

Definition at line 42 of file config.c.

◆ AutocryptDefaultKey

char* AutocryptDefaultKey

Autocrypt default key id (used for postponing messages)

Definition at line 43 of file config.c.

◆ AutocryptVars

struct ConfigDef AutocryptVars[]
Initial value:
= {
{ "autocrypt", DT_BOOL, &C_Autocrypt, false, 0, NULL,
"Enables the Autocrypt feature"
},
{ "autocrypt_acct_format", DT_STRING|R_MENU, &C_AutocryptAcctFormat, IP "%4n %-30a %20p %10s", 0, NULL,
"Format of the autocrypt account menu"
},
{ "autocrypt_dir", DT_PATH|DT_PATH_DIR, &C_AutocryptDir, IP "~/.mutt/autocrypt", 0, NULL,
"Location of autocrypt files, including the GPG keyring and SQLite database"
},
{ "autocrypt_reply", DT_BOOL, &C_AutocryptReply, true, 0, NULL,
"Replying to an autocrypt email automatically enables autocrypt in the reply"
},
{ NULL, 0, NULL, 0, 0, NULL, NULL },
}
char * C_AutocryptAcctFormat
Config: Format of the autocrypt account menu.
Definition: config.c:39
char * C_AutocryptDir
Config: Location of autocrypt files, including the GPG keyring and SQLite database.
Definition: config.c:40
bool C_Autocrypt
Config: Enables the Autocrypt feature.
Definition: config.c:37
#define DT_PATH_DIR
Path is a directory.
Definition: types.h:53
#define R_MENU
Redraw all menus.
Definition: types.h:74
#define DT_STRING
a string
Definition: types.h:41
#define DT_PATH
a path to a file/directory
Definition: types.h:36
#define IP
Definition: set.h:54
#define DT_BOOL
boolean option
Definition: types.h:30
bool C_AutocryptReply
Config: Replying to an autocrypt email automatically enables autocrypt in the reply.
Definition: config.c:38

Definition at line 46 of file config.c.