fix Message-Id, fixes #20

This commit is contained in:
Aine
2022-09-08 14:08:17 +03:00
parent 9a121b6ed5
commit 08aa23b397

View File

@@ -300,7 +300,7 @@ func (b *Bot) runSend(ctx context.Context) {
} }
from := mailbox + "@" + b.domain from := mailbox + "@" + b.domain
ID := evt.ID.String()[1:] + "@" + b.domain ID := fmt.Sprintf("<%s@%s>", evt.ID, b.domain)
data := utils. data := utils.
NewEmail(ID, "", subject, from, to, body, "", nil). NewEmail(ID, "", subject, from, to, body, "", nil).
Compose(b.getBotSettings().DKIMPrivateKey()) Compose(b.getBotSettings().DKIMPrivateKey())