mirror of
https://github.com/coddingtonbear/django-mailbox.git
synced 2026-07-10 06:48:19 +02:00
Merge pull request #41 from benjamin0/master
If no message_ids, return before checking for small_message_ids
This commit is contained in:
commit
0dc0ab2d13
1 changed files with 3 additions and 3 deletions
|
|
@ -72,13 +72,13 @@ class ImapTransport(EmailTransport):
|
||||||
def get_message(self):
|
def get_message(self):
|
||||||
message_ids = self._get_all_message_ids()
|
message_ids = self._get_all_message_ids()
|
||||||
|
|
||||||
|
if not message_ids:
|
||||||
|
return
|
||||||
|
|
||||||
# Limit the uids to the small ones if we care about that
|
# Limit the uids to the small ones if we care about that
|
||||||
if self.max_message_size:
|
if self.max_message_size:
|
||||||
message_ids = self._get_small_message_ids(message_ids)
|
message_ids = self._get_small_message_ids(message_ids)
|
||||||
|
|
||||||
if not message_ids:
|
|
||||||
return
|
|
||||||
|
|
||||||
if self.archive:
|
if self.archive:
|
||||||
typ, folders = self.server.list(pattern=self.archive)
|
typ, folders = self.server.list(pattern=self.archive)
|
||||||
if folders[0] is None:
|
if folders[0] is None:
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue