Prototype for a Autocrypt Function.
More...
Prototype for a Autocrypt Function.
- Parameters
-
| menu | Menu |
| event | Event to process |
- Return values
-
- Precondition
- menu is not NULL
-
event is not NULL
◆ op_autocrypt_create_acct()
Create a new autocrypt account - Implements autocrypt_function_t -.
Definition at line 135 of file functions.c.
136{
139
141}
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()
Delete the current account - Implements autocrypt_function_t -.
Definition at line 146 of file functions.c.
147{
150
153 if (!pentry)
154 return 0;
155
156 char msg[128] = { 0 };
157 snprintf(msg, sizeof(msg),
158
159 _(
"Really delete account \"%s\"?"),
buf_string((*pentry)->addr->mailbox));
162
165
167}
#define ARRAY_GET(head, idx)
Return the element at index.
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 AccountEntryArray entries
Account Entries.
◆ op_autocrypt_toggle_active()
Toggle the current account active/inactive - Implements autocrypt_function_t -.
Definition at line 172 of file functions.c.
173{
176
179 if (!pentry)
180 return 0;
181
184
187}
static bool toggle_active(struct AccountEntry *entry)
Toggle whether an Autocrypt account is active.
◆ op_autocrypt_toggle_prefer()
Toggle the current account prefer-encrypt flag - Implements autocrypt_function_t -.
Definition at line 192 of file functions.c.
193{
196
199 if (!pentry)
200 return 0;
201
204
207}
static bool toggle_prefer_encrypt(struct AccountEntry *entry)
Toggle whether an Autocrypt account prefers encryption.
◆ op_quit()