1
0
Fork 0
django-mailbox/django_mailbox/management/commands/getmail.py

12 lines
278 B
Python
Raw Normal View History

import logging
2012-06-27 20:45:01 -07:00
from django.core.management.base import BaseCommand
from django_mailbox.models import Mailbox
2012-06-27 20:45:01 -07:00
class Command(BaseCommand):
def handle(self, *args, **options):
logging.basicConfig(level=logging.INFO)
Mailbox.get_new_mail_all_mailboxes(args)