Skip to content

Text attachments appear as message body in some mail clients #655

@tlconnor

Description

@tlconnor

The default part sort order is [ "text/plain", "text/enriched", "text/html" ]. If a multipart email contains text and html parts as well as a text attachment, the text attachment will often appear before the text body in the message.

In some mail clients this results in the attachment being treated as the message body.

I'm not sure if this is something that should be fixed, but if it is, a simple solution would be to look for content-disposition=attachment when sorting parts.

I can send a pull request if this seems like a legitimate bug.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions