]> 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 09:45:39 +0000 (10:45 +0100)
commit7546f7e92120dd1c668cdb64bf441f28cdf9fd42
tree6c44c7365200839e82e9ac0aa673bceb22a4336f
parentb90ba52933d76034211a137f5726c2ae39427030
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

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]