From 6055f35517c6a3b3d1e566bdf59d030d4f488b13 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fr=C3=A9d=C3=A9ric=20P=C3=A9ters?= Date: Fri, 1 Nov 2019 14:06:18 +0100 Subject: [PATCH] feed emails: ignore commits lists --- eodb/events/management/commands/feed_emails.py | 2 ++ 1 file changed, 2 insertions(+) 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]