diff options
author | Kevin McCarthy <kevin@8t8.us> | 2019-07-28 19:24:11 -0700 |
---|---|---|
committer | Kevin McCarthy <kevin@8t8.us> | 2019-08-03 14:08:09 -0700 |
commit | 85bd11b08d66ceaaeb30bafb963a950a507185d1 (patch) | |
tree | a8e6ada0c4a856f6e826ccd8b1b76bf6b367bd0e /functions.h | |
parent | 361156045e886b0aeba6920992aec4c20536d23c (diff) |
Basic autocrypt account menu.
Provide ability to create, delete, and toggle the prefer-encrypt and
enabled flag for an account.
Hook into the index via 'A' <autocrypt-acct-menu>.
Diffstat (limited to 'functions.h')
-rw-r--r-- | functions.h | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/functions.h b/functions.h index 6e9ba390..419dfc50 100644 --- a/functions.h +++ b/functions.h @@ -86,6 +86,9 @@ const struct binding_t OpGeneric[] = { /* map: generic */ const struct binding_t OpMain[] = { /* map: index */ { "create-alias", OP_CREATE_ALIAS, "a" }, +#ifdef USE_AUTOCRYPT + { "autocrypt-acct-menu", OP_AUTOCRYPT_ACCT_MENU, "A" }, +#endif { "bounce-message", OP_BOUNCE_MESSAGE, "b" }, { "break-thread", OP_MAIN_BREAK_THREAD, "#" }, { "change-folder", OP_MAIN_CHANGE_FOLDER, "c" }, @@ -500,3 +503,13 @@ const struct binding_t OpMix[] = { /* map: mixmaster */ { NULL, 0, NULL } }; #endif /* MIXMASTER */ + +#ifdef USE_AUTOCRYPT +const struct binding_t OpAutocryptAcct[] = { /* map: autocrypt account */ + { "create-account", OP_AUTOCRYPT_CREATE_ACCT, "c" }, + { "delete-account", OP_AUTOCRYPT_DELETE_ACCT, "D" }, + { "toggle-active", OP_AUTOCRYPT_TOGGLE_ACTIVE, "a" }, + { "toggle-prefer-encrypt", OP_AUTOCRYPT_TOGGLE_PREFER, "p" }, + { NULL, 0, NULL } +}; +#endif |