Skip to content

v0.2.0

Latest

Choose a tag to compare

@github-actions github-actions released this 16 Nov 16:57
· 3 commits to main since this release
c693a8c

[0.2.0] - 2026-11-16

Added

  • A documentation site at https://chainmail.sh, with a user guide, an operations guide, a configuration and command reference, and a developer guide.
  • Rules, kept in state.db, that act on mail as it arrives, on a schedule and on demand. A rule is a search query matched against the local cache, and a list of actions: label, unlabel, copy, flag, unflag, read, unread, link to a work item, forward, move, archive and trash. chainmail rule creates, dry-runs, runs and inspects rules, and eight MCP tools do the same for agents.
  • Guardrails for rules. A rule acts on each message at most once, and a run stops at its cap. Forwards go through the send policy, every action is audited under client kind rule, and a rule that keeps failing turns itself off.
  • Due events for work items: item_due_soon, item_due and item_overdue. The new [rules] config table sets their time with timezone, due_time and due_soon_days.
  • The opt-in rule event kind, which reports every change to a rule. chainmail watch and read_events accept it and the three due kinds.
  • chainmail audit --client, which keeps the rows of one client kind, such as rule for the actions rules take.
  • A landing page at https://chainmail.sh, with the manual under https://chainmail.sh/docs/.
  • Calendars on Google accounts, through the Google Calendar API, and on CalDAV servers such as Mailwright. The daemon syncs them into calendar.db, next to cache.db, and expands recurring events when they are read. The new [calendar] table sets timezone, poll, window_past and window_future, and an [accounts.<name>.calendar] table sets an account's store, url, include, exclude and default.
  • chainmail calendars, agenda, event, invites, invite, rsvp and freebusy read calendars, show free/busy time and answer invites. chainmail event create, event edit and event cancel change events. Ten MCP tools do the same for agents: list_calendars, agenda, get_event, list_invites, get_invite, free_busy, rsvp, create_event, update_event and cancel_event.
  • Invites from calendars and from mail. The cache finds text/calendar invites in the new mail of watched accounts, and an account with store none answers them with an iCalendar REPLY email to the organizer.
  • The send policy covers calendars. It checks the organizer of every answer and the attendees of every change that notifies them. A held answer by email is saved to Drafts, a held new event is created as a draft that invites no one, and a held change or cancel is not applied.
  • The opt-in event kinds invite, event_changed, event_cancelled and invite_reply. chainmail watch --kind and read_events accept them.
  • chainmail cache status shows each account's calendar sync: its state (ready, syncing, auth_required or error), its last sync, and how many calendars and events it holds.
  • OAuth clients with an issuer, such as a Keycloak realm, take their endpoints from OIDC discovery and need no secret. Their scopes add to what their accounts ask for. A custom account can log in with auth = "oauth2" through such a client, which is how chainmail reaches Mailwright.
  • tls_server_name on an account's imap and smtp tables, for a server reached through a host name its certificate does not hold, such as an internal load balancer.
  • The error reasons NOT_ORGANIZER and CALENDAR_READ_ONLY (exit 3), NO_CALENDAR_STORE (exit 2) and EVENT_CONFLICT (exit 7).
  • stave test:caldav, which runs the CalDAV store tests against the Mailwright image CHAINMAIL_MAILWRIGHT_IMAGE names. CI does not run it.
  • A Brewfile and stave prereq:brew, which install the build tools with Homebrew, as the Nix dev shell does. Every stave target first checks that go, buf, golangci-lint and goreleaser are on PATH, from either setup or both. When one is missing, stave installs the Brewfile if Homebrew is installed, and otherwise says to use nix develop or Homebrew.
  • chainmail bootstrap <email>, which sets up a production daemon on Linux with systemd or on macOS, with one sudo call. It creates the daemon's user and the chainmail-clients group, and installs the binary, the config, the vault key and the service. It then stores one account's password or OAuth client secret and tests the login. It finds Gmail, Google Workspace, iCloud and Hostinger from the address, or takes --provider. A rerun adds another account or repairs the install, including the owner and mode of the binary, config and service. It restarts the daemon only when one of those changed.
  • chainmail bootstrap on NixOS. Bootstrap never edits the NixOS configuration, never rebuilds and never starts or restarts the daemon. On a host without the chainmail module, it seals a new vault key with systemd-creds and writes chainmail.nix, chainmail-<name>.nix and chainmail-vault-key.cred into --nix-dir, for you to import. For a new account on a host with the module, it writes only that account's file, with no sudo. For an account the module already has, it stores the password through the daemon and tests the login.
  • The bootstrap trust check accepts the Nix store directory, /nix/store, while root owns it, its sticky bit is set and others cannot write it. Everything inside it gets the normal check. Bootstrap also finds sudo in /run/wrappers/bin and host commands in /run/current-system/sw/bin.
  • The vault key backup choice in bootstrap. By default a new key stays only on the machine, readable only by the daemon's user. --key-backup show prints it once on the terminal, and never in output that could be captured.
  • chainmail admin status shows a warning row when the daemon's version differs from the CLI's.
  • stave test:e2e, and the e2e-linux and e2e-macos CI jobs that run it. The test runs bootstrap for real on GitHub's runners against test IMAP and SMTP servers. It changes the host, so it skips unless CI=true and CHAINMAIL_E2E_MUTATE_HOST=1 are both set.

