Skip to content

fix: parse emails as plaintext#26

Merged
hwalker56 merged 4 commits into
mainfrom
fix/text_decoding
May 5, 2026
Merged

fix: parse emails as plaintext#26
hwalker56 merged 4 commits into
mainfrom
fix/text_decoding

Conversation

@hwalker56

@hwalker56 hwalker56 commented May 2, 2026

Copy link
Copy Markdown
Member

This PR adds proper handling for HTML emails. Multipart messages now default to non-HTML text (as all major email clients send HTML messages as multiparts with both HTML and plaintext), while having a proper fallback to strip HTML tags when only HTML is available.

This also adds a basic unit test to ensure we are parsing content properly from multipart emails.

@hwalker56 hwalker56 requested a review from noahpistilli May 2, 2026 21:36
hwalker56 added 2 commits May 3, 2026 10:15
no major email clients do this, but it's good to have just in case

@noahpistilli noahpistilli left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Add a workflow to run the test, otherwise LGTM

@hwalker56

Copy link
Copy Markdown
Member Author

We already have a workflow for this, merging.

@hwalker56 hwalker56 merged commit 55868cc into main May 5, 2026
1 check passed
@hwalker56 hwalker56 deleted the fix/text_decoding branch May 5, 2026 09:20
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.

2 participants