stats.lua currently returns the first and last month details which are used to build the calendar display.
It would be useful to show the number of messages in each month, and not show calendar entries where this is zero.
For example as is done by mod_mbox.
This can be done by an ES aggregation using the date_histogram function on the message date.
Given that all emails in scope need to be scanned anyway to determine the first/last dates, it should not increase the load unduly.
stats.lua currently returns the first and last month details which are used to build the calendar display.
It would be useful to show the number of messages in each month, and not show calendar entries where this is zero. For example as is done by mod_mbox.
This can be done by an ES aggregation using the date_histogram function on the message date. Given that all emails in scope need to be scanned anyway to determine the first/last dates, it should not increase the load unduly.