Skip to main content

Module outbox

Module outbox 

Source
Expand description

Product-neutral mail outbox dispatch helpers.

Structs§

DispatchStats
Aggregate counters returned by an outbox dispatch or drain pass.
MailOutboxDispatchConfig
Configuration for the shared mail outbox dispatcher.
MailOutboxDispatchContext
Lightweight row metadata captured before a dispatcher consumes the concrete row.
MailOutboxRetryPolicy
Retry and truncation policy for an outbox dispatcher.
MailOutboxStatusEnum
Generated by sea-orm-macros
MailOutboxStatusIter
An iterator over the variants of MailOutboxStatus
MailOutboxStatusVariantIter
An iterator over the variants of MailOutboxStatusVariant
MailTemplateCodeEnum
Generated by sea-orm-macros
MailTemplateCodeIter
An iterator over the variants of MailTemplateCode
MailTemplateCodeVariantIter
An iterator over the variants of MailTemplateCodeVariant
StoredMailPayload
Raw JSON payload stored in mail_outbox.payload_json.

Enums§

MailOutboxDeliveryFailureDecision
Decision returned after a mail delivery attempt fails.
MailOutboxStatus
Persistent mail outbox row status.
MailOutboxStatusVariant
Generated by sea-orm-macros
MailTemplateCode
Built-in Aster mail template code.
MailTemplateCodeVariant
Generated by sea-orm-macros

Constants§

DEFAULT_ERROR_MAX_LEN
Default maximum stored delivery error length.
DEFAULT_MARK_SENT_RETRY_DELAYS_MS
Default retry delays for persisting “sent” after successful delivery.

Traits§

MailOutboxDispatchRow
Minimal row metadata needed by the shared outbox dispatcher.

Functions§

dispatch_mail_outbox
Runs one mail outbox dispatch pass using product-provided persistence callbacks.
drain_mail_outbox
Runs mail outbox dispatch passes until no rows are claimed or the configured drain limit is hit.
retry_delay_secs
Returns the default mail delivery retry delay for an attempt count.
retry_mark_sent
Retries a product-provided mark_sent operation after SMTP success.
truncate_error
Truncates an error string without splitting UTF-8 code points.