summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKali Kaneko <kali@leap.se>2013-12-20 18:36:18 -0400
committerKali Kaneko <kali@leap.se>2013-12-20 18:36:18 -0400
commit20c4a5c369ca7e5e169c17791eeb74756b23fd56 (patch)
tree570a26068375713f79fc1747bb5fbb69687c5bf6
parentef5b6b3fd04ba121bef04895e329ff9d98651da2 (diff)
parent8d4e17a279218de99b495955e96672587cb237e7 (diff)
Merge remote-tracking branch 'chiiph/bug/quickfix_server_fetch_size' into develop
-rw-r--r--changes/bug_fetch_size4
-rw-r--r--src/leap/mail/imap/server.py2
2 files changed, 5 insertions, 1 deletions
diff --git a/changes/bug_fetch_size b/changes/bug_fetch_size
new file mode 100644
index 0000000..e9e97b9
--- /dev/null
+++ b/changes/bug_fetch_size
@@ -0,0 +1,4 @@
+ o Limit the size of the messages returned to the IMAP client to 100,
+ since Thunderbird hangs with numbers bigger than those. This is a
+ quick fix until we figure out how does Thunderbird want to receive
+ more than 100 mails at a time. \ No newline at end of file
diff --git a/src/leap/mail/imap/server.py b/src/leap/mail/imap/server.py
index 5672e25..2739f8c 100644
--- a/src/leap/mail/imap/server.py
+++ b/src/leap/mail/imap/server.py
@@ -1675,7 +1675,7 @@ class SoledadMailbox(WithMsgFields):
if self.isWriteable():
self._unset_recent_flag()
- return tuple(result)
+ return tuple(result[:100])
def _unset_recent_flag(self):
"""