From: Dirk Wallenstein Date: Wed, 12 Jan 2011 22:37:56 +0000 (+0000) Subject: parser: Decode the subject header X-Git-Url: https://git.ozlabs.org/?a=commitdiff_plain;h=fae459d0b284b9a04cdf95f375357addc8ed36ec;p=patchwork 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 700cb6f..0a9daf5 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: