Skip to main content

Module link_emails

Module link_emails 

Source
Expand description

The link-emails phase: turning a claimed mail slot into a queued message.

It talks to no study registry, which is the point of it being its own phase: a wedged mail queue and an unreachable Sisu are different problems. The caps and the dedup guard applied when the slot was claimed, so this phase retries until the message is queued rather than deciding again.

Constantsยง

QUEUE_LIMIT ๐Ÿ”’
How many mails one iteration queues; the sender has its own rate, so this only bounds how much one transaction holds open.
TEMPLATE ๐Ÿ”’

Functionsยง

placeholders ๐Ÿ”’
Stored on the delivery row because the recipient may have no account here for the sender to read them from.
run ๐Ÿ”’
base_url is the absolute base for the mailโ€™s link, which outlives the process that wrote it.