diff --git a/eodb/events/management/commands/feed_emails.py b/eodb/events/management/commands/feed_emails.py index e393c97..748941c 100644 --- a/eodb/events/management/commands/feed_emails.py +++ b/eodb/events/management/commands/feed_emails.py @@ -18,7 +18,10 @@ class Command(BaseCommand): for maildir in options.get('maildir'): if 'commits' in maildir: continue + if options['verbosity'] >= 2: + print(maildir) box = mailbox.Maildir(maildir, create=False) + count = 0 for message_id in box.iterkeys(): message = box[message_id] try: @@ -37,3 +40,6 @@ class Command(BaseCommand): 'list_id': list_id, 'author_email': author_email, 'author_datetime': author_date}) + count += 1 + if options['verbosity'] >= 2: + print(' ->', count)