Add a Stalwart integration target for the JMAP source #65
No reviewers
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!65
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "feat/stalwart-target"
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?
Closes #63. Part of epic #51 (phase 6).
What this adds
scripts/stalwart.sh up|down|logs, shaped like the blade'sgreenmail.sh:stalwartlabs/stalwartv0.16.26, pinned by its multi-arch digest. That release was published 2026-10-11; v0.16.27 and v1.0.x are under two weeks old.127.0.0.1:18080.STALWART_PUBLIC_URLmakes the session'sapiUrlanddownloadUrlname that port.127.0.0.1:13993, with the blade'slocalhosttest certificate.upalways starts from nothing and runs twice in a row.downremoves the container andlocal/stalwart/.scripts/stalwart_setup.py, stdlib only. It skips the web wizard in three phases, with a container restart between each:x:Bootstrap/setas a recovery admin with a random password that lives for one run.bot@example.testand anx:ApiKeyfor that user.The password and the key go to mode-0600 files. The polls use
/healthz/live, which needs no login.tests/integration/test_stalwart.py, gated onMAILMIND_STALWART=1. Each test empties the account first, then places and changes mail over IMAP, never through the outbox. The tests cover:check();Make targets:
make test-integrationnow starts both GreenMail and Stalwart.make test-stalwartruns Stalwart alone. README and CLAUDE.md are updated.Findings against the brief
Mailbox/get,Email/get,Email/changes). The brief's stop condition did not fire, andJmapClientis unchanged.x:Account,x:ApiKey,x:Certificate,x:Domain). The image ships nostalwart-cli, so setup calls the API directly.SEARCHtext asynchronously. The tests find uids by fetching the Message-ID header instead.Checks
make test-integration: 11 passed (8 GreenMail, 3 Stalwart).make test-stalwart: 3 passed. Afterwards no container and no state directory remain.make check: 163 passed. ruff, mypy and pip-audit are clean.🤖 Generated with Claude Code