Closed blacklight closed 2 weeks ago
Not sure if it's related, but this is the error I'm regularly getting when I move some messages to Trash:
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/local/Cellar/offlineimap/8.0.0_1/libexec/lib/python3.10/site-packages/offlineimap/accounts.py", line 666, in syncfolder
localfolder.syncmessagesto(remotefolder, statusfolder)
File "/usr/local/Cellar/offlineimap/8.0.0_1/libexec/lib/python3.10/site-packages/offlineimap/folder/Base.py", line 1164, in syncmessagesto
action(dstfolder, statusfolder)
File "/usr/local/Cellar/offlineimap/8.0.0_1/libexec/lib/python3.10/site-packages/offlineimap/folder/Base.py", line 1029, in __syncmessagesto_delete
dstfolder.deletemessages(deletelist)
File "/usr/local/Cellar/offlineimap/8.0.0_1/libexec/lib/python3.10/site-packages/offlineimap/folder/IMAP.py", line 1074, in deletemessages
self.__deletemessages_noconvert(uidlist)
File "/usr/local/Cellar/offlineimap/8.0.0_1/libexec/lib/python3.10/site-packages/offlineimap/folder/IMAP.py", line 1080, in __deletemessages_noconvert
self.__addmessagesflags_noconvert(uidlist, set('T'))
File "/usr/local/Cellar/offlineimap/8.0.0_1/libexec/lib/python3.10/site-packages/offlineimap/folder/IMAP.py", line 987, in __addmessagesflags_noconvert
self.__processmessagesflags('+', uidlist, flags)
File "/usr/local/Cellar/offlineimap/8.0.0_1/libexec/lib/python3.10/site-packages/offlineimap/folder/IMAP.py", line 1054, in __processmessagesflags
self.__processmessagesflags_real(operation,
File "/usr/local/Cellar/offlineimap/8.0.0_1/libexec/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
I am also getting this error
@BlackLight Did you find any solution for this?
I am seeing the same: offlineimap v8.0.0, imaplib2 v3.05, Python v3.10.12, OpenSSL 3.0.2 15 Mar 2022
ERROR: Copying message 56452 [acc: Account1]
list index out of range
Thread 'Copy message from RemoteIMAP1:INBOX' terminated with exception:
Traceback (most recent call last):
File "/usr/lib/python3.10/email/_header_value_parser.py", line 2069, in get_msg_id
token, value = get_dot_atom_text(value)
File "/usr/lib/python3.10/email/_header_value_parser.py", line 1334, in get_dot_atom_text
raise errors.HeaderParseError("expected atom at a start of "
email.errors.HeaderParseError: expected atom at a start of dot-atom-text but found
Did anyone have any luck understanding the root cause?
What did you guys come up with for this? We're having the same problems.
Nothing so far, except for blacklisting the related message ids.
@BlackLight @brian-stinar @j-dimension I manually applied this patch and it fixed my problem :-) This is a problem in a python library and not in the OfflineIMAP code.
Hi @remipcomaite
thanks for your comment. Could you provide a patch to solve the problem?
Best regards, kix
Can confirm that PR #170 resolves this issue for me :tada:
General informations
offlineimap -V
): offlineimap v8.0.0, imaplib2 v3.06, Python v3.9.12, OpenSSL 1.1.1n 15 Mar 2022Configuration file offlineimaprc
Logs, error
Steps to reproduce the error
Things were working fine until a few days ago, when the error suddenly started popping out.
I have also tried emptying the Trash folder multiple times from the webapp (most of these errors seem to be caused when syncing the Trash folder), but the issue reproduces later on when I try to move another message to Trash.