You must login to view /lordwelch/chasquid/src/commit/9dab8f4f04efd6cfd0a07d86404c2536b68d2517/etc.
The GitHub option should be usable for most people, it only links via username.

Files
chasquid/internal/courier/courier.go
Alberto Bertogli 9999a69086 aliases: Implement "via" aliases
This patch implements "via" aliases, which let us explicitly select a
server to use for delivery.

This feature is useful in different scenarios, such as a secondary MX
server that forwards all incoming email to a primary.

For now, it is experimental and the syntax and semantics are subject to
change.
2025-04-12 23:23:21 +01:00

17 lines
643 B
Go

// Package courier implements various couriers for delivering messages.
package courier
// Courier delivers mail to a single recipient.
// It is implemented by different couriers, for both local and remote
// recipients.
type Courier interface {
// Deliver mail to a recipient. Return the error (if any), and whether it
// is permanent (true) or transient (false).
Deliver(from string, to string, data []byte) (error, bool)
// Forward mail using the given servers.
// Return the error (if any), and whether it is permanent (true) or
// transient (false).
Forward(from string, to string, data []byte, servers []string) (error, bool)
}