Changed

  • The README is a short introduction, and the quick start and runbook moved to chainmail.sh.
  • Watch group names that start with rules. are refused, as names that start with cache. are. The upgrade deletes any such group.
  • A client that names itself rule or daemon is recorded in the audit log as (invalid), so those client kinds mark only the daemon's own work.
  • The upgrade applies state.db migration 6, and an older binary refuses the database afterwards. Take a snapshot before you upgrade.
  • The manual has the landing page's look.
  • The manual's tables and diagrams are restyled to match, and a diagram too wide for the page opens at full size.
  • The landing page leads with what an agent does with your mail: a morning brief, threads filed under tasks, follow-ups before a due date, rules that file receipts, held replies and search across accounts. The two stories that need unreleased features say so.
  • https://chainmail.sh/search is a new page on search speed, with the benchmark figures for the local index against the mail servers. It replaces the redirect from /search to the manual's search page.
  • Messages, help and MCP text no longer name one person. Held sends and calendar writes say they were saved for the user, as in held by policy: saved to Drafts for the user to review and send. The MCP instructions and tool descriptions tell agents to tell the user. CLI help says you and your.
  • The logo is now a wordmark: a CM ligature, one heavy stroke in which the C runs along the baseline into the M, then the name in DM Mono, typed in on load, and a blinking underscore cursor. The favicons show the ligature on a black tile, and the gopher mascot is retired.
  • A Google account that logs in with OAuth2 now asks for three calendar scopes, unless its calendar table sets store = "none". A refresh token from before lacks them, so mail keeps working and the account's calendar state is auth_required until you run chainmail auth login <account>.
  • A gmail account with auth = "password" has calendar store none, and store = "google" on it is a config error, since the Calendar API takes no password.
  • CACHE_NOT_READY also answers a calendar read before the account's first calendar sync, and HELD a calendar answer or change the policy held.
  • The upgrade applies state.db migration 7, and an older binary refuses the database afterwards. Take a snapshot before you upgrade.
  • The README, the quick start and the runbook describe calendars.
  • Dev mode warns. A daemon started with --dev or CHAINMAIL_DEV prints a warning on stderr and logs it, and admin status shows it as a warning row. The warning says that anything running as you can read the vault key and every stored password.
  • The README and docs/QUICKSTART.md set up chainmail with chainmail bootstrap. The dev daemon moved to a note for people developing chainmail.

Fixed

  • Tab completion of message refs no longer offers nothing when the inbox is empty. Commands that read or act on any message, such as get, thread, reply and move, offer inbox mail first and then the newest mail from any folder. archive still offers inbox mail only.