Bugfix : subjects with CR characters are now correctly decoded.

This commit is contained in:
tonio
2010-04-30 17:41:26 +02:00
parent 007fc6762f
commit 5f8855c417
+2 -1
View File
@@ -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 += " "