mirror of
https://github.com/coddingtonbear/django-mailbox.git
synced 2026-07-10 06:48:19 +02:00
13 lines
308 B
Python
13 lines
308 B
Python
import logging
|
|
|
|
from django.core.management.base import BaseCommand
|
|
|
|
from django_mailbox.models import Mailbox
|
|
|
|
logger = logging.getLogger(__name__)
|
|
logging.basicConfig(level=logging.INFO)
|
|
|
|
|
|
class Command(BaseCommand):
|
|
def handle(self, *args, **options):
|
|
Mailbox.get_new_mail_all_mailboxes(args)
|