1
0
Fork 1
mirror of https://github.com/coddingtonbear/django-mailbox.git synced 2026-07-09 22:38:19 +02:00

If no message_ids, return before checking for small_message_ids

This commit is contained in:
Ben Segal 2015-01-31 15:46:49 -08:00
parent c3cd5a28ae
commit 7fd5b02054

View file

@ -72,13 +72,13 @@ class ImapTransport(EmailTransport):
def get_message(self):
message_ids = self._get_all_message_ids()
if not message_ids:
return
# Limit the uids to the small ones if we care about that
if self.max_message_size:
message_ids = self._get_small_message_ids(message_ids)
if not message_ids:
return
if self.archive:
typ, folders = self.server.list(pattern=self.archive)
if folders[0] is None: