]> git.ipfire.org Git - thirdparty/patchwork.git/commit
parser: Handle multiple reference headers
authorStephen Finucane <stephen@that.guru>
Tue, 23 May 2017 14:08:13 +0000 (15:08 +0100)
committerStephen Finucane <stephen@that.guru>
Tue, 30 May 2017 20:08:52 +0000 (21:08 +0100)
commite6fefae5571d8ee6b1955269a51d708ac37328ec
treea0f2773bffb16d1272052a33080871e59bf4996b
parent6763667ffc1012bd544d2b08d342c4a5abef80d9
parser: Handle multiple reference headers

It's possible to duplicate message headers multiple times. One common
case is the 'Received' header, but it appears that multiple
'In-Reply-To' and 'References' headers are also a thing.

Handle these cases through the use of the 'Message.get_all' function,
which returns all matching headers, instead of the 'Message.get'
function previously used.

Signed-off-by: Stephen Finucane <stephen@that.guru>
patchwork/parser.py
patchwork/tests/series/bugs-multiple-references.mbox [new file with mode: 0644]
patchwork/tests/test_series.py