forked from mirror/django-mailbox
Adding active/inactive mailboxes, adding outgoing/incoming mail tracking, changing field names, tracking in-reply-to and references.
This commit is contained in:
parent
e27acaf0ec
commit
ff39cff80d
8 changed files with 267 additions and 10 deletions
|
|
@ -4,7 +4,7 @@ from django_mailbox.models import Mailbox
|
|||
|
||||
class Command(BaseCommand):
|
||||
def handle(self, *args, **options):
|
||||
mailboxes = Mailbox.objects.all()
|
||||
mailboxes = Mailbox.active_mailboxes.all()
|
||||
if args:
|
||||
mailboxes = mailboxes.filter(name = ' '.join(args))
|
||||
for mailbox in mailboxes:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue