@@ -107,6 +107,11 @@ class MboxHeaderTest(TestCase):
header = 'From: John Doe <john@doe.com>'
self._test_header_passthrough(header)
+ def test_header_passthrough_listid(self):
+ """Validate passthrough of 'List-ID' header."""
+ header = 'List-Id: Patchwork development <patchwork.lists.ozlabs.org>'
+ self._test_header_passthrough(header)
+
def test_patchwork_id_header(self):
"""Validate inclusion of generated 'X-Patchwork-Id' header."""
patch = create_patch()
@@ -393,7 +393,7 @@ def patch_to_mbox(patch):
mail['Message-Id'] = patch.msgid
mail.set_unixfrom('From patchwork ' + patch.date.ctime())
- copied_headers = ['To', 'Cc', 'Date', 'From']
+ copied_headers = ['To', 'Cc', 'Date', 'From', 'List-Id']
orig_headers = HeaderParser().parsestr(str(patch.headers))
for header in copied_headers:
if header in orig_headers:
Signed-off-by: Stephen Finucane <stephen@that.guru> Closes-bug: #53 --- patchwork/tests/test_mboxviews.py | 5 +++++ patchwork/views/__init__.py | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-)