Skip to main content

Module mail

Module mail 

Source
Expand description

Local mail product (inbox + SMTP receiver)

Functions§

mail_accept
Accept a message into the local inbox (same path as SMTP DATA) — for tests and mesh inject.
mail_accounts
List all locally configured interoperable mail accounts. Account labels and addresses provide provenance when their mail is harmonised into one inbox.
mail_delete
Deletes mail.
mail_dns_forms
MX/SPF paste block + local receiver status for a domain.
mail_fetch_account
Fetch one configured account into the governed local inbox. The account label is recorded on every accepted import so a unified inbox never loses where a message came from. SMTP-only accounts have nothing to retrieve.
mail_fetch_all_accounts
Fetch all accounts explicitly configured for incoming mail. Failures are reported per account so one provider outage cannot hide other accounts.
mail_get
Gets a mail message.
mail_list
List local inbox messages (newest first).
mail_receiver_start
Start local SMTP receiver (default 127.0.0.1:2525). Use 0.0.0.0:2525 for LAN/tunnel.
mail_receiver_status
Mail receiver status.
mail_receiver_stop
Stops the mail receiver.
mail_send_account
Send through one specifically selected, locally configured SMTP account. Credentials never leave the account store or appear in the response.
mail_set_read
Marks mail read.
save_mail_account
Add or replace one account. This is intentionally local configuration; it makes no network request and does not fetch mail until the user asks to.