forked from python/cpython
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
pythongh-106186: Don't report MultipartInvariantViolationDefect for v…
…alid multipart emails when parsing header only (python#107016)
- Loading branch information
1 parent
5463252
commit c65592c
Showing
4 changed files
with
28 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
Date: 01 Jan 2001 00:01+0000 | ||
From: arthur@example.example | ||
MIME-Version: 1.0 | ||
Content-Type: multipart/mixed; boundary=foo | ||
|
||
--foo | ||
Content-Type: text/plain | ||
bar | ||
|
||
--foo | ||
Content-Type: text/html | ||
<html><body><p>baz</p></body></html> | ||
|
||
--foo-- |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
3 changes: 3 additions & 0 deletions
3
Misc/NEWS.d/next/Library/2023-07-22-13-09-28.gh-issue-106186.EIsUNG.rst
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
Do not report ``MultipartInvariantViolationDefect`` defect | ||
when the :class:`email.parser.Parser` class is used | ||
to parse emails with ``headersonly=True``. |