From: Thomas Gleixner Date: Thu, 17 Sep 2009 11:23:09 +0000 (+0200) Subject: Add Message-Id to xmlrpc patch_get_mbox headers X-Git-Url: http://git.ozlabs.org/?a=commitdiff_plain;h=3d807d7921ac32fca7e01c008412f0f46d96d076;hp=4fc6a16910e595401e919abde28cca436193e0dd;p=patchwork Add Message-Id to xmlrpc patch_get_mbox headers 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 Signed-off-by: Jeremy Kerr --- 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