]> git.ozlabs.org Git - patchwork/commit
models: fix From header in mbox view
authorAndreas Bießmann <andreas.devel@googlemail.com>
Fri, 10 May 2013 00:44:26 +0000 (00:44 +0000)
committerJeremy Kerr <jk@ozlabs.org>
Tue, 14 May 2013 10:36:04 +0000 (18:36 +0800)
commit2f0eb64a6d543b26aa0a38ff1d5a09389a5b2f5c
treee7c5956c11a987c862a4a58ab1a1193a8b0cbd9e
parentb75cf75bf2b9aa0012f97e48936843f9bc6f1a9d
models: fix From header in mbox view

The From header in mbox view was corrupt for patch submitters with non-ASCII
characters in their names. RFC 2822 requires to retain the mail as ASCII in
braces '<' and '>' while the name should be coded. Before we coded the whole
string which led to some MUA misinterpret the From header (while git could
manage it).
Fix this by coding just the name and let the email untouched.

Signed-off-by: Andreas Bießmann <andreas.devel@googlemail.com>
Signed-off-by: Jeremy Kerr <jk@ozlabs.org>
apps/patchwork/models.py