0

In order to avoid

imaplib.error: command: UID => got more than 10000 bytes

I would like to fetch only a specific number of mails or requesting the number of search matches, without throwing an exception.

Is the only way how i can handle this problem, reducing the SINCE BEFORE interval on every exception, until i reach the first or last mail?

Editing _MAXLINE would only affect my environment and isn't helpful in this case.

1 Answer 1

3

The only solution is to reduce SINCE/BEFORE, or its equivalent.

Will you submit a patch for python's imaplib, or shall I? We can't leave this forever.

Sign up to request clarification or add additional context in comments.

1 Comment

The next versions of python should be much more generous. The change has just been committed on the 2.7.x, 3.4.x and 3.5-to-be branches.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.