]> git.ozlabs.org Git - patchwork/commitdiff
Add Message-Id to xmlrpc patch_get_mbox headers
authorThomas Gleixner <tglx@linutronix.de>
Thu, 17 Sep 2009 11:23:09 +0000 (13:23 +0200)
committerJeremy Kerr <jk@ozlabs.org>
Fri, 18 Sep 2009 02:02:21 +0000 (10:02 +0800)
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@linutronix.de>
Signed-off-by: Jeremy Kerr <jk@ozlabs.org>
apps/patchwork/models.py

index fa213dc03e8dfa9a068e11f780d581a358acdb4d..75dc041dae49ca10bdfd9060c091bec5aa33526d 100644 (file)
@@ -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