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?