forked from mirror/django-mailbox
If no message_ids, return before checking for small_message_ids
This commit is contained in:
parent
c3cd5a28ae
commit
7fd5b02054
1 changed files with 3 additions and 3 deletions
|
|
@ -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:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue