forked from mirror/django-mailbox
* moving logic for processing all the new emails from all mailboxes to a method under Mailbox so it can be called from other modules * moving logger lines into handle method as requested
11 lines
278 B
Python
11 lines
278 B
Python
import logging
|
|
|
|
from django.core.management.base import BaseCommand
|
|
|
|
from django_mailbox.models import Mailbox
|
|
|
|
|
|
class Command(BaseCommand):
|
|
def handle(self, *args, **options):
|
|
logging.basicConfig(level=logging.INFO)
|
|
Mailbox.get_new_mail_all_mailboxes(args)
|