mirror of
https://github.com/jwinterm/modoboa.git
synced 2026-10-18 05:51:26 +02:00
Bugfix : subjects with CR characters are now correctly decoded.
This commit is contained in:
@@ -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 += " "
|
||||
|
||||
Reference in New Issue
Block a user