Convert bytes to string in IMAP folder

Convert the IMAP reply to string.
This commit is contained in:
Rodolfo García Peñas (kix) 2020-08-28 17:25:06 +02:00
parent 1379c32c5a
commit e61e77cf40

View File

@ -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'%