This repository has been archived on 2023-02-21. You can view files and clone it, but cannot push or open issues or pull requests.
|
from django.core.management.base import BaseCommand, CommandError
|
|
from logtracker.data.models import Mail
|
|
|
|
class Command(BaseCommand):
|
|
help = 'Collect entries from exim4 log'
|
|
|
|
def handle(self, *args, **options):
|
|
for mail in Mail.objects.filter(has_error=True):
|
|
print(mail)
|