diff --git a/eodb/events/management/commands/feed_emails.py b/eodb/events/management/commands/feed_emails.py index 0a9c9fc..e393c97 100644 --- a/eodb/events/management/commands/feed_emails.py +++ b/eodb/events/management/commands/feed_emails.py @@ -16,6 +16,8 @@ class Command(BaseCommand): def handle(self, *args, **options): for maildir in options.get('maildir'): + if 'commits' in maildir: + continue box = mailbox.Maildir(maildir, create=False) for message_id in box.iterkeys(): message = box[message_id]