jmap-client refuses to follow any redirect unless the target host is on a trust list that defaults to empty. Stalwart 307-redirects /.well-known/jmap to /jmap/session, so connect() aborted with "Aborting redirect request to unknown host 'mail.motofans.club'" and PUT /api/business-config failed with a 503 carrying no usable detail. connect_with_runtime now passes the origin host parsed from the normalized session URL to follow_redirects, trusting that host only -- a target host the server invents is still refused. An unparseable base yields an empty host, which matches no target and preserves the previous fail-closed behaviour. Verified against a real Stalwart instance both ways: the ignored smoke test session_list_and_read_smoke now passes (session -> folders -> email list -> read) and fails with the redirect error when the change is reverted. docs: record the redirect trust under SAF-JMAP-URL, mark G1/D-G1-1 verified after the real-server run, and refresh two shifted line anchors in client.rs. |
||
|---|---|---|
| .. | ||
| charter.md | ||
| deployment.md | ||
| design.md | ||
| reference.md | ||
| retired.md | ||
| roadmap.md | ||