Skip to content

Conversation

drcrallen
Copy link

I encountered an email with a blank entry in a multipart/alternative section.

I did not check the spec to see if this is the best way to handle this error but it works in my situation and in the new test case.

Prior to this change:

mime: no media type

After this change:

Tests Pass

It is possible to have a multipart alternative section be blank which means there are no headers to parse. In this case a work around is to just write the content as plain text.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant