Add JMAP writes for the outbox #57
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#57
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. §10.
The five action kinds of ADR 0004 for a JMAP account:
compose_draft, uploaded and created withEmail/importinto Drafts, keywords$draftand$seen;Email/setpatches onkeywordsandmailboxIds, each withifInState;$draftand the same blob id.EmailSubmissionis never called.Acceptance
Live use waits on the write token for the deploying estate (ADR 0004 §9).
Blocked by
Human act
ruling: the operator rules that the JMAP write path may be built (CONV-40)
Triage
Route: CONV-40 rule 3. This issue changes what the service writes to a mail server, so it is
ready-for-human. The operator gave the ruling on 2026-11-01 ("proceed 57"). The build follows.Already decided:
docs/adr/0006-pluggable-mail-sources.md:55-60) fixes the shape of each write: a draft through blob upload andEmail/importwith$draftand$seen; flags and moves asEmail/setpatches withifInState; an undo that replays the stored inverse; a draft destroyed only while it keeps$draftand its blob id; neverEmailSubmission.Premises to verify during the build:
Email/importandifInStateonEmail/set. The integration tests prove each one.from_addressin the account config.Identity/getneeds the submission scope, which a JMAP token must not carry (ADR 0006 §10).Defaults taken (cheap to reverse):
ifInStateis the account's Email state, read just before the patch. A concurrent change fails the action with the codeconflict. The action isfailed, notrefused, so the client can ask again. The service does not retry by itself.$seen, as the ADR says. An IMAP draft gets\Draftonly. The difference stays visible to the owner as an unread draft on IMAP only.Human act
ruling: the operator rules that the JMAP write path may be built (CONV-40)