On 02/15/2018 08:17 PM, kawhite@ancestry.com wrote:
Hi, I am importing hundreds of thousands of mbox archive files and I want to know if there is a way to call a list and see how many archives got imported / are in the list now (is there a hyperkitty command to gets stats such as number of archives on a list?)
If you want to know the email/thread count you can do the following: open a new django shell ( python manage.py shell)
the do the following: from hyperkitty.models.mailinglist import MailingList # you can get a specific list with MailingList.objects.get(pk=1) read django docs on how to query. # or for all: for list in MailingList.objects.all(): print('{}: {} threads, {} emails'.format(list.name, list.threads.count(), list.emails.count()))