On Fri 2018-11-09 17:15:17 +0100, vv01f wrote:
> We periodically get emails of an organization that loves to use their
> Apple products but otherwise is quite nice to be informed about.

a more compact summary of the structure of the message generated by
Apple Mail is here:

A └┬╴multipart/alternative
B  ├─╴text/plain
C  └┬╴multipart/mixed
D   ├─╴text/html
E   ├─╴application/pdf inline [${attachment1}.pdf]
F   ├─╴text/html
G   ├─╴application/pdf inline [${attachment0}.pdf]
H   └─╴text/html

The message itself is part A, which contains parts B and C.

I've seen this for years from senders using Apple Mail, for all kinds of
attachments, including both application/pdf and image/jpeg

> Just I will miss their attachments when I view email in text-only
> mode.

right, by viewing in text-only mode, you're choosing to view B instead
of C.  But the attchments themselves are both subparts of C, so they get
hidden.  It's possible that if they weren't marked as
Content-Disposition: inline that Thunderbird would show them as an
attachment anyway -- i haven't tested.

> To view them I need to enable at least simplified HTML… and for obvious
> and recently highlighted reasons I refuse to do so by default.

I'd have agreed with other messages in this thread that your question
was off-topic for enigmail, except for this bit.  Users of enigmail have
a stronger reason than users of cleartext mail to prefer the plaintext
view.

So this is a tricky situation.  One approach could be to expect
thunderbird to extract all the 

on the one hand, Apple Mail is clearly generating the message
suboptimally.

its structure should ideally put the pdf files as attachments *outside*
the multipart/alternative view:

J └┬╴multipart/mixed
K  ├┬╴multipart/alternative
L  │├─╴text/plain
M  │└─╴text/html
N  ├─╴application/pdf attachment [${attachment1}.pdf]
O  └─╴application/pdf attachment [${attachment0}.pdf]

That way, choosing a preference between text/plain and text/html results
in selection of L or M, leaving the attachments N and O visible for both
situations.

I don't know whether Apple is willing to consider changing how Mail.app
generates MIME structure, or where that would be reported most clearly.
If someone does report it to them, please reply back here with a pointer
to the bug report (or at least a description of the most effective place
to report such a bug).

Another potential optimization/heuristic would be to ask Thunderbird to
pick out specific kinds of MIME subparts even within a
multipart/alternative variant, and to render them as distinct,
downloadable attachments, regardless of any explicit Content-Disposition
header.  I'm note conivnced that this is a good idea, but you could
probably document such a recommendation for Thunderbird most effectively
here:

   https://bugzilla.mozilla.org/enter_bug.cgi#h=dupes%7CThunderbird

Regards,

        --dkg

Attachment: signature.asc
Description: PGP signature

_______________________________________________
enigmail-users mailing list
[email protected]
To unsubscribe or make changes to your subscription click here:
https://admin.hostpoint.ch/mailman/listinfo/enigmail-users_enigmail.net

Reply via email to