Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Handle missing Content-Type in multipart/alternative as plain text #47

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

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.

None yet

1 participant