From 3d96c6186bdf338257a158216c2a7746db0ad8a8 Mon Sep 17 00:00:00 2001 From: Neil Alexander Date: Fri, 9 Jul 2021 23:45:29 +0100 Subject: [PATCH] Update readme, resend interval 10m --- README.md | 1 - internal/smtpsender/sender.go | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/README.md b/README.md index a41b2d1..cbc1d22 100644 --- a/README.md +++ b/README.md @@ -80,7 +80,6 @@ There are a few important notes: There are probably all sorts of bugs, but the ones that we know of are: * IMAP behaviour might not be entirely spec-compliant in all cases, so your mileage with mail clients might vary; -* SMTP queues up outbound mails in memory rather than in the database right now — if you restart Yggmail, any unsent mails will be lost; * IMAP search isn't implemented yet and will instead return all mails. The code's also a bit of a mess, so sorry about that. diff --git a/internal/smtpsender/sender.go b/internal/smtpsender/sender.go index a8f355b..0d45007 100644 --- a/internal/smtpsender/sender.go +++ b/internal/smtpsender/sender.go @@ -43,7 +43,7 @@ func (qs *Queues) manager() { for _, destination := range destinations { _, _ = qs.queueFor(destination) } - time.AfterFunc(time.Minute*5, qs.manager) + time.AfterFunc(time.Minute*10, qs.manager) } func (qs *Queues) QueueFor(from string, rcpts []string, content []byte) error {