Skip to content
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

Fix for handling long server responce #4

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

grisov
Copy link

@grisov grisov commented Jul 27, 2016

When handle long server response like this:

"* 29 FETCH (FLAGS () UID 186)\n"

we have an error:

Traceback (most recent call last):
File "imapidle\src\imapidle.py", line 15, in idle
uid, message = resp[2:-2].split(' ')
ValueError: too many values to unpack

This small change adds error handling for the above case.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant