summaryrefslogtreecommitdiffstats
path: root/functions.h
diff options
context:
space:
mode:
authorKevin McCarthy <kevin@8t8.us>2018-08-22 15:07:45 -0700
committerKevin McCarthy <kevin@8t8.us>2018-08-22 15:07:45 -0700
commit32734a9fb5d4dc68a9c557d472dbfdee0a4b5d26 (patch)
tree03d49047f7b897836db48cc859fac90478c30ef0 /functions.h
parent1d3b82b771c3698c758db3c47b69c539cca062c6 (diff)
Add compose-to-sender functionality.
This patch is loosely based on the NeoMutt feature, but adds in support for the attach menu, reuses functionality in send.c, and has proper mode checks. Thanks to Enno for the opening the ticket requesting the port.
Diffstat (limited to 'functions.h')
-rw-r--r--functions.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/functions.h b/functions.h
index 442531ad..3ce925f8 100644
--- a/functions.h
+++ b/functions.h
@@ -93,6 +93,7 @@ const struct binding_t OpMain[] = { /* map: index */
{ "next-unread-mailbox", OP_MAIN_NEXT_UNREAD_MAILBOX, NULL },
{ "collapse-thread", OP_MAIN_COLLAPSE_THREAD, "\033v" },
{ "collapse-all", OP_MAIN_COLLAPSE_ALL, "\033V" },
+ { "compose-to-sender", OP_COMPOSE_TO_SENDER, NULL},
{ "copy-message", OP_COPY_MESSAGE, "C" },
{ "decode-copy", OP_DECODE_COPY, "\033C" },
{ "decode-save", OP_DECODE_SAVE, "\033s" },
@@ -195,6 +196,7 @@ const struct binding_t OpPager[] = { /* map: pager */
{ "change-folder", OP_MAIN_CHANGE_FOLDER, "c" },
{ "change-folder-readonly", OP_MAIN_CHANGE_FOLDER_READONLY, "\033c" },
{ "next-unread-mailbox", OP_MAIN_NEXT_UNREAD_MAILBOX, NULL },
+ { "compose-to-sender", OP_COMPOSE_TO_SENDER, NULL},
{ "copy-message", OP_COPY_MESSAGE, "C" },
{ "decode-copy", OP_DECODE_COPY, "\033C" },
{ "delete-message", OP_DELETE, "d" },
@@ -310,6 +312,7 @@ const struct binding_t OpPager[] = { /* map: pager */
const struct binding_t OpAttach[] = { /* map: attachment */
{ "bounce-message", OP_BOUNCE_MESSAGE, "b" },
{ "display-toggle-weed", OP_DISPLAY_HEADERS, "h" },
+ { "compose-to-sender", OP_COMPOSE_TO_SENDER, NULL},
{ "edit-type", OP_EDIT_TYPE, "\005" },
{ "print-entry", OP_PRINT, "p" },
{ "save-entry", OP_SAVE, "s" },