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 unbounded recursion in IMAPFolder #100

Closed
wants to merge 1 commit into from
Closed

Fix unbounded recursion in IMAPFolder #100

wants to merge 1 commit into from

Conversation

josh-berry
Copy link

When processing message flags, we were recursing once per 100 messages.
This causes RuntimeError("maximum recursion depth ...") when there are a
lot of messages in a folder that need to be updated. Instead of
recursing, iterate as the XXX comment suggests.

When processing message flags, we were recursing once per 100 messages.
This causes RuntimeError("maximum recursion depth ...") when there are a
lot of messages in a folder that need to be updated.  Instead of
recursing, iterate as the XXX comment suggests.
konvpalto added a commit that referenced this pull request Jul 8, 2014
We can do a simpler and more stack-friendly hack for IMAP
servers with limited line lenghts.

Reported-by: Josh Berry, https://github.com/josh-berry
GH: #100
Signed-off-by: Eygene Ryabinkin <rea@codelabs.ru>
@konvpalto
Copy link
Member

Pushed to "next" commit 1f2e8af that is a bit more radical rework: it completely eliminates recursion. Please, test.

@cro
Copy link

cro commented Jul 8, 2014

Checking now.

@cro
Copy link

cro commented Jul 8, 2014

Seems to work well for me.

@konvpalto konvpalto closed this Jul 10, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants