docker-offlineimap/offlineimap/folder
Thomas De Schampheleire 423785725b IMAP.py: server responses are in bytes, not string
Following error is seen when parsing server responses for sent mail:

2020-10-12 08:19:11 WARNING: Can't parse FETCH response, we awaited string: b' UID 26855)'
2020-10-12 08:19:11 WARNING: savemessage: Searching mails for new Message-ID failed. Could not determine new UID on Sent.

The comparison with 'type("")' means comparing with 'string' type in Python
3, but the left-hand side is a bytes object.

In case a tuple was received (first case in the code), the input is already
decoded from bytes to strings, but in case a single input was received it
was not.

Note that the comparison with 'type("")' is a bit odd, a more logical way
seems to be:
    if isinstance(item, bytes)

Signed-off-by: Thomas De Schampheleire <thomas.de_schampheleire@nokia.com>
2020-10-12 09:01:51 +02:00
..
__init__.py Removed extra line in offlineimap/folder/__init__.py 2020-08-29 20:41:27 +02:00
Base.py Base.py Comment unused code in savemessagelabels 2020-10-10 17:23:05 +02:00
Gmail.py Renamed variable already used 2020-10-10 17:24:18 +02:00
GmailMaildir.py Removed mutable arguments 2020-10-10 15:00:34 +02:00
IMAP.py IMAP.py: server responses are in bytes, not string 2020-10-12 09:01:51 +02:00
LocalStatus.py Removed mutable arguments 2020-10-10 15:00:34 +02:00
LocalStatusSQLite.py Removed mutable arguments 2020-10-10 15:00:34 +02:00
Maildir.py Removed mutable arguments 2020-10-10 15:00:34 +02:00
UIDMaps.py six: changed offlineimap/folder/UIDMaps.py 2020-09-03 21:35:57 +02:00