Go to the documentation of this file.
89 #ifndef MUTT_AUTOCRYPT_LIB_H
90 #define MUTT_AUTOCRYPT_LIB_H
int mutt_autocrypt_init(struct Mailbox *m, bool can_create)
Initialise Autocrypt.
@ AUTOCRYPT_REC_NO
Do no use Autocrypt.
void dlg_select_autocrypt_account(struct Mailbox *m)
Display the Autocrypt account Menu.
enum AutocryptRec mutt_autocrypt_ui_recommendation(struct Mailbox *m, struct Email *e, char **keylist)
Get the recommended action for an Email.
sqlite3_int64 autocrypt_timestamp
char * AutocryptSignAs
Autocrypt Key id to sign as.
@ AUTOCRYPT_REC_YES
Autocrypt should be used.
bool prefer_encrypt
false = nopref, true = mutual
int mutt_autocrypt_generate_gossip_list(struct Mailbox *m, struct Email *e)
Create the gossip list headers.
bool C_Autocrypt
Config: Enables the Autocrypt feature.
bool C_AutocryptReply
Config: Replying to an autocrypt email automatically enables autocrypt in the reply.
Autocrypt gossip history.
char * C_AutocryptAcctFormat
Config: Format of the autocrypt account menu.
bool prefer_encrypt
false = nopref, true = mutual
int mutt_autocrypt_process_autocrypt_header(struct Mailbox *m, struct Email *e, struct Envelope *env)
Parse an Autocrypt email header.
@ AUTOCRYPT_REC_OFF
No recommendations.
int mutt_autocrypt_write_gossip_headers(struct Mailbox *m, struct Envelope *env, FILE *fp)
Write the Autocrypt gossip headers to a file.
int mutt_autocrypt_process_gossip_header(struct Mailbox *m, struct Email *e, struct Envelope *prot_headers)
Parse an Autocrypt email gossip header.
@ AUTOCRYPT_REC_DISCOURAGE
Prefer not to use Autocrypt.
int mutt_autocrypt_set_sign_as_default_key(struct Mailbox *m, struct Email *e)
Set the Autocrypt default key for signing.
sqlite3_int64 gossip_timestamp
void mutt_autocrypt_cleanup(void)
Shutdown Autocrypt.
Container for lots of config items.
char * C_AutocryptDir
Config: Location of autocrypt files, including the GPG keyring and SQLite database.
int mutt_autocrypt_write_autocrypt_header(struct Mailbox *m, struct Envelope *env, FILE *fp)
Write the Autocrypt header to a file.
char * AutocryptDefaultKey
Autocrypt default key id (used for postponing messages)
The envelope/body of an email.
AutocryptRec
Recommendation.
@ AUTOCRYPT_REC_AVAILABLE
Autocrypt is available.