]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
[3.7] bpo-36520: Email header folded incorrectly (GH-13608) (GH-13910)
authorAbhilash Raj <maxking@users.noreply.github.com>
Tue, 11 Jun 2019 23:27:06 +0000 (19:27 -0400)
committerMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Tue, 11 Jun 2019 23:27:06 +0000 (16:27 -0700)
commit0745cc66db3acbe7951073071cf063db6337dd10
tree7b024e7ce75fb3a3e9603770a620b2adbcd1e967
parent22e8a6d013c14f8724f396011fe22f13ea1641aa
[3.7] bpo-36520: Email header folded incorrectly (GH-13608) (GH-13910)

* [bpo-36520](https://bugs.python.org/issue36520): reset the encoded word offset when starting a new
line during an email header folding operation

* ðŸ“œðŸ¤– Added by blurb_it.

* [bpo-36520](https://bugs.python.org/issue36520): add an additional test case, and provide descriptive
comments for the test_folding_with_utf8_encoding_* tests

* [bpo-36520](https://bugs.python.org/issue36520): fix whitespace issue

* [bpo-36520](https://bugs.python.org/issue36520): changes per reviewer request -- remove extraneous
backslashes; add whitespace between terminating quotes and
line-continuation backslashes; use "bpo-" instead of
"issue GH-" in comments
(cherry picked from commit f6713e84afc5addcfa8477dbdf2c027787f711c0)

Co-authored-by: websurfer5 <49998481+websurfer5@users.noreply.github.com>
https://bugs.python.org/issue36520
Lib/email/_header_value_parser.py
Lib/test/test_email/test_message.py
Misc/NEWS.d/next/Library/2019-05-28-02-37-00.bpo-36520.W4tday.rst [new file with mode: 0644]