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
adjust timer intervals for mailbox space updates and quota checks
lotk4da383d1835b
diff --git a/core/internal/service/timers/timers.go b/core/internal/service/timers/timers.goindex 0e2c1296..75e08ac1 100644--- a/core/internal/service/timers/timers.go+++ b/core/internal/service/timers/timers.go@@ -153,7 +153,7 @@ func Start(ctx context.Context) (err error) {})// Updated: Used space in the mailbox- gtimer.AddOnce(3*time.Second, func() {+ gtimer.AddOnce(20*time.Second, func() {mail_boxes.UpdateMailboxesUsedSpace()})@@ -162,7 +162,7 @@ func Start(ctx context.Context) (err error) {})// Check the email quota and the alert for exceeding the quota- gtimer.AddOnce(4*time.Second, func() {+ gtimer.AddOnce(1*time.Minute, func() {mail_boxes.CheckMailboxesQuotaAlerts(ctx)})@@ -171,7 +171,7 @@ func Start(ctx context.Context) (err error) {})// Initialize the quota plugin and update the quota usage status of the domain name and email- gtimer.AddOnce(3*time.Second, func() {+ gtimer.AddOnce(1*time.Second, func() {err := mail_boxes.InitQuotaPluginAndUpdateUsedSpace(ctx)if err != nil {g.Log().Warning(ctx, "Initialize the quota plugin and update the quota usage status of the domain name and email, failed: ", err)