From 1d4d46445708c28bff364158300ef36eca0c10e3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tom=C3=A1s=20Touceda?= Date: Fri, 20 Dec 2013 19:20:50 -0300 Subject: Limit the size of the returned messages from IMAP to MUA to 100 --- mail/changes/bug_fetch_size | 4 ++++ mail/src/leap/mail/imap/server.py | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) create mode 100644 mail/changes/bug_fetch_size (limited to 'mail') diff --git a/mail/changes/bug_fetch_size b/mail/changes/bug_fetch_size new file mode 100644 index 0000000..e9e97b9 --- /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 5672e25..2739f8c 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): """ -- cgit v1.2.3