From patchwork Thu Jan 13 08:37:56 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: Decode the subject header X-Patchwork-Submitter: Dirk Wallenstein X-Patchwork-Id: 78680 Message-Id: <1294907876-17218-1-git-send-email-halsmit@t-online.de> To: patchwork@lists.ozlabs.org Date: Thu, 13 Jan 2011 09:37:56 +0100 From: Dirk Wallenstein List-Id: Patchwork development The clean_header function decodes internationalized headers. Use it for the subject, too. Signed-off-by: Dirk Wallenstein --- An example is here: http://patchwork.freedesktop.org/patch/3648/ apps/patchwork/bin/parsemail.py | 2 ++ 1 files changed, 2 insertions(+), 0 deletions(-) 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: