]> 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:44:06 +0000 (11:44 +0100)
commitd33bc955fbe3291758301337212d1812420ec56f
tree2603ae10af5fbe857416d191bba47d897848a629
parentcd8f14fb03adf57f2c4c53de2e318af67be94047
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.

Conflicts:
  patchwork/parser.py

NOTE(stephenfin): Conflicts are due to the absence of commit 94d75a1c78
("Blackify code") which we don't want to backport.

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