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

Add .eml example with odd behavior #88

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

Conversation

sftse
Copy link
Contributor

@sftse sftse commented Oct 14, 2024

This example exhibits strange behavior: mail-parser thinks it has a single attachment, although the only part of the email is plain/text and there is no multipart boundary. Thunderbird does a best-effort attempt at displaying the part as if it were text.

@sftse
Copy link
Contributor Author

sftse commented Oct 21, 2024

I've added a suggestion how to carve out this specific case.

@mdecimus
Copy link
Member

Tests are failing for this PR.

@sftse
Copy link
Contributor Author

sftse commented Oct 21, 2024

Unclear how I missed the failing tests first time around. I've had to adapt the malformed/012.eml test case, but after manual review this seems indeed to be what I was going for. The handling of that case also appears more in line with Thunderbird, Thunderbird sees three .eml attachments, each without attachment. mail-parser only recognizes two attachments on the root email, but given the test case is marked as malformed, this difference might better be resolved in a different PR.

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