docker-offlineimap/offlineimap
Rodolfo García Peñas (kix) 442c88d838 imaplib expect bytes in the append
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')
2020-10-25 20:36:07 +01:00
..
folder imaplib expect bytes in the append 2020-10-25 20:36:07 +01:00
repository get_os_sslcertfile_searchpath do not check iterable 2020-10-25 17:32:38 +01:00
ui ui/UIBase.py do not use builtin object as variable 2020-08-30 18:12:17 +02:00
utils get_os_sslcertfile_searchpath do not check iterable 2020-10-25 17:32:38 +01:00
__init__.py Reformat offlineimap/__init__.py 2020-08-29 20:04:40 +02:00
accounts.py accounts: decode output of hooks 2020-10-12 09:01:59 +02:00
CustomConfig.py six: changed offlineimap/CustomConfig.py 2020-09-03 21:35:54 +02:00
emailutil.py emailutil.py updated docstrings 2020-08-30 18:21:00 +02:00
error.py Reformat offlineimap/error.py 2020-08-29 20:15:55 +02:00
globals.py Reformat offlineimap/globals.py 2020-08-29 20:16:35 +02:00
imaplibutil.py six: changed offlineimap/imaplibutil.py 2020-09-03 21:36:02 +02:00
imapserver.py imapserver.py: fix __xoauth2handler in Python 3 2020-09-29 10:04:07 +02:00
imaputil.py Allow folder names with atom specials 2020-10-11 23:01:08 +02:00
init.py removed virtual_imaplib2 2020-08-31 16:24:26 +02:00
localeval.py localeval.py removed extra parenthesys 2020-08-30 18:52:56 +02:00
mbnames.py mbnames.py removed extra parenthesys 2020-08-30 18:53:02 +02:00
threadutil.py Removed doxygen param 2020-10-10 14:50:47 +02:00