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
email.parser header-only parsing records MultipartInvariantViolationDefect for valid multipart emails #106186
Comments
I believe this is the expected behaviour. Per the documentation,
|
I see the issue, looking into it now. |
Per documentation of
From this reading, the issue is valid and the fix in the attached PR is the correct bugfix. |
…ultipart emails when parsing header only (#107016)
…alid multipart emails when parsing header only (pythonGH-107016) (cherry picked from commit c65592c) Co-authored-by: htsedebenham <31847376+htsedebenham@users.noreply.github.com>
…alid multipart emails when parsing header only (pythonGH-107016) (cherry picked from commit c65592c) Co-authored-by: htsedebenham <31847376+htsedebenham@users.noreply.github.com>
…alid multipart emails when parsing header only (python#107016)
…alid multipart emails when parsing header only (python#107016)
Bug report
A valid multipart email message, when parsed with
email.parser.HeaderParser(policy=email.policy.default)
will record aemail.errors.MultipartInvariantViolationDefect
.If the parser isn't going to attempt to parse the message body, it shouldn't report that as a defect.
Simple test script:
Your environment
Linked PRs
The text was updated successfully, but these errors were encountered: