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

Bugfix: parse email with no text content #15

Merged
merged 3 commits into from
Aug 21, 2022

Conversation

mnako
Copy link
Owner

@mnako mnako commented Aug 21, 2022

Currently, v0.1.0 is failing to parse emails with no text content. This is problematic, i.a., when parsing DMARC reports from Google.

This PR changes the default behaviour in that case, where previously letters would raise an error "letters.ParseEmail: cannot parse unknown Content-Type" and now it treats the email body as an arbitrary attachment and tries to parse it to the attached files array.

@mnako mnako merged commit b1feb07 into main Aug 21, 2022
@mnako mnako deleted the bugfix/parse-email-with-no-text-content branch August 21, 2022 06:53
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