From 5f8855c4174d6b6fb13fd7334541698a01ce23bb Mon Sep 17 00:00:00 2001 From: tonio Date: Fri, 30 Apr 2010 17:41:26 +0200 Subject: [PATCH] Bugfix : subjects with CR characters are now correctly decoded. --- extensions/webmail/imap_listing.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/extensions/webmail/imap_listing.py b/extensions/webmail/imap_listing.py index 2c74f2cb9..2b650afd6 100644 --- a/extensions/webmail/imap_listing.py +++ b/extensions/webmail/imap_listing.py @@ -111,7 +111,8 @@ class IMAPheader(object): @staticmethod def parse_subject(value, **kwargs): res = "" - dcd = decode_header(value) + dcd = decode_header(re.sub("[\\r\\n]+", "", value)) + print dcd for part in dcd: if res != "": res += " "