diff options
author | Kali Kaneko <kali@leap.se> | 2013-12-20 18:36:18 -0400 |
---|---|---|
committer | Kali Kaneko <kali@leap.se> | 2013-12-20 18:36:18 -0400 |
commit | 402eb5968f194c5d3c91ca5b64c75f38befd0ee8 (patch) | |
tree | b368492bc9e42415f9fab3e13f143695afaa3609 | |
parent | 9b069df038d1cf1b1cea2e3f2960464b708b0d76 (diff) | |
parent | 1d4d46445708c28bff364158300ef36eca0c10e3 (diff) |
Merge remote-tracking branch 'chiiph/bug/quickfix_server_fetch_size' into develop
-rw-r--r-- | mail/changes/bug_fetch_size | 4 | ||||
-rw-r--r-- | mail/src/leap/mail/imap/server.py | 2 |
2 files changed, 5 insertions, 1 deletions
diff --git a/mail/changes/bug_fetch_size b/mail/changes/bug_fetch_size new file mode 100644 index 00000000..e9e97b9f --- /dev/null +++ b/mail/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/mail/src/leap/mail/imap/server.py b/mail/src/leap/mail/imap/server.py index 5672e258..2739f8c6 100644 --- a/mail/src/leap/mail/imap/server.py +++ b/mail/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): """ |