-
-
Notifications
You must be signed in to change notification settings - Fork 32.1k
gh-106186: Don't report MultipartInvariantViolationDefect for valid multipart emails when parsing header only #107016
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
Conversation
Most changes to Python require a NEWS entry. Please add it using the blurb_it web app or the blurb command-line tool. |
Most changes to Python require a NEWS entry. Please add it using the blurb_it web app or the blurb command-line tool. |
Thanks @htsedebenham for the PR, and @ambv for merging it 🌮🎉.. I'm working now to backport this PR to: 3.11, 3.12. |
GH-107111 is a backport of this pull request to the 3.12 branch. |
…alid multipart emails when parsing header only (pythonGH-107016) (cherry picked from commit c65592c) Co-authored-by: htsedebenham <31847376+htsedebenham@users.noreply.github.com>
GH-107112 is a backport of this pull request to the 3.11 branch. |
…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)
The following code used to report a MultipartInvariantViolationDefect. However, the message body is not parsed when
headersonly=True
, so the parsing required foris_multipart()
to work is not carried out. Add this as a case to ignore when validating the message body inclose()