Notifications

A notification tells someone that something happened on the site and may need a response: a form submission, a password reset that needs an operator because no mail is configured, or feedback sent by an agent. Every notice is written to the manager bell, which is the record; chat and mail are extra deliveries on top of it.

The bell

The bell in the manager header shows the site's notices to accounts holding the notifications capability, which the User manager group holds. Notices can be marked read one at a time, dismissed, or cleared with Mark all read. Agents read the same notices with notices (control API) or read_notices (MCP).

XMPP

With the notify-xmpp extension enabled and configured, the same notice is also sent as a chat message to one configured account or group-chat room, so an operator hears about it without being signed in. Delivery is time-boxed and best-effort, and every failed delivery is written to the audit log. Setting it up, the Send a test notification button and the packages it needs are described in Configuring chat delivery.

Mail

A notice addressed to one account can also be mailed to that account's own address, when the site routes the notice type to email and the account has opted in. Mail goes through the Form SMTP extension, and a site sends at most 60 of these emails an hour by default (mail.per_hour in lazysite/notify.conf). A broadcast notice stays on the bell.

Routing

lazysite/notify.conf decides where each notice type goes: route.<type>: bell,xmpp,email picks the deliveries, and emit.<type>: off silences a type. The bell is always written, whatever the route says. A form's own notify: setting (off, on or full) decides whether its submissions raise a notice and whether the notice carries the submitted fields; see What happens when a submission arrives.

Notification rules

A notification rule is a notify handler that tells chosen accounts that something happened, by the site bell and by email; setting one up needs manage_notifications. See the notify entry under Handler types. A member reads the notices addressed to them on their account page, described in The member's account page.