From patchwork Thu Jan 13 08:37:56 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Dirk Wallenstein X-Patchwork-Id: 78680 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from bilbo.ozlabs.org (localhost [127.0.0.1]) by ozlabs.org (Postfix) with ESMTP id 0E284B70EF for ; Thu, 13 Jan 2011 19:38:20 +1100 (EST) Received: from mailout05.t-online.de (mailout05.t-online.de [194.25.134.82]) by ozlabs.org (Postfix) with ESMTP id 28BD0B70E9 for ; Thu, 13 Jan 2011 19:38:18 +1100 (EST) Received: from fwd05.aul.t-online.de (fwd05.aul.t-online.de ) by mailout05.t-online.de with smtp id 1PdIhB-0001RF-VQ; Thu, 13 Jan 2011 09:38:14 +0100 Received: from localhost.localdomain (ZwzfSMZAZhocjDDgqx-HuFglpxOArHQ5Fb9wvy7YLLl9FoCN27BBiP4wnd0GaZBQ+h@[84.139.36.93]) by fwd05.t-online.de with esmtp id 1PdIh2-1mWpou0; Thu, 13 Jan 2011 09:38:04 +0100 From: Dirk Wallenstein To: patchwork@lists.ozlabs.org Subject: [PATCH] Decode the subject header Date: Thu, 13 Jan 2011 09:37:56 +0100 Message-Id: <1294907876-17218-1-git-send-email-halsmit@t-online.de> X-Mailer: git-send-email 1.7.3.2 X-ID: ZwzfSMZAZhocjDDgqx-HuFglpxOArHQ5Fb9wvy7YLLl9FoCN27BBiP4wnd0GaZBQ+h X-TOI-MSGID: 26e6fc62-eacb-463a-963b-ba0f387d1d0a X-BeenThere: patchwork@lists.ozlabs.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: Patchwork development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Sender: patchwork-bounces+incoming=patchwork.ozlabs.org@lists.ozlabs.org Errors-To: patchwork-bounces+incoming=patchwork.ozlabs.org@lists.ozlabs.org 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: