Message ID | 5189772B.3050704@googlemail.com |
---|---|
State | Superseded |
Headers | show |
diff --git a/apps/patchwork/models.py b/apps/patchwork/models.py index 9129aab..606ffe0 100644 --- a/apps/patchwork/models.py +++ b/apps/patchwork/models.py @@ -281,7 +281,9 @@ class Patch(models.Model): mail['Subject'] = self.name mail['Date'] = email.utils.formatdate( time.mktime(self.date.utctimetuple())) - mail['From'] = unicode(self.submitter) + mail['From'] = email.utils.formataddr( + str(Header(self.submitter.name, 'utf-8')), + self.submitter.email) mail['X-Patchwork-Id'] = str(self.id) mail['Message-Id'] = self.msgid mail.set_unixfrom('From patchwork ' + self.date.ctime())