Prototype for a Autocrypt Function.
More...
Prototype for a Autocrypt Function.
- Parameters
-
menu | Menu |
op | Operation to perform, e.g. OP_AUTOCRYPT_CREATE_ACCT |
- Return values
-
◆ op_autocrypt_create_acct()
static int op_autocrypt_create_acct |
( |
struct AutocryptData * |
ad, |
|
|
int |
op |
|
) |
| |
|
static |
Create a new autocrypt account - Implements autocrypt_function_t -.
Definition at line 112 of file functions.c.
113{
116
118}
int mutt_autocrypt_account_init(bool prompt)
Create a new Autocrypt account.
@ FR_SUCCESS
Valid function - successfully performed.
bool populate_menu(struct Menu *menu)
Add the Autocrypt data to a Menu.
struct Menu * menu
Autocrypt Menu.
◆ op_autocrypt_delete_acct()
static int op_autocrypt_delete_acct |
( |
struct AutocryptData * |
ad, |
|
|
int |
op |
|
) |
| |
|
static |
Delete the current account - Implements autocrypt_function_t -.
Definition at line 123 of file functions.c.
124{
127
130 char msg[128] = { 0 };
131 snprintf(msg, sizeof(msg),
132
136
139
141}
int mutt_autocrypt_db_account_delete(struct AutocryptAccount *acct)
Delete an Account from the Autocrypt database.
static const char * buf_string(const struct Buffer *buf)
Convert a buffer to a const char * "string".
@ FR_ERROR
Valid function - error occurred.
@ FR_NO_ACTION
Valid function - no action performed.
@ MUTT_NO
User answered 'No', or assume 'No'.
@ MUTT_YES
User answered 'Yes', or assume 'Yes'.
enum QuadOption query_yesorno(const char *prompt, enum QuadOption def)
Ask the user a Yes/No question.
An entry in the Autocrypt account Menu.
struct Address * addr
Email address associated with the account.
struct AutocryptAccount * account
Account details.
struct Buffer * mailbox
Mailbox and host address.
◆ op_autocrypt_toggle_active()
static int op_autocrypt_toggle_active |
( |
struct AutocryptData * |
ad, |
|
|
int |
op |
|
) |
| |
|
static |
Toggle the current account active/inactive - Implements autocrypt_function_t -.
Definition at line 146 of file functions.c.
147{
150
155
157}
static void toggle_active(struct AccountEntry *entry)
Toggle whether an Autocrypt account is active.
◆ op_autocrypt_toggle_prefer()
static int op_autocrypt_toggle_prefer |
( |
struct AutocryptData * |
ad, |
|
|
int |
op |
|
) |
| |
|
static |
Toggle the current account prefer-encrypt flag - Implements autocrypt_function_t -.
Definition at line 162 of file functions.c.
163{
166
171
173}
static void toggle_prefer_encrypt(struct AccountEntry *entry)
Toggle whether an Autocrypt account prefers encryption.
◆ op_exit()