Propose ADR 0006: pluggable mail sources, and JMAP with push #60

Merged
svc-agent-writer merged 2 commits from docs/adr-0006-mail-sources into main 2026-10-31 14:07:51 +00:00

Proposes ADR 0006 for epic #51 (phase 6). Acceptance is #52.

  • Each [[accounts]] block names a source, imap (the default) or jmap. Existing configs do not change.
  • The seam is a MailSource protocol per account. The store, the read tools, the assessor and the embedder stay source-neutral.
  • Schema v5 adds source_id and mailboxes. JMAP ids survive a move, and ids from 0.4.x stay valid.
  • JMAP push through EventSource covers every mailbox, not only INBOX.
  • JMAP writes keep ADR 0004 unchanged and never call EmailSubmission.
  • The README and CLAUDE.md roadmap lines name phase 6.

The status stays proposed in this PR. The decision points for review are listed in #52.

🤖 Generated with Claude Code

Proposes ADR 0006 for epic #51 (phase 6). Acceptance is #52. - Each `[[accounts]]` block names a `source`, `imap` (the default) or `jmap`. Existing configs do not change. - The seam is a `MailSource` protocol per account. The store, the read tools, the assessor and the embedder stay source-neutral. - Schema v5 adds `source_id` and `mailboxes`. JMAP ids survive a move, and ids from 0.4.x stay valid. - JMAP push through EventSource covers every mailbox, not only INBOX. - JMAP writes keep ADR 0004 unchanged and never call `EmailSubmission`. - The README and CLAUDE.md roadmap lines name phase 6. The status stays `proposed` in this PR. The decision points for review are listed in #52. 🤖 Generated with [Claude Code](https://claude.com/claude-code)
Add the decision for a per-account mail source, with JMAP for Fastmail as the
first new source, and name phase 6 in the README and CLAUDE.md roadmap.

Refs #51, #52

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Sign in to join this conversation.
No description provided.