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 137 of file functions.c.
138{
141
143}
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 148 of file functions.c.
149{
152
155 if (!pentry)
156 return 0;
157
158 char msg[128] = { 0 };
159 snprintf(msg, sizeof(msg),
160
161 _(
"Really delete account \"%s\"?"),
buf_string((*pentry)->addr->mailbox));
164
167
169}
#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 174 of file functions.c.
175{
178
181 if (!pentry)
182 return 0;
183
186
189}
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 194 of file functions.c.
195{
198
201 if (!pentry)
202 return 0;
203
206
209}
static bool toggle_prefer_encrypt(struct AccountEntry *entry)
Toggle whether an Autocrypt account prefers encryption.
◆ op_exit()