Skip to main content

Module mail_outbox

Module mail_outbox 

Source
Expand description

Database-backed mail outbox table and dispatch store.

Aster products share the same mail outbox persistence mechanics: enqueue a rendered-template payload, claim due rows, move failed deliveries to retry or failed, clear sensitive payload JSON after terminal states, and count active rows. Products still own template rendering, audit records, and the business context that creates outbox rows.

Structs§

ActiveModel
Generated by sea-orm-macros
ColumnIter
An iterator over the variants of Column
Entity
Generated by sea-orm-macros
MailOutboxCreate
Product request to enqueue one mail outbox row.
MailOutboxDbStore
SeaORM-backed mail outbox store.
Model
SeaORM model for mail_outbox.
PrimaryKeyIter
An iterator over the variants of PrimaryKey
RelationIter
An iterator over the variants of Relation

Enums§

Column
Generated by sea-orm-macros
PrimaryKey
Generated by sea-orm-macros
Relation

Constants§

MAIL_OUTBOX_ATTEMPT_COUNT_COLUMN
Delivery attempt count column.
MAIL_OUTBOX_CREATED_AT_COLUMN
Row creation timestamp column.
MAIL_OUTBOX_DUE_INDEX
Index name for due-row dispatch scans.
MAIL_OUTBOX_ID_COLUMN
Stable row id column.
MAIL_OUTBOX_LAST_ERROR_COLUMN
Last delivery error column.
MAIL_OUTBOX_NEXT_ATTEMPT_AT_COLUMN
Next delivery attempt timestamp column.
MAIL_OUTBOX_PAYLOAD_JSON_COLUMN
Stored template payload JSON column.
MAIL_OUTBOX_PROCESSING_INDEX
Index name for stale-processing recovery scans.
MAIL_OUTBOX_PROCESSING_STARTED_AT_COLUMN
Processing claim timestamp column.
MAIL_OUTBOX_SENT_AT_COLUMN
Sent timestamp column.
MAIL_OUTBOX_SENT_AT_INDEX
Index name for sent-row retention scans.
MAIL_OUTBOX_STATUS_COLUMN
Dispatch status column.
MAIL_OUTBOX_TABLE
Mail outbox table name.
MAIL_OUTBOX_TEMPLATE_CODE_COLUMN
Template code column.
MAIL_OUTBOX_TO_ADDRESS_COLUMN
Recipient email address column.
MAIL_OUTBOX_TO_NAME_COLUMN
Optional recipient display name column.
MAIL_OUTBOX_UPDATED_AT_COLUMN
Row update timestamp column.

Functions§

create_mail_outbox_due_index
Builds the due-row index used by dispatch polling.
create_mail_outbox_processing_index
Builds the processing-stale index used by dispatch recovery.
create_mail_outbox_row
Enqueues one pending mail outbox row using any SeaORM connection or transaction.
create_mail_outbox_sent_at_index
Builds the sent timestamp index used by retention and admin queries.
create_mail_outbox_table
Builds the shared mail_outbox table creation statement.
drop_mail_outbox_table
Builds the shared mail_outbox table drop statement.