442c88d838
imaplib2 is doing this code for strings: if isinstance(message, str): message = bytes(message, 'ASCII') But our message is already encoded using 'utf-8'. Then, we can set the message as bytes, encoded using 'utf-8' in offlineimap and imaplib2 won't change our message. This patch solves this problem: WARNING:OfflineImap: Traceback: File "/home/kix/src/offlineimap3/offlineimap/folder/Base.py", line 1127, in syncmessagesto action(dstfolder, statusfolder) File "/home/kix/src/offlineimap3/offlineimap/folder/Base.py", line 955, in __syncmessagesto_copy self.copymessageto(uid, dstfolder, statusfolder, register=0) File "/home/kix/src/offlineimap3/offlineimap/folder/Base.py", line 855, in copymessageto new_uid = dstfolder.savemessage(uid, message, flags, rtime) File "/home/kix/src/offlineimap3/offlineimap/folder/IMAP.py", line 668, in savemessage (typ, dat) = imapobj.append(self.getfullIMAPname(), File "/usr/lib/python3/dist-packages/imaplib2.py", line 660, in append message = bytes(message, 'ASCII') |
||
---|---|---|
.. | ||
__init__.py | ||
Base.py | ||
Gmail.py | ||
GmailMaildir.py | ||
IMAP.py | ||
LocalStatus.py | ||
LocalStatusSQLite.py | ||
Maildir.py | ||
UIDMaps.py |