From 56a77e93524d863e37fd8aeeff15efb595d230fb Mon Sep 17 00:00:00 2001 From: Srinivas Reddy Thatiparthy Date: Thu, 2 Jan 2025 18:37:55 +0530 Subject: [PATCH] Add RFC section --- .../Library/2024-12-11-17-44-36.gh-issue-127794.VwmRsp.rst | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/Misc/NEWS.d/next/Library/2024-12-11-17-44-36.gh-issue-127794.VwmRsp.rst b/Misc/NEWS.d/next/Library/2024-12-11-17-44-36.gh-issue-127794.VwmRsp.rst index db6d3f8d8ccb32..293749e2c998c9 100644 --- a/Misc/NEWS.d/next/Library/2024-12-11-17-44-36.gh-issue-127794.VwmRsp.rst +++ b/Misc/NEWS.d/next/Library/2024-12-11-17-44-36.gh-issue-127794.VwmRsp.rst @@ -1,4 +1,5 @@ The :meth:`email.message.Message.add_header` method now validates header -field names according to :rfc:`5322` and raises a :exc:`ValueError` if -they contain invalid characters. A similar argument applies if headers -are added through :meth:`Message.__setitem__ `. +field names according to :rfc:`RFC 5322 section 3.6.8 <5322#section-3.6.8>` +and raises a :exc:`ValueError` if they contain invalid characters. A similar +argument applies if headers are added through :meth:`Message.__setitem__ +`.