]> git.ozlabs.org Git - patchwork/commit
parser: allow short-form List-Id headers
authorJeremy Kerr <jk@ozlabs.org>
Sat, 1 Aug 2009 06:05:37 +0000 (16:05 +1000)
committerJeremy Kerr <jk@ozlabs.org>
Sat, 1 Aug 2009 06:08:05 +0000 (16:08 +1000)
commit7d9334e879857f8a380bc9509b6cbf9972cecc25
tree2a9e0d876b62d569bb829ebbd083f849f8c86d7d
parentd9afef53a2102e5a4deba9953749e2bb5c8df486
parser: allow short-form List-Id headers

Some lists (eg, nongnu.org) have short-form List-Id headers. For
example:

List-Id: qemu-devel.nongnu.org

Although RFC 2919 prescribes that:

 list-id-header = "List-ID:" [phrase] "<" list-id ">" CRLF

we should allow for these headers anyway.

Based on an original patch from "J.H." <warthog9@kernel.org>.

Signed-off-by: Jeremy Kerr <jk@ozlabs.org>
apps/patchwork/bin/parsemail.py
apps/patchwork/tests/patchparser.py