Skip to content

Support for mails with multiple sections (Content-Type: multipart/alternative [...]) #8

@vertexvaar

Description

@vertexvaar

Often, we are rendering mails in both plain text and html. These are both valid body parts, but currently there is no way to test them both seperately. You can not restrict the tested body to a part.

Additionally, when testing for Umlauts e.g. with the codeception mailhog module, they will not be decoded, because the subpart has its own content type header and the mailhog module does not split nor recognize these.

Example multipart email: multipart_alernative_mail_raw.txt

The idea would be to access body parts via their mime type, since they are AFAIK unique in throughout the email.

As a nice side effect, the mailhog module can correctly decode the quoted-printable characters like umlauts because it can use the actual content encoding header of the body part.

Do you think this is is possible, and if yes, achievable?

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