feed emails: ignore commits lists

This commit is contained in:
Frédéric Péters 2019-11-01 14:06:18 +01:00
parent cd74feb4a1
commit 6055f35517
1 changed files with 2 additions and 0 deletions

View File

@ -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]