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

Signed-off-by: Dirk Wallenstein <[email protected]>
---
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

_______________________________________________
Patchwork mailing list
[email protected]
https://lists.ozlabs.org/listinfo/patchwork

Reply via email to