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

Tuple index out of range while calling FETCH #448

Open
paketep opened this issue Oct 1, 2021 · 0 comments
Open

Tuple index out of range while calling FETCH #448

paketep opened this issue Oct 1, 2021 · 0 comments

Comments

@paketep
Copy link

paketep commented Oct 1, 2021

Sadly, I don't have access anymore to the email that caused it, but rather than an IndexError, it would be better to raise some kind of MalformedEmailException or similar. This is the relevant part of the stack trace:

  File "/venv/lib/python3.8/site-packages/imapclient/imapclient.py", line 1370, in fetch
    return parse_fetch_response(data, self.normalise_times, self.use_uid)

  File "/venv/lib/python3.8/site-packages/imapclient/response_parser.py", line 149, in parse_fetch_response
    msg_data[word] = _convert_ENVELOPE(value, normalise_times)

  File "/venv/lib/python3.8/site-packages/imapclient/response_parser.py", line 205, in _convert_ENVELOPE
    message_id=envelope_response[9]

IndexError: tuple index out of range

The same goes for the error reported in issue #347, which I've also seen from time to time.

Thank you!

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

No branches or pull requests

1 participant