Re: Apple Mail multipart message not displayed correctly

Kazuhiro Ito <[email protected]> Fri, 02 Feb 2018 18:08:25 +0900
Newsgroups gmane.mail.wanderlust.general
Message-ID <867ervsqra.wl--xmue__16312.309788964$1517562507$gmane$org@d1.dion.ne.jp>
> today I received another e-mail that is not displayed correctly in
> wl.
> 
> Neomutt shows:
> 
>   I     1 <no description>                                       [multipa/alternativ, 7bit, 109K]
>   I     2 ><no description>                                   [text/plain, quoted, utf-8, 0.6K]
>   I     3 ><no description>                                         [multipa/mixed, 7bit, 108K]
>   I     4   ><no description>                                  [text/html, quoted, utf-8, 5.7K] 
>   I     5   >document.pdf                                           [applica/pdf, base64, 101K]
>   I     6   ><no description>                                 [text/html, 7bit, us-ascii, 0.4K]
> 
> In wl I only see
> 
>  [1  <text/plain; utf-8 (quoted-printable)>]
>  [2  <multipart/mixed (7bit)>
>
> There is obviously no way to access the pdf.

You can access pdf C-c C-v C-c at the button of multipart/mixed
entity.


multipart/alternative part is required to display only one child of it
and which child is displayed depeds on client.  If the .pdf file is
always required, it should be out of multipart/alternative part as
below.  It is known that Apple Mail sends such insane messages.
Wanderlust displays the message correctly and that is primarily
sender's problem.

> [multipart/mixed]
>  [multipart/alternative]
>   [text/plain]
>   [multilart/mixed]
>    [text/html]
>    [text/html]
>  [application/pdf]

As workaround, raise application/pdf part's score for SEMI-EPG.

(eval-after-load "semi-setup"
  '(set-alist 'mime-view-type-subtype-score-alist '(application . pdf) 5))

-- 
Kazuhiro Ito