Convert bytes to string in IMAP folder
Convert the IMAP reply to string.
This commit is contained in:
parent
1379c32c5a
commit
e61e77cf40
@ -295,7 +295,7 @@ class IMAPFolder(BaseFolder):
|
|||||||
# Discard initial message number.
|
# Discard initial message number.
|
||||||
if messagestr is None:
|
if messagestr is None:
|
||||||
continue
|
continue
|
||||||
messagestr = messagestr.split(' ', 1)[1]
|
messagestr = messagestr.decode('utf-8').split(' ', 1)[1]
|
||||||
options = imaputil.flags2hash(messagestr)
|
options = imaputil.flags2hash(messagestr)
|
||||||
if 'UID' not in options:
|
if 'UID' not in options:
|
||||||
self.ui.warn('No UID in message with options %s'%
|
self.ui.warn('No UID in message with options %s'%
|
||||||
|
Loading…
Reference in New Issue
Block a user