Parley / How it works

How Parley works

A member emails the list address, everyone subscribed receives it, replies go back to the group. Here is what happens in between, and why it is built the way it is.

What happens to a post

  1. It arrives

    Your list domain’s mail goes to the email provider, Resend. Resend tells Parley about each new message with a signed notice, and Parley checks the signature before it believes anything.

  2. The sender is checked

    Email “From” lines are easy to forge, so Parley uses the provider’s verdict on whether the message really came from that domain (SPF, DKIM and DMARC). By default it only relays a post from a member (or from an extra address a member has confirmed) whose sender passed that check. A list can be set to accept verified posts from non-members too.

  3. The rules are applied

    Auto-replies and mail loops are dropped. Per-person and per-list rate limits apply. Risky file types and attachments over the list’s size limit are stopped. Most failures are held for a moderator rather than bounced; a few are dropped, as described below.

  4. It is stored and queued together

    An accepted post goes into the archive and the delivery queue in one database transaction, so a crash cannot lose it or half-send it.

  5. It is rewritten for the group

    The sender appears as “Name via List”, replies go to the list, list headers and a signed unsubscribe link are added, formatting is reduced to a safe set, and location and other metadata are stripped from images embedded in the message (attached files are passed on unchanged). Threading is set against each recipient’s own copy so their mail app groups the conversation.

  6. It is delivered once to each person

    Each recipient’s copy has its own idempotency key, so a retry after a crash cannot send it twice. Failed sends are retried with growing waits. Addresses that hard-bounce or complain are suppressed so they stop hurting your sending reputation.

Why a post can be held

A held post is not delivered and the sender is not told. Moderators see it in a queue, with who it is from and why it was held, and choose to approve and send, reject (delete it) or reject and block the sender. Blocking is offered only for senders whose address was verified, because a forged address could belong to a real member. Posts are held when:

  • the sender claims to be a member but could not be verified, for example a forged address;
  • the sender is not a member and the list is set to hold such posts;
  • the sender is not allowed to post under the list’s posting rule;
  • the sender or the list went over its hourly post limit;
  • an attachment is over the list’s size limit or of a blocked file type;
  • it is one of a new member’s first posts, if you have asked for those to be checked.

Some things are dropped instead, silently: auto-replies and mail loops, posts from blocked senders, attachments over 25 MB (or 40 MB in total) which are never downloaded, and, by default, posts from people who are not members. The list setting for non-members can be changed to hold those for a moderator, or to accept them when the sender is verified.

There is no bounce message to a forged sender (which would only send spam to an innocent person). Moderators are emailed at most once an hour about waiting posts, and held posts are deleted after 30 days, a setting per list.

The held posts queue showing two posts from non-members waiting for a moderator
The moderation queue: approve and send, reject, or reject and block the sender.

Privacy by default

Wherever a setting has a privacy side, it starts on the protective value and an organiser opts out deliberately.

  • Addresses are hidden. Posts show the sender’s name only, and a member can choose to show their address. Organisers and moderators can always see it.
  • Names are kept honest. A display name containing an @ is replaced with “A member”, angle brackets are removed, and names that present as a role, such as Moderator or Admin, are refused. Someone with no name appears as “A member”, never as any part of their address.
  • Remote images are blocked in posts, so a sender’s server cannot learn when members open mail.
  • The archive is members-only and hidden from search engines until you make it public.
  • Joining is invite-only until you open it, and a list cannot take public sign-ups without a privacy notice.
  • Parley serves no JavaScript of its own (an owner can add an optional analytics script) and sends a strict content security policy, so a malicious message has nothing to run.

Here is the same message a member receives:

Delivery modes and the archive

Each member picks how they get email: every message, a daily digest, a weekly digest, or web only (nothing by email; read the archive). New members start on the daily digest, and organisers can change that default or limit the choices. Digests open with an index of the messages’ subjects, hide quoted replies and link to the archive. A digest missed while the server was down goes out when it starts again.

The archive is threaded and searchable, with quoted text folded away behind “Show quoted text”. The original is always stored. Message bodies show as plain text and attachments only ever download, so nothing in an archived message can run.

The archive of a demonstration list, showing six threads with who started them, when, and how many replies
The archive: threads, search and reply counts.

Joining and signing in

Each list chooses how people join: invite-only (an organiser adds them), approval (people ask, an organiser says yes) or open (anyone who confirms their email). People who join through the form confirm by email first, and the response is the same whether or not the address is already on the list, so nobody can use the form to find out who is a member. Members an organiser adds by hand are active straight away, and a CSV import asks each person to confirm unless you untick that.

A plain HTML form on any static website can post to Parley and works without JavaScript. See the sign-up form in the guide.

There are no passwords. Signing in sends a link that works once and lasts 15 minutes. The link opens a page with a button, and only pressing it signs you in, so mail scanners that pre-open links cannot use it up. An organiser’s or moderator’s link also only works in the browser that asked for it.

Your members’ data

  • Consent records: for people who join through the form or confirm after an import, when and how they joined and which version of the privacy notice they saw, and when they left.
  • Download: a file with one person’s profile, consent records and the text of their posts, from the admin or from their own page.
  • Erasure: removes a person’s name and address from their records, their messages’ sender fields, the search index and the delivery queue. Text someone wrote about themselves inside a message body cannot be scrubbed automatically, and backups cannot be edited; both are stated limits.
  • Import and export: export gives every member with their consent record. Import needs an email column and takes name, role, mode and consent dates if you have them, up to 5,000 rows. People imported from a file are asked to confirm before they get any email, unless you untick that.

Parley gives you the tools. Whether your group’s use of them meets the law where you live is for you to decide.

Under the hood

  • One Go program that serves the web pages, receives the provider’s webhooks and runs the background jobs: delivery every few seconds, digests and moderator notices every minute, clean-up every hour.
  • SQLite for storage, in a single file. No separate database server.
  • Resend carries the mail, in and out. Parley does not run a mail server.
  • Server-rendered pages with a strict content security policy and no JavaScript, fonts or third-party requests.
  • Runs as one instance: the rate limiter and delivery loop live in the process, so you do not scale it out.
  • The core rules live in a package that knows nothing about the database, the provider or the web, which is what the test suite leans on.

The code is on GitHub under the AGPL-3.0.

Ready to try it?

The self-hosting guide goes from an empty server to a working list.