From 26fe3acbc7c41f5f130223f880fd2cbc6a29491d Mon Sep 17 00:00:00 2001 From: Kali Kaneko Date: Wed, 5 Mar 2014 12:13:43 -0400 Subject: workaround attempt for the recursionlimit bug with qtreactor. Increasing the recursion limit by an order of magnitude here seems to allow a fetch of a mailbox with 500 mails. See #5196 for discussion of alternatives. --- mail/src/leap/mail/imap/service/imap.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'mail') diff --git a/mail/src/leap/mail/imap/service/imap.py b/mail/src/leap/mail/imap/service/imap.py index 1175cdc..10ba32a 100644 --- a/mail/src/leap/mail/imap/service/imap.py +++ b/mail/src/leap/mail/imap/service/imap.py @@ -57,7 +57,7 @@ import resource import sys try: - sys.setrecursionlimit(10**6) + sys.setrecursionlimit(10**7) except Exception: print "Error setting recursion limit" try: -- cgit v1.2.3