package
0.0.14
Repository: https://github.com/mjl-/mox.git
Documentation: pkg.go.dev

# Functions

Add one or more new messages to the queue.
No description provided by the author
Count returns the number of messages in the delivery queue.
Drop removes matching messages from the queue.
Fail marks matching messages as failed for delivery, delivers a DSN to the sender, and sends a webhook.
HoldRuleAdd adds a new hold rule causing newly submitted messages to be marked as "on hold", and existing matching messages too.
HoldRuleList returns all hold rules.
HoldRuleRemove removes a hold rule.
HoldSet sets Hold for all matching messages and kicks the queue.
HookCancel prevents more delivery attempts of the hook, moving it to the retired list if configured.
HookList returns webhooks according to filter and sort.
HookNextAttemptAdd adds a duration to the NextAttempt for all matching messages, and kicks the queue.
HookNextAttemptSet sets NextAttempt for all matching messages to a new absolute time and kicks the queue.
No description provided by the author
HookQueueSize returns the number of webhooks in the queue.
HookRetiredList returns retired webhooks according to filter and sort.
Incoming processes a message delivered over SMTP for webhooks.
Init opens the queue database without starting delivery.
List returns max 100 messages matching filter in the delivery queue.
MakeMsg is a convenience function that sets the commonly used fields for a Msg.
NextAttemptAdd adds a duration to the NextAttempt for all matching messages, and kicks the queue.
NextAttemptSet sets NextAttempt for all matching messages to a new time, and kicks the queue.
OpenMessage opens a message present in the queue.
PartStructure returns a webhook.Structure for a parsed message part.
RequireTLSSet updates the RequireTLS field of matching messages.
RetiredList returns retired messages.
Shutdown closes the queue database.
Start opens the database by calling Init, then starts the delivery and cleanup processes.
SuppressionAdd adds a suppression for an address for an account, setting BaseAddress based on OriginalAddress.
SuppressionList returns suppression.
SuppressionLookup looks up a suppression for an address for an account.
SuppressionRemove removes a suppression.
TransportSet changes the transport to use for the matching messages.

# Constants

Allow requesting delivery starting from up to this interval from time of submission.

# Variables

Exported for making backups.
Types stored in DB.
ErrFromID indicate a fromid was present when adding a message to the queue, but it wasn't unique.
Set for mox localserve, to prevent queueing.

# Structs

Filter filters messages to list or operate on.
HoldRule is a set of conditions that cause a matching message to be marked as on hold when it is queued.
Hook is a webhook call about a delivery.
HookFilter filters messages to list or operate on.
HookResult is the result of a single attempt to deliver a webhook.
HookRetired is a Hook that was delivered/failed/canceled and kept according to the configuration.
HookRetiredFilter filters messages to list or operate on.
No description provided by the author
No description provided by the author
Msg is a message in the queue.
MsgResult is the result (or work in progress) of a delivery attempt.
MsgRetired is a message for which delivery completed, either successful, failed/canceled.
RetiredFilter filters messages to list or operate on.
No description provided by the author
No description provided by the author

# Interfaces

No description provided by the author