OfflineIMAP / offlineimap

Read/sync your IMAP mailboxes (python2) [LEGACY: move to offlineimap3]
http://www.offlineimap.org
Other
1.78k stars 360 forks source link

TypeError while printing error in IMAP.py #712

Closed jakkdl closed 2 years ago

jakkdl commented 2 years ago

General informations

Logs, error

Folder All Mail [acc: main]:
 ERROR: while syncing All Mail [account main]
  sequence item 0: expected str instance, bytes found
 ERROR: ERROR in syncfolder for main folder All Mail: Traceback (most recent call last):
  File "/usr/lib/python3.10/site-packages/offlineimap/accounts.py", line 666, in syncfolder
    localfolder.syncmessagesto(remotefolder, statusfolder)
  File "/usr/lib/python3.10/site-packages/offlineimap/folder/Base.py", line 1164, in syncmessagesto
    action(dstfolder, statusfolder)
  File "/usr/lib/python3.10/site-packages/offlineimap/folder/Base.py", line 1114, in __syncmessagesto_flags
    dstfolder.addmessagesflags(uids, set(flag))
  File "/usr/lib/python3.10/site-packages/offlineimap/folder/IMAP.py", line 995, in addmessagesflags
    self.__addmessagesflags_noconvert(uidlist, flags)
  File "/usr/lib/python3.10/site-packages/offlineimap/folder/IMAP.py", line 987, in __addmessagesflags_noconvert
    self.__processmessagesflags('+', uidlist, flags)
  File "/usr/lib/python3.10/site-packages/offlineimap/folder/IMAP.py", line 1054, in __processmessagesflags
    self.__processmessagesflags_real(operation,
  File "/usr/lib/python3.10/site-packages/offlineimap/folder/IMAP.py", line 1019, in __processmessagesflags_real
    'Error with store: %s' % '. '.join(response[1]),
TypeError: sequence item 0: expected str instance, bytes found

  sequence item 0: expected str instance, bytes found

Steps to reproduce the error

nicolas33 commented 2 years ago

This legacy project works with py2 only. There's offlineimap3 for python3.