128 { -1, -1, NULL, NULL },
const struct ExpandoRenderCallback AutocryptRenderCallbacks[]
Callbacks for Autocrypt Expandos.
@ ED_AUT_ADDRESS
AccountEntry.addr.
@ ED_AUT_KEYID
AutocryptAccount.keyid.
@ ED_AUT_NUMBER
AccountEntry.num.
@ ED_AUT_ENABLED
AutocryptAccount.enabled.
@ ED_AUT_PREFER_ENCRYPT
AutocryptAccount.prefer_encrypt.
size_t buf_addstr(struct Buffer *buf, const char *s)
Add a string to a Buffer.
size_t buf_strcpy(struct Buffer *buf, const char *s)
Copy a string into a Buffer.
size_t buf_copy(struct Buffer *dst, const struct Buffer *src)
Copy a Buffer's contents to another Buffer.
@ ED_AUTOCRYPT
Autocrypt ED_AUT_ ExpandoDataAutocrypt.
static long autocrypt_number_num(const struct ExpandoNode *node, void *data, MuttFormatFlags flags)
Autocrypt: Index number - Implements get_number_t -.
static void autocrypt_keyid(const struct ExpandoNode *node, void *data, MuttFormatFlags flags, struct Buffer *buf)
Autocrypt: GPG Key - Implements get_string_t -.
static void autocrypt_prefer_encrypt(const struct ExpandoNode *node, void *data, MuttFormatFlags flags, struct Buffer *buf)
Autocrypt: Prefer-encrypt flag - Implements get_string_t -.
static void autocrypt_address(const struct ExpandoNode *node, void *data, MuttFormatFlags flags, struct Buffer *buf)
Autocrypt: Address - Implements get_string_t -.
static void autocrypt_enabled(const struct ExpandoNode *node, void *data, MuttFormatFlags flags, struct Buffer *buf)
Autocrypt: Status flag - Implements get_string_t -.
Convenience wrapper for the library headers.
uint8_t MuttFormatFlags
Flags for expando_render(), e.g. MUTT_FORMAT_FORCESUBJ.
An entry in the Autocrypt account Menu.
struct Address * addr
Email address associated with the account.
struct AutocryptAccount * account
Account details.
int num
Number in the index.
struct Buffer * mailbox
Mailbox and host address.
bool enabled
Is this account enabled.
bool prefer_encrypt
false = nopref, true = mutual
String manipulation buffer.