BillionMail gives you open-source MailServer, NewsLetter, Email Marketing — fully self-hosted, dev-friendly, and free from monthly fees. Join the discord: https://discord.gg/asfXzBUhZr
Fixed maillog_stat cannot detect logs when maillog is rotated.
Jack7087ae8d953c
diff --git a/core/internal/service/maillog_stat/maillog_stat.go b/core/internal/service/maillog_stat/maillog_stat.goindex 5ab5b8d5..2bd8d138 100644--- a/core/internal/service/maillog_stat/maillog_stat.go+++ b/core/internal/service/maillog_stat/maillog_stat.go@@ -790,7 +790,7 @@ func NewMallogEventHandler(maillogPath string, delay time.Duration) *MallogEvent// Start starts the mail log event handlerfunc (handler *MallogEventHandler) Start() {- _, err := gfsnotify.Add(handler.maillogStat.maillogPath, func(event *gfsnotify.Event) {+ _, err := gfsnotify.Add(filepath.Dir(handler.maillogStat.maillogPath), func(event *gfsnotify.Event) {// g.Log().Debug(context.Background(), "MallogEventHandler: catch event", event)if event.IsWrite() {