1
0
mirror of https://github.com/axllent/mailpit.git synced 2025-07-17 01:32:33 +02:00

Feature: Unread statistics

This commit is contained in:
Ralph Slooten
2022-07-30 19:58:31 +12:00
parent 335b0f3876
commit a85a74bb9a
6 changed files with 156 additions and 48 deletions

View File

@ -81,6 +81,7 @@ func pruneCron() {
}
elapsed := time.Since(start)
logger.Log().Infof("Pruned %d messages from %s in %s", limit, m, elapsed)
statsRefresh(m)
if !strings.HasSuffix(m, "_data") {
websockets.Broadcast("prune", nil)
}