From: Dirk Wallenstein Date: Wed, 12 Jan 2011 22:37:56 +0000 (+0000) Subject: parser: Decode the subject header X-Git-Tag: v0.9.0~179 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=fae459d0b284b9a04cdf95f375357addc8ed36ec;p=thirdparty%2Fpatchwork.git parser: Decode the subject header The clean_header function decodes internationalized headers. Use it for the subject, too. Signed-off-by: Dirk Wallenstein Signed-off-by: Jeremy Kerr --- diff --git a/apps/patchwork/bin/parsemail.py b/apps/patchwork/bin/parsemail.py index 700cb6fc..0a9daf54 100755 --- a/apps/patchwork/bin/parsemail.py +++ b/apps/patchwork/bin/parsemail.py @@ -306,6 +306,8 @@ def clean_subject(subject, drop_prefixes = None): '[bar] meep' """ + subject = clean_header(subject) + if drop_prefixes is None: drop_prefixes = [] else: