#3692: multipart/alternative messages don't display other attachments in body
----------------------+----------------------
  Reporter:  ondrejj  |      Owner:  mutt-dev
      Type:  defect   |     Status:  new
  Priority:  major    |  Milestone:  1.6
 Component:  mutt     |    Version:  1.5.23
Resolution:           |   Keywords:
----------------------+----------------------

Comment (by kevin8t8):

 Mutt isn't preferring html over text.  It is preferring multipart/mixed
 over text.  When you view a "normal" multipart/alternative message like:

 {{{
 [multipart/alternative]
   -> [text/plain]
   -> [text/html]
 [application/pdf]
 }}}

 mutt *will* choose the text/plain over the text/html.  Since the PDF is
 outside the multipart/alternative, mutt will also always list the PDF
 attachment.

 But when the sending email client is braindead and sends this:

 {{{
 [multipart/alternative]
   -> [text/plain]
   -> [multipart/mixed]
     -> [text/html]
     -> [application/pdf]
 }}}

 then mutt will choose the multipart/mixed so that you can see the
 application/pdf attachment.  Again, this is not mutt's fault.  The sending
 client is putting the pdf in the wrong place.  The suggested
 alternative_order at least allows you to see the attachments that are
 bundled inside the html alternative.  There is no way to view the
 text/plain and at the same time see the application/pdf.

 The only other thing you could do is create a couple macros to toggle
 between text mode and multipart mode.  Something like:
 {{{
 macro pager ,A "<enter-command>unalternative_order *<enter><enter-
 command>alternative_order multipart/mixed multipart/related
 text/plain<enter><exit><display-message>"
 macro pager ,B "<enter-command>unalternative_order *<enter><enter-
 command>alternative_order text/plain<enter><exit><display-message>"
 }}}

-- 
Ticket URL: <http://dev.mutt.org/trac/ticket/3692#comment:6>
Mutt <http://www.mutt.org/>
The Mutt mail user agent

Reply via email to