fixed Issue 1555:imap: default string field represent ignores encoding, thanks Alan
This commit is contained in:
@@ -1 +1 @@
|
||||
Version 2.5.1-stable+timestamp.2013.06.23.08.45.09
|
||||
Version 2.5.1-stable+timestamp.2013.06.23.08.47.09
|
||||
|
||||
@@ -6071,6 +6071,8 @@ class IMAPAdapter(NoSQLAdapter):
|
||||
def header_represent(f, r):
|
||||
from email.header import decode_header
|
||||
text, encoding = decode_header(f)[0]
|
||||
if encoding:
|
||||
text = text.decode(encoding).encode('utf-8')
|
||||
return text
|
||||
|
||||
def encode_text(self, text, charset, errors="replace"):
|
||||
|
||||
Reference in New Issue
Block a user