]> git.ipfire.org Git - thirdparty/patchwork.git/commit
parser: Ignore CFWS in Message-ID header
authorStephen Finucane <stephen@that.guru>
Fri, 6 May 2022 17:21:02 +0000 (18:21 +0100)
committerStephen Finucane <stephen@that.guru>
Mon, 9 May 2022 10:08:06 +0000 (11:08 +0100)
commitad999401442718920bd91608345978eb952ef38e
treeb201b5d3f4ba0960216385a924f20551fc24421a
parent7546f7e92120dd1c668cdb64bf441f28cdf9fd42
parser: Ignore CFWS in Message-ID header

We recently started stripping comments and folding white space from the
In-Reply-To and References headers. Do so also for the Message-ID
header. Because of the importance of the Message-ID header, we accept
even non-compliant headers and because we now have a pattern for this,
we also start (re-)accepting non-compliant In-Reply-To headers.

Signed-off-by: Stephen Finucane <stephen@that.guru>
Related: #399
patchwork/parser.py
patchwork/tests/test_parser.py