1
0
Fork 1
mirror of https://github.com/coddingtonbear/django-mailbox.git synced 2026-07-10 06:48:19 +02:00

Adding active/inactive mailboxes, adding outgoing/incoming mail tracking, changing field names, tracking in-reply-to and references.

This commit is contained in:
me@adamcoddington.net 2012-10-09 05:52:04 +00:00
parent e27acaf0ec
commit ff39cff80d
8 changed files with 267 additions and 10 deletions

View file

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