summaryrefslogtreecommitdiffstats
path: root/functions.h
diff options
context:
space:
mode:
authorKevin McCarthy <kevin@8t8.us>2019-10-29 13:53:20 +0800
committerKevin McCarthy <kevin@8t8.us>2019-11-01 14:24:08 +0800
commit0e566a03725b4ad789aa6ac1d17cdf7bf4e7e354 (patch)
tree8f00fdff1bfa583ccfe85c20915d6d6046acf56c /functions.h
parent3f9116816d9df94e5c1cb6650bd422897ba7a228 (diff)
Add ability to generate multipart/alternative using a filter script.
Create config variables $send_multipart_alternative (a quadoption) and $send_multipart_alternative_filter. The filter script expects output to be the mime type, a blank line, then the content. Add ability to preview alternative from compose menu. <view-alt-text> forces viewing as text. <view-alt-mailcap> forces using the mailcap. Bind them to 'v' and 'V', respectively. Improve <resend-message> so a multipart/alternative is stripped out, which would just confuse the compose menu. Currently this preserves the first alternative. Allow alternative generation in batch mode, as long as the quadoption is set to 'yes'.
Diffstat (limited to 'functions.h')
-rw-r--r--functions.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/functions.h b/functions.h
index ba8340b8..8f98fdb2 100644
--- a/functions.h
+++ b/functions.h
@@ -384,6 +384,8 @@ const struct binding_t OpCompose[] = { /* map: compose */
{ "toggle-recode", OP_COMPOSE_TOGGLE_RECODE, NULL },
{ "update-encoding", OP_COMPOSE_UPDATE_ENCODING, "U" },
{ "view-attach", OP_VIEW_ATTACH, MUTT_ENTER_S },
+ { "view-alt-text", OP_COMPOSE_VIEW_ALT_TEXT, "v" },
+ { "view-alt-mailcap", OP_COMPOSE_VIEW_ALT_MAILCAP, "V" },
{ "send-message", OP_COMPOSE_SEND_MESSAGE, "y" },
{ "pipe-entry", OP_PIPE, "|" },