Skip to Content
Xeonr Developer Docs

Preferences

How a recipient decides what reaches them, and what a publisher can and cannot override.

Two separate things, and the distinction is the whole model:

  • a subscription narrows one topic;
  • a preference follows the person across every topic.

So "XMB's request mail — Discord, yes; email, no" is set once, in notify, and no product needs to know.

A product can still render its own settings screen for its slice of the grid, and read and write it on the person's behalf: see acting for a user.

Subscriptions

A subscription is not a boolean. It carries:

mutedcarries nothing at all
minPrioritya floor; anything below it is not delivered
appsonly these publishing products
tagsonly messages carrying any of these
kinds / categoriesonly these event kinds, or every kind in these categories
channelswhich channels to use

A category filter is what lets somebody follow "requests" without tracking the kind list as a product grows.

Anybody can edit or mute a subscription they hold, including the one a product's directed message gave them on a topic they have no other access to. Leaving such a topic mutes the row instead of deleting it: the next directed message would only recreate it, so a deletion would not be an opt-out.

Preferences

A preference is one switch, for one channel, at one scope. Scope widens as fields empty out:

(app, category)   XMB's requests
(app, "")         everything XMB sends
("", "")          everything, from anyone

The most specific row set wins, per channel. So a blanket "no email from anyone" is still overridable to yes for the one category that matters.

Three states, not two. A cell is on, off, or not set — and not set is a real answer meaning "whatever the product intended". That is why turning something off is different from never having opened the screen, and why clearing a preference is a distinct operation from switching it off.

A preference both adds and removes: turning email on for one product's requests works even where that product's own default is push only.

Resolution order

For one person and one message:

  1. the event kind's default channels, else the topic's, else the inbox alone;
  2. their subscription, if they have one — its filters can exclude the message entirely, and its channel list replaces the defaults;
  3. their preferences for the publishing app and the kind's category;
  4. a critical kind, which adds the defaults back and marks the delivery forced.

Step 4 is the only place a recipient's own settings are overruled, and it is narrow on purpose: an explicitly critical catalogue entry, only on a directed message, and a union rather than a replacement so whatever they chose still applies. Nobody's subscription to a firehose can be bypassed by a publisher choosing a critical kind.

A channel that cannot reach somebody — no linked Discord account, no registered device — produces no delivery. The console shows those cells disabled and says why, rather than hiding them: "you have no device registered" is actionable and a missing switch looks like a missing feature.

Email is the exception, because it needs nothing from the recipient: the address is on their Xeonr account, so the first notification somebody ever receives reaches them whether or not they have used notify. Discord is deliberately not like that — a DM needs their consent, and the link is the consent.

Blocked addresses

An address that permanently fails is suppressed: notify stops sending to it, and deliveries to it are recorded as suppressed rather than attempted. Two sources:

  • a mailbox refused at RCPT TO when the message is sent;
  • a bounce or a complaint reported afterwards by the mail provider.

A transient failure — a full mailbox, a greylist, an outage — never suppresses.

It is visible to the person it affects, on their delivery settings, and they can clear it themselves once the mailbox works. A bounce that was really an outage should not be permanent, and somebody who has fixed their own mailbox should not have to find an operator.

Two defaults worth knowing as a publisher

Routine success should not notify. Use the priority scale, and use a topic's or a sink's floor. A channel that fires on every "it worked" gets muted, and then the failure gets missed too.

Use a coalesce key for progress. Four steps of one build is one notification with a key, and four without. See collapsing.

On this page