[PATCH] Decode the subject header

Dirk Wallenstein halsmit at t-online.de
Thu Jan 13 19:37:56 EST 2011


The clean_header function decodes internationalized headers.  Use it for
the subject, too.

Signed-off-by: Dirk Wallenstein <halsmit at t-online.de>
---
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:
-- 
1.7.3.2



More information about the Patchwork mailing list