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

Do not attempt to fetch mail for mailbox not having a URI.

--HG--
branch : exim4_pipe
This commit is contained in:
me@adamcoddington.net 2012-10-08 15:28:37 +00:00
parent e165d16660
commit 0515cf7f74

View file

@ -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: