Phase 6: pluggable mail sources, JMAP with push #51

Closed
opened 2026-10-31 14:04:42 +00:00 by svc-agent-writer · 1 comment

Phase 6 of the roadmap: pluggable mail sources, starting with a JMAP source for Fastmail with push. Decision: ADR 0006 (docs/adr/0006-pluggable-mail-sources.md), accepted 2026-11-01 (#60).

Fastmail works today as an IMAP account. This phase adds what JMAP gives on top: ids that survive a move, exact deltas from state strings, push for every mailbox through EventSource, and a token that can be read-only and without the submission scope.

Target: 0.5.0.

Sub-issues

  • #52 Accept ADR 0006: pluggable mail sources and JMAP with push
  • #53 Put IMAP sync and writes behind a MailSource seam
  • #54 Add schema v5: source ids, mailbox lists, versioned message ids and the move change
  • #55 Add the JMAP source: session, backfill and deltas
  • #63 Add a Stalwart integration target for the IMAP and JMAP sources
  • #56 Add JMAP push through EventSource
  • #57 Add JMAP writes for the outbox
  • #58 Release 0.5.0
  • #68 Add iOS flag colours to mail_flag and the read rows

Order: #52, then #53 and #54 in parallel, then #55, then #63, #56 and #57, then #68. #59 (cross-account copies and threads) is related but outside this phase.

Exit criteria

  • make check and make test-integration green, with Stalwart covering both the IMAP and the JMAP source.
  • On a test instance with one IMAP and one JMAP account: one mail_search returns rows from both; a message moved in the Fastmail web UI keeps its id and appears in mail_changes as move; new mail filed into a non-INBOX folder by a server rule is mirrored within seconds, without waiting for interval_seconds.
  • Existing IMAP message ids from 0.4.x still resolve after the schema v5 upgrade.
Phase 6 of the roadmap: pluggable mail sources, starting with a JMAP source for Fastmail with push. Decision: ADR 0006 (`docs/adr/0006-pluggable-mail-sources.md`), accepted 2026-11-01 (#60). Fastmail works today as an IMAP account. This phase adds what JMAP gives on top: ids that survive a move, exact deltas from state strings, push for every mailbox through EventSource, and a token that can be read-only and without the submission scope. Target: 0.5.0. ## Sub-issues - [x] #52 Accept ADR 0006: pluggable mail sources and JMAP with push - [x] #53 Put IMAP sync and writes behind a MailSource seam - [x] #54 Add schema v5: source ids, mailbox lists, versioned message ids and the move change - [x] #55 Add the JMAP source: session, backfill and deltas - [x] #63 Add a Stalwart integration target for the IMAP and JMAP sources - [x] #56 Add JMAP push through EventSource - [x] #57 Add JMAP writes for the outbox - [x] #58 Release 0.5.0 - [x] #68 Add iOS flag colours to mail_flag and the read rows Order: #52, then #53 and #54 in parallel, then #55, then #63, #56 and #57, then #68. #59 (cross-account copies and threads) is related but outside this phase. ## Exit criteria - `make check` and `make test-integration` green, with Stalwart covering both the IMAP and the JMAP source. - On a test instance with one IMAP and one JMAP account: one `mail_search` returns rows from both; a message moved in the Fastmail web UI keeps its id and appears in `mail_changes` as `move`; new mail filed into a non-INBOX folder by a server rule is mirrored within seconds, without waiting for `interval_seconds`. - Existing IMAP message ids from 0.4.x still resolve after the schema v5 upgrade.
Author
Member

This was generated by AI during triage.

Every sub-issue listed in the body is closed. Closing the epic.

> *This was generated by AI during triage.* Every sub-issue listed in the body is closed. Closing the epic.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
dev/mail-mind-mcp#51
No description provided.