
Hi,
After running hyperkitty_import to import thousands of emails from mailman2 (the years 2013-2025) I then ran another import for years 2004-2013 from another mbox file. It was an entirely earlier timeframe, which may be relevant.
After the first import, the "Threads by month" dropdown showed 2013-2025.
After the second import, the "Threads by month" dropdown showed 2013-2025.
That is, 2004-2013 are missing. I have tried various things, including the mailman3-web cron maintenance tasks, waiting a day, and rebooting the server to clear memory. All messages were imported, and can be seen in "All threads". The messages are there. The only problem is the "Threads by month" dropdown. Beyond the dropdown, everything seems fine. Could it be a bug? Should I open an issue? Or, what should I try next? Is there a "refresh all threads by month" specific task?
Deleting all archives and importing the older messages first... that worked correctly. It is a large destructive actions though, should that count as the official solution?
Detour:
While debugging it seemed to be an interesting question whether the mailman3-web periodic cron tasks had been running, and if those tasks affected the hyperkitty import. Referring to "Cron Jobs for Mailman Web" https://docs.mailman3.org/en/latest/install/virtualenv.html#cron-jobs-for-ma... Those instructions are not dumping stdout/stderr to a log file, nor rotating the log files. What is your opinion if I sent a pull request that adds "Method 2 - Advanced", and include logging for the crons. Or maybe I am missing something. Is the output of the cron tasks getting logged in your environment?