]> git.ipfire.org Git - thirdparty/patchwork.git/commit
parser: Ignore CFWS in In-Reply-To, References headers
authorStephen Finucane <stephen@that.guru>
Fri, 6 May 2022 16:53:13 +0000 (17:53 +0100)
committerStephen Finucane <stephen@that.guru>
Mon, 9 May 2022 10:43:24 +0000 (11:43 +0100)
commitcd8f14fb03adf57f2c4c53de2e318af67be94047
tree3cc6cf7d7fa3cb4528baaaabed25c2c7d775ca9e
parent215cede535ce24e287ee2a1a0fa946b5d7237690
parser: Ignore CFWS in In-Reply-To, References headers

RFC2822 states that [1] a comment or folding white space is permitted to
be inserted before or after a msg-id in in the Message-ID, In-Reply-To
or References fields. Allow for this.

[1] https://tools.ietf.org/html/rfc2822#section-3.6.4

Conflicts:
  patchwork/tests/test_parser.py

NOTE(stephenfin): Conflicts are due to the absence of commits f5cd52144c
("parser: Add 'X-Patchwork-Action-Required' header") and 94d75a1c78
("Blackify code"), neither of which we want to backport.

Signed-off-by: Stephen Finucane <stephen@that.guru>
Reviewed-by: DJ Delorie <dj@redhat.com>
Closes: #399
patchwork/parser.py
patchwork/tests/test_parser.py
releasenotes/notes/issue-399-09d6f17aa54b14b2.yaml [new file with mode: 0644]