~bigbes/core-go: 78cfc5d8

email: allow sending raw emails

The current email.Enqueue() function only allows sending messages with
the server's default settings.

In order to support sending any arbitrary message, we need to expose
a lower level API taking a raw message.Entity pointer. This new API will
be reused in a future reimplementation of the lists.sr.ht ingress agent
to forward messages to subscribers.

Add email.EnqueueRaw() that calls email.SendRaw(). Retry sending 10
times in the case of failure.

Signed-off-by: Robin Jarry <robin@jarry.cc>

Robin Jarry <robin@jarry.cc> — 2024-12-14 22:53:55 UTC

Commit 78cfc5d87a7dcb762467aaa82fcc80cb4e24974bview raw patch

Parent(s): bbcb2a10

2 changed file(s)

FileStatus+
email/send.go M +46
email/worker.go M +21