-
Notifications
You must be signed in to change notification settings - Fork 66
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
offlineimap fails with error: ID command error: BAD [b'invalid command']. Data: b'OOOK2 ID ("name" "OfflineIMAP" "version" "8.0.0")\r\n' #133
Comments
Same problem for me, except that I installed offlineimap3 on a brand new machine.
Log file shows same error as @robertvalik (except that the letters before the "ID" in the Data field are different):
I have two IMAP accounts configured, one of them works perfectly (imap.ionos.de), the other raises the error (imap.univ-amu.fr). |
@drtutut Yes, that string changes every time I run offlineimap. |
I am getting the same error (Mailserver is a Mailu Instance): OfflineIMAP 8.0.0
Licensed under the GNU GPL v2 or any later version (with an OpenSSL exception)
imaplib2 v3.05, Python v3.10.6, OpenSSL 3.0.5 5 Jul 2022
Account sync systemmanufaktur.at:
*** Processing account systemmanufaktur.at
Establishing connection to mail.systemmanufaktur.at:993 (remoteSysmanu)
ERROR: While attempting to sync account 'systemmanufaktur.at'
ID command error: BAD [b'invalid command']. Data: b'HCOH2 ID ("name" "OfflineIMAP" "version" "8.0.0")\r\n'
*** Finished account 'systemmanufaktur.at' in 0:00
ERROR: Exceptions occurred during the run!
ERROR: While attempting to sync account 'systemmanufaktur.at'
ID command error: BAD [b'invalid command']. Data: b'HCOH2 ID ("name" "OfflineIMAP" "version" "8.0.0")\r\n'
Traceback:
File "/usr/share/offlineimap3/offlineimap/accounts.py", line 298, in syncrunner
self.__sync()
File "/usr/share/offlineimap3/offlineimap/accounts.py", line 374, in __sync
remoterepos.getfolders()
File "/usr/share/offlineimap3/offlineimap/repository/IMAP.py", line 681, in getfolders
imapobj = self.imapserver.acquireconnection()
File "/usr/share/offlineimap3/offlineimap/imapserver.py", line 589, in acquireconnection
imapobj.id(l_str)
File "/usr/lib/python3/dist-packages/imaplib2.py", line 868, in id
return self._simple_command(name, data, **kw)
File "/usr/lib/python3/dist-packages/imaplib2.py", line 1684, in _simple_command
return self._command_complete(self._command(name, *args), kw)
File "/usr/lib/python3/dist-packages/imaplib2.py", line 1431, in _command_complete
raise self.error('%s command error: %s %s. Data: %.100s' % (rqb.name, typ, dat, rqb.data)) and with a newer version of imaplib2 too: OfflineIMAP 8.0.0
Licensed under the GNU GPL v2 or any later version (with an OpenSSL exception)
imaplib2 v3.06, Python v3.10.6, OpenSSL 1.1.1q 5 Jul 2022
Account sync systemmanufaktur.at:
*** Processing account systemmanufaktur.at
Establishing connection to mail.systemmanufaktur.at:143 (remoteSysmanu)
ERROR: While attempting to sync account 'systemmanufaktur.at'
ID command error: BAD [b'invalid command']. Data: b'PGGP2 ID ("name" "OfflineIMAP" "version" "8.0.0")\r\n'
*** Finished account 'systemmanufaktur.at' in 0:00
ERROR: Exceptions occurred during the run!
ERROR: While attempting to sync account 'systemmanufaktur.at'
ID command error: BAD [b'invalid command']. Data: b'PGGP2 ID ("name" "OfflineIMAP" "version" "8.0.0")\r\n'
Traceback:
File "/home/mike/repositories/offlineimap3/offlineimap/accounts.py", line 298, in syncrunner
self.__sync()
File "/home/mike/repositories/offlineimap3/offlineimap/accounts.py", line 375, in __sync
remoterepos.getfolders()
File "/home/mike/repositories/offlineimap3/offlineimap/repository/IMAP.py", line 681, in getfolders
imapobj = self.imapserver.acquireconnection()
File "/home/mike/repositories/offlineimap3/offlineimap/imapserver.py", line 589, in acquireconnection
imapobj.id(l_str)
File "/home/mike/repositories/offlineimap3/venv/lib/python3.10/site-packages/imaplib2/imaplib2.py", line 889, in id
return self._simple_command(name, data, **kw)
File "/home/mike/repositories/offlineimap3/venv/lib/python3.10/site-packages/imaplib2/imaplib2.py", line 1705, in _simple_command
return self._command_complete(self._command(name, *args), kw)
File "/home/mike/repositories/offlineimap3/venv/lib/python3.10/site-packages/imaplib2/imaplib2.py", line 1452, in _command_complete
raise self.error('%s command error: %s %s. Data: %.100s' % (rqb.name, typ, dat, rqb.data)) |
Hej, Error log:
|
Sorry, I have still the same problem, but I have a question: Do you also use traefik as loadbalancer, or do you have Mailu with the front container only? |
FYI, I've decided to switch to isync and the It is a pity, offlineimap seems orphaned! |
Yup, I did the same to work around the OfflineIMAP problem. I believe it could be the recommended solution. |
I also have this issue when trying to connect to a Mailu 2.0-Server-instance. Any hints? I am not that keen to switch to isync as others suggested though. This setup used to work against a mailu-1.9 instance, offlineimap running on Debian 11.x. |
Hi, sorry about the delay. Please, could you try the latest offlineimap3 from github and send the output of Best regards, |
it turns out that my mail-stack hat a wrong capabilities-entry which leads offlineimap to fail. This is fixed in the meantime, so I will close this issue now. Thanks for the heads-up. |
After upgrade from py2 offlineimap to py3 offlineimap3 (git clone from this repo) I am unable to get e-mails from my IMAP server. I tried to "clean up" the existing configuration to a bare minimum provided here, still the error is the same. I am getting this error on my Gentoo machine but also on a Debian running in WSL...
General informations
offlineimap -V
): offlineimap v8.0.0, imaplib2 v3.06, Python v3.10.5, OpenSSL 1.1.1q 5 Jul 2022Configuration file offlineimaprc
Logs, error
Steps to reproduce the error
The text was updated successfully, but these errors were encountered: