forked from mirror/django-mailbox
Do not attempt to fetch mail for mailbox not having a URI.
--HG-- branch : exim4_pipe
This commit is contained in:
parent
e165d16660
commit
0515cf7f74
1 changed files with 2 additions and 0 deletions
|
|
@ -8,6 +8,8 @@ class Command(BaseCommand):
|
|||
if args:
|
||||
mailboxes = mailboxes.filter(name = ' '.join(args))
|
||||
for mailbox in mailboxes:
|
||||
if not mailbox.uri:
|
||||
continue
|
||||
self.stdout.write('Gathering messages for %s\n' % mailbox.name)
|
||||
messages = mailbox.get_new_mail()
|
||||
for message in messages:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue