-
Notifications
You must be signed in to change notification settings - Fork 86
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
imapclient.exceptions.ProtocolError: Server replied with a response that violates the IMAP protocol #351
Comments
The debug output is super useful. Thanks for collecting it. It looks like Gmail is sometimes not returning a valid untagged response (note how |
Here's a few more examples. 2018-09-17 17:28:26,560 - Thread-mail_example.de_mx1 - DEBUG: IMAP IDLE response: [] 018-09-18 07:36:26,070 - Thread-mail_example.de_mx1 - DEBUG: IMAP IDLE response: [] 2018-09-18 20:20:26,817 - Thread-mail_example.de_mx2 - DEBUG: IMAP IDLE response: [] 2018-09-18 20:16:26,090 - Thread-mail_test.de_mx1 - DEBUG: IMAP IDLE response: [] 2018-09-18 20:20:26,752 - Thread-mail_test.de_mx2 - DEBUG: IMAP IDLE response: [] |
I get this exception when I issue a NOOP command to Gmail:
|
And something else with Outlook.com:
|
It seems like you might be calling NOOP while idling. Is that possible? You need stop idling by calling |
It would be useful if you could provide a minimal code example that triggers the problem. |
Closing due to inactivity. Please reopen if this is still a problem for you and you are able to provide more detail. |
Sometimes I get this error after new email is received.
imapclient.exceptions.ProtocolError: Server replied with a response that violates the IMAP protocol
I ran my code with debugging and the log is available here: https://pastebin.com/4Pc46YRD
I am connectting to gmail imap server and I am not sure how to fully reproduce this error. But it always happens eventually and only after mail is received.
The text was updated successfully, but these errors were encountered: