[PATCH] views: Add List-Id to mbox

Thomas Monjalon thomas.monjalon at 6wind.com
Sun Dec 11 22:39:33 AEDT 2016


The List-Id header is retrieved from the Project object.

Fixes #53

Signed-off-by: Thomas Monjalon <thomas.monjalon at 6wind.com>
---
 patchwork/views/__init__.py | 1 +
 1 file changed, 1 insertion(+)

diff --git a/patchwork/views/__init__.py b/patchwork/views/__init__.py
index 58fb29f..db11e03 100644
--- a/patchwork/views/__init__.py
+++ b/patchwork/views/__init__.py
@@ -389,6 +389,7 @@ def patch_to_mbox(patch):
     if patch.delegate:
         mail['X-Patchwork-Delegate'] = str(patch.delegate.email)
     mail['Message-Id'] = patch.msgid
+    mail['List-Id'] = patch.project.listid
     mail.set_unixfrom('From patchwork ' + patch.date.ctime())
 
     copied_headers = ['To', 'Cc', 'Date']
-- 
2.7.0



More information about the Patchwork mailing list