Open sftse opened 9 months ago
I'm not sure why the RFC includes the second criterion though. Prior to that, the criteria for textBody
and htmlBody
are
o textBody: "EmailBodyPart[]" (immutable)
A list of "text/plain", "text/html", "image/*", "audio/*", and/or
"video/*" parts to display (sequentially) as the message body,
with a preference for "text/plain" when alternative versions are
available.
o htmlBody: "EmailBodyPart[]" (immutable)
A list of "text/plain", "text/html", "image/*", "audio/*", and/or
"video/*" parts to display (sequentially) as the message body,
with a preference for "text/html" when alternative versions are
available.
This seems to suggest image/*
, audio/*
and video/*
are always in both textBody
and htmlBody
, so the second condition for something being an attachment would always be false.
When parsing the example
legacy/034.eml
the returned parts areThis seems at odds with RFC8621
o attachments: "EmailBodyPart[]" (immutable)
Attachments 4, 5 are image/png and fit neither of the criteria listed.