[PATCH] Add Message-Id to xmlrpc patch_get_mbox headers

Thomas Gleixner tglx at linutronix.de
Thu Sep 17 21:23:09 EST 2009


While trying to utilize patchwork for my daily workflow I noticed that
the xmlrpc patch_get_mbox function does not add the original message
id to the headers. That forces me to look it up with the browser which
is a major PITA.

Add Message-Id to the headers.

Signed-off-by: Thomas Gleixner <tglx at linutronix.de>
---
diff --git a/apps/patchwork/models.py b/apps/patchwork/models.py
index fa213dc..75dc041 100644
--- a/apps/patchwork/models.py
+++ b/apps/patchwork/models.py
@@ -266,6 +266,7 @@ class Patch(models.Model):
                         time.mktime(self.date.utctimetuple()))
         mail['From'] = unicode(self.submitter)
         mail['X-Patchwork-Id'] = str(self.id)
+        mail['Message-Id'] = self.msgid
         mail.set_unixfrom('From patchwork ' + self.date.ctime())
 
         return mail


More information about the Patchwork mailing list