Docs: Direct messages
Direct messages
Private conversations between members: who may write, blocks, role limits, reports and what staff can see.
Since 1.21.0 members can write to each other in private. There is a Messages page under the account, a Message button on a member's profile, and an envelope in the header that shows unread messages. It is off by default: until you turn on Let members send direct messages in Member settings ▸ Direct messages, Messages is hidden everywhere and every Messages address answers "not found". Turning it off again hides everything and deletes nothing.
What a message is #
- Plain text, 1 to 4000 characters. Nothing edits a message once it is sent.
- A link in a message is shown as plain text, not made clickable, because a link in a stranger's private message is the usual way to phish someone.
- A reply may carry pictures, but a first message never does, because a picture in a stranger's first message is how unwanted images arrive. A body of text is still required. Pictures follow the same role settings as posts and comments (May add pictures, Pictures per post, here per message, and Pictures per day), and the daily count is shared. A picture is a protected file that only a person still in the conversation can open, while Messages is on and under the same block rules as the text. Deleting a message deletes its pictures with it.
Who may write #
The sender needs a confirmed email address and an active account that is not banned, and their role must allow it. These checks run again on every message, not only when a conversation starts. A member under a restriction on direct messages cannot send.
- Who may start a conversation with a member. Each member chooses on their account page (the Messages card): anyone, people they follow and staff, or staff only. Until they choose, the site's default applies (Who can start a conversation with a member, until they choose, in Member settings ▸ Direct messages), which is anyone unless you change it. The choice is asked only when a conversation starts, so a conversation already going is not cut off when someone changes their mind.
- People per conversation. A conversation holds the sender and up to the number of people their role allows, from 1 to 50, five by default.
- The same refusal. A message to a member who has no live account, who is blocked either way, or whose choice leaves the sender out is refused with the same wording each time, so the sender cannot tell which it was.
- Leaving. A member can leave a conversation. They keep their place with a mark that stops anyone adding them back unasked.
Blocks #
A member blocks another from a conversation's menu, and the account page lists who they block. A block is never told to the person blocked: they get the same refusal as for any other reason, the Message button looks the same, and in a conversation both already share they see everything as before. For the blocker, the blocked person's messages are hidden from their thread, their list, their unread count and their notices; everyone else still receives them. A blocker's online status is left out for anyone they block. A block holds for staff too: a moderator reads a reported conversation through the report centre and never by writing to the member.
Limits on each role #
In People ▸ Roles ▸ Limits and access, a group called Direct messages holds four settings:
- Send direct messages (on).
- New conversations a day (0 to 1000, default 10).
- People in one conversation (1 to 50, default 5).
- Messages an hour (0 to 10000, default 60).
0 means no limit, and the Administrator role has none. These are the limits for new members, so a site that signs people up on a stricter role holds them to less. They apply to staff as well, and no forum or section can override them. They are counted inside the sending itself, so two requests at once cannot both slip past a limit. Member settings ▸ Direct messages shows each role's values in a read-only table, with an Edit in Roles link for anyone who may manage roles.
Notifications #
A new message adds to one unread notification for the conversation, in the bell and by email at once. The title names people and never quotes a message, and the email carries only that title. A member is mailed at most once an hour for messages; a message that arrives sooner is in the bell but not mailed. Nothing is raised for a recipient who blocks the sender. Opening a conversation reads its notification, and a member can turn the email off on their account page.
Reports, and what staff can read #
A person in a conversation can report a message they can read. A report is the only way staff ever see a message. It shows in the report centre naming the conversation's people, never a word of the message, and there is no link to the member's page.
- Reading it needs the permission Read and decide reported direct messages, in the report centre. After the update only the Administrator role holds it; the update grants it to no other role, and a fresh install's Moderator does not hold it either. Tick it under Roles for anyone you choose.
- Read this conversation in the report's drawer works only while the report is open. It writes a log entry (who, which conversation, which report, when) before any text is shown, and shows the reported message with up to 20 messages on each side, by name and never by address. Reading again logs again.
- Remove hides the text from everyone but staff, who still see what was sent. Keep puts it back as it was. Pictures in the reported message open for staff only after that logged read.
Leaving and keeping #
- A conversation is deleted once nobody is in it and no open report names it, by a daily sweep a day after the last person left. This keeps a report from vanishing before a moderator sees it.
- Delete messages after (Never, 1 year or 2 years; Never by default) lets a daily job delete older messages, skipping any with an open report until it is decided.
- When a member deletes their account, the delete dialog's choice about their content decides: with removal chosen their messages go, otherwise they stay for the others as from "Deleted member". A member who closes their own account keeps their messages for the people they wrote to, and the close page says so.
- A staff account's sign-in name is never shown to members: it reads "Staff member".
- Messages are not moved to the recycle bin.
Backups and privacy #
The core backup in Settings leaves the message tables out. The off-site archive takes every table, so it includes messages, and a restore keeps them. A person who may manage backups and downloads the key kit could therefore reach message text. Messages are not encrypted in the database, because the key would sit on the same server; off-site archives are already encrypted. The update adds six tables and changes nothing in existing ones.
The Operator API and themes #
A credential cannot read or write any message, block, member choice or who writes to whom, and reports on private messages are not counted in its report reads. It can read the three settings, the four role limits and the count of message notifications, and propose the settings as a draft; see Operator API. A site with its own theme should read the theme guide's Direct messages part for the envelope and the Message button.
Not built yet #
Searching messages, read receipts ("Seen"), links made clickable in messages, and a member's own data export (nothing exports messages yet). One known quirk: a group conversation that an account's removal reduces to two people still counts as the pair's own, so the profile's Message button opens the old group. Nothing leaks; the fix needs a database change, so it waits.