feed emails: display list names and message counts in verbose mode
This commit is contained in:
parent
6055f35517
commit
0449a457b2
|
@ -18,7 +18,10 @@ class Command(BaseCommand):
|
||||||
for maildir in options.get('maildir'):
|
for maildir in options.get('maildir'):
|
||||||
if 'commits' in maildir:
|
if 'commits' in maildir:
|
||||||
continue
|
continue
|
||||||
|
if options['verbosity'] >= 2:
|
||||||
|
print(maildir)
|
||||||
box = mailbox.Maildir(maildir, create=False)
|
box = mailbox.Maildir(maildir, create=False)
|
||||||
|
count = 0
|
||||||
for message_id in box.iterkeys():
|
for message_id in box.iterkeys():
|
||||||
message = box[message_id]
|
message = box[message_id]
|
||||||
try:
|
try:
|
||||||
|
@ -37,3 +40,6 @@ class Command(BaseCommand):
|
||||||
'list_id': list_id,
|
'list_id': list_id,
|
||||||
'author_email': author_email,
|
'author_email': author_email,
|
||||||
'author_datetime': author_date})
|
'author_datetime': author_date})
|
||||||
|
count += 1
|
||||||
|
if options['verbosity'] >= 2:
|
||||||
|
print(' ->', count)
|
||||||
|
|
Reference in New Issue