]> granicus.if.org Git - neomutt/commitdiff
inline parts of a multipart/alternative email
authorYubin Ruan <ablacktshirt@gmail.com>
Wed, 14 Mar 2018 04:51:51 +0000 (12:51 +0800)
committerRichard Russon <rich@flatcap.org>
Wed, 14 Mar 2018 04:51:51 +0000 (12:51 +0800)
Let Content-Disposition: inline for every part of a multipart/alternative email

compose.c

index c5718bec16b8c695c2c41715ca7b7ff55acd6edd..c7c543e85ef83d1a7b6bddb760864f48826f23b8 100644 (file)
--- a/compose.c
+++ b/compose.c
@@ -1102,6 +1102,7 @@ int mutt_compose_menu(struct Header *msg, char *fcc, size_t fcclen,
         struct Body *group = mutt_body_new();
         group->type = TYPEMULTIPART;
         group->subtype = mutt_str_strdup("alternative");
+        group->disposition = DISPINLINE;
 
         struct Body *alts = NULL;
         /* group tagged message into a multipart/alternative */
@@ -1111,6 +1112,7 @@ int mutt_compose_menu(struct Header *msg, char *fcc, size_t fcclen,
           if (bptr->tagged)
           {
             bptr->tagged = false;
+            bptr->disposition = DISPINLINE;
 
             /* for first match, set group desc according to match */
 #define ALTS_TAG "Alternatives for \"%s\""