Add the JMAP source: session, backfill and deltas #55
Labels
No labels
bug
enhancement
epic
needs-info
needs-triage
ready-for-agent
ready-for-human
svd:go
svd:hold
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
dev/mail-mind-mcp#55
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Parent: #51 (Phase 6). Decision: ADR 0006. §8, §11, §12.
The read path of a JMAP account.
session_url; account id and capabilities from it.Email/querypages, thenEmail/getwithfetchTextBodyValuesandmaxBodyValueBytesfromstore.max_text_bytes.Mailbox/changesandEmail/changesfrom stored state strings;cannotCalculateChangesstarts a full id reconcile.move.[blobs]: the raw message from the download URL.mailmind checkprints the capabilities and warns when the session grants submission.imaptojmap(ADR 0006 §1): backfill beside the old rows, copy the class and the vector by Message-ID, then delete the old rows.httpxbecomes a direct dependency.waitsleepsinterval_secondsin this issue; push is a separate issue.FakeJevintests/test_assess.py) covers backfill, deltas,cannotCalculateChanges, a move and the source switch. A real server is #63.source_state(account, key, value), schema v6, additive. The PR adds this to ADR 0006 §8.config.example.toml: a Fastmail JMAP account example. The token file ends in.secret, never.token.Acceptance
mail_searchreturns rows from an IMAP and a JMAP account (fake server).imap,mail_statusshows the sameassessedandembeddedcounts with no Jev call and no model run for copied rows.Blocked by
Ruling (triage, 2026-11-01)
source_statetable (schema v6), not onmailboxes.Human act
ruling: the operator decided where the JMAP state lives and how the integration server is set up (CONV-40)
Triage: enhancement,
ready-for-human(CONV-40 rule 3: a new credential and a new outbound connection fromsync).https://api.fastmail.com/jmap/session, read-only API tokens, the separate submission scope, andhttpxalready in the tree. Stalwart serves both protocols in one container, but a test run needs a scripted bootstrap; that moved to #63.source_statetable (schema v6); tests use a fake JMAP server. The body now records both.