Re: [PATCH] parser: Ignore CFWS in In-Reply-To, References headers

2022-05-06 Thread DJ Delorie
Stephen Finucane writes: > diff --git patchwork/parser.py patchwork/parser.py > index e6e1a7fb..17cc2325 100644 > --- patchwork/parser.py > +++ patchwork/parser.py > @@ -31,6 +31,7 @@ from patchwork.models import SeriesReference > from patchwork.models import State > > > +_msgid_re =

Re: [PATCH 2/n] parser: Ignore CFWS in Message-ID header

2022-05-06 Thread Stephen Finucane
On Fri, 2022-05-06 at 18:49 +0100, Stephen Finucane wrote: > 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. > > Signed-off-by: Stephen Finucane > Related: #399 > --- > patchwork/parser.py

[PATCH 2/n] parser: Ignore CFWS in Message-ID header

2022-05-06 Thread Stephen Finucane
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. Signed-off-by: Stephen Finucane Related: #399 --- patchwork/parser.py| 43 ++

[PATCH] parser: Ignore CFWS in In-Reply-To, References headers

2022-05-06 Thread Stephen Finucane
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 Closes: #399 ---