Add to ui recommendation, keylist generator, and autocrypt header
writing routines.
Co-authored-by: Richard Russon <rich@flatcap.org>
if (mutt_autocrypt_db_account_get(from, &account) <= 0)
goto cleanup;
+ if (!account->enabled)
+ goto cleanup;
+
keylist_buf = mutt_buffer_pool_get();
mutt_buffer_addstr(keylist_buf, account->keyid);
goto cleanup;
if (!account->keyid)
goto cleanup;
+ if (!account->enabled)
+ goto cleanup;
mutt_str_replace(&AutocryptSignAs, account->keyid);
mutt_str_replace(&AutocryptDefaultKey, account->keyid);
goto cleanup;
if (!account->keydata)
goto cleanup;
+ if (!account->enabled)
+ goto cleanup;
fputs("Autocrypt: ", fp);
write_autocrypt_header_line(fp, account->email_addr, account->prefer_encrypt,