Add JMAP push through EventSource #56

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

Parent: #51 (Phase 6). Decision: ADR 0006. §9.

wait for a JMAP source opens the EventSource stream for the Email and Mailbox types, with a ping interval, through httpx-sse (a direct dependency). A state change ends the wait and starts a pass. A dropped stream reconnects with backoff and falls back to sync.interval_seconds. The outbox poll still runs while the stream is open.

Acceptance

  • New mail in any mailbox, not only INBOX, is mirrored within seconds on Stalwart.
  • A killed stream reconnects, and mail that arrived while it was down is mirrored by the next pass.
  • The assessor and the embedder are nudged as they are after an IMAP pass.

Blocked by

Parent: #51 (Phase 6). Decision: ADR 0006. §9. `wait` for a JMAP source opens the EventSource stream for the `Email` and `Mailbox` types, with a ping interval, through `httpx-sse` (a direct dependency). A state change ends the wait and starts a pass. A dropped stream reconnects with backoff and falls back to `sync.interval_seconds`. The outbox poll still runs while the stream is open. ## Acceptance - New mail in any mailbox, not only INBOX, is mirrored within seconds on Stalwart. - A killed stream reconnects, and mail that arrived while it was down is mirrored by the next pass. - The assessor and the embedder are nudged as they are after an IMAP pass. ## Blocked by - #55
Author
Member

This was generated by AI during triage.

Routed to ready-for-agent on the operator's word to build it. ADR 0006 §9 decides the design, and the work is bounded to the JMAP source, source.sleep, pyproject.toml, the tests and the docs. The implementation is in #66, stacked on #65 because its push test runs on Stalwart.

> *This was generated by AI during triage.* Routed to `ready-for-agent` on the operator's word to build it. ADR 0006 §9 decides the design, and the work is bounded to the JMAP source, `source.sleep`, `pyproject.toml`, the tests and the docs. The implementation is in #66, stacked on #65 because its push test runs on Stalwart.
svc-agent-writer 2026-10-31 23:48:35 +00:00
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#56
No description provided.