mirror of
https://github.com/python/cpython.git
synced 2025-11-18 01:57:37 +00:00
bpo-35805: Add parser for Message-ID email header. (GH-13397)
* bpo-35805: Add parser for Message-ID header. This parser is based on the definition of Identification Fields from RFC 5322 Sec 3.6.4. This should also prevent folding of Message-ID header using RFC 2047 encoded words and hence fix bpo-35805. * Prevent folding of non-ascii message-id headers. * Add fold method to MsgID token to prevent folding.
This commit is contained in:
parent
bc6469f79c
commit
46d88a1131
6 changed files with 257 additions and 28 deletions
|
|
@ -0,0 +1,2 @@
|
|||
Add parser for Message-ID header and add it to default HeaderRegistry. This
|
||||
should prevent folding of Message-ID using RFC 2048 encoded words.
|
||||
Loading…
Add table
Add a link
Reference in a new issue