···4949OP_COMPOSE_TOGGLE_DISPOSITION "toggle disposition between inline/attachment"
5050OP_COMPOSE_TOGGLE_UNLINK "toggle whether to delete file after sending it"
5151OP_COMPOSE_UPDATE_ENCODING "update an attachment's encoding info"
5252+OP_COMPOSE_VIEW_ALT "view multipart/alternative"
5253OP_COMPOSE_VIEW_ALT_TEXT "view multipart/alternative as text"
5354OP_COMPOSE_VIEW_ALT_MAILCAP "view multipart/alternative using mailcap"
5455OP_COMPOSE_WRITE_MESSAGE "write the message to a folder"
+14-3
compose.c
···15091509 mutt_message_hook (NULL, msg, MUTT_SEND2HOOK);
15101510 break;
1511151115121512+ case OP_COMPOSE_VIEW_ALT:
15121513 case OP_COMPOSE_VIEW_ALT_TEXT:
15131514 case OP_COMPOSE_VIEW_ALT_MAILCAP:
15141515 {
···15221523 alternative = mutt_run_send_alternative_filter (msg->content);
15231524 if (!alternative)
15241525 break;
15251525- mutt_view_attachment (NULL, alternative,
15261526- op == OP_COMPOSE_VIEW_ALT_TEXT ? MUTT_AS_TEXT : MUTT_MAILCAP,
15271527- NULL, actx);
15261526+ switch (op)
15271527+ {
15281528+ case OP_COMPOSE_VIEW_ALT_TEXT:
15291529+ op = MUTT_AS_TEXT;
15301530+ break;
15311531+ case OP_COMPOSE_VIEW_ALT_MAILCAP:
15321532+ op = MUTT_MAILCAP;
15331533+ break;
15341534+ default:
15351535+ op = MUTT_REGULAR;
15361536+ break;
15371537+ }
15381538+ mutt_view_attachment (NULL, alternative, op, NULL, actx);
15281539 mutt_free_body (&alternative);
15291540 break;
15301541 }
+5-4
doc/manual.xml.head
···81578157</screen>
8158815881598159<para>
81608160-A preview of the alternative can be viewed in the compose menu
81618161-using the functions <literal><view-alt-text></literal> and
81628162-<literal><view-alt-mailcap></literal>, bound to "v"
81638163-and "V" by default.
81608160+A preview of the alternative can be viewed in the compose menu using the functions
81618161+<literal><view-alt></literal>,
81628162+<literal><view-alt-text></literal> and
81638163+<literal><view-alt-mailcap></literal>, bound to
81648164+"v", "Esc v" and "V" by default.
81648165</para>
8165816681668167</sect1>