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 126 of file functions.c.
127{
130
132}
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 137 of file functions.c.
138{
141
144 if (!pentry)
145 return 0;
146
147 char msg[128] = { 0 };
148 snprintf(msg, sizeof(msg),
149
150 _(
"Really delete account \"%s\"?"),
buf_string((*pentry)->addr->mailbox));
153
156
158}
#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 163 of file functions.c.
164{
167
170 if (!pentry)
171 return 0;
172
175
177}
static void 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 182 of file functions.c.
183{
186
189 if (!pentry)
190 return 0;
191
194
196}
static void toggle_prefer_encrypt(struct AccountEntry *entry)
Toggle whether an Autocrypt account prefers encryption.
◆ op_exit()