fix(aliases): use Stalwart live wire key enable, not enabled
Merged
UR
3d ago+27+27+01234567890123456789-23-23-01234567890123456789
Live Stalwart v1.0.1 rejects x:Account/set alias entries with enabled ("Invalid key for object") and accepts enable (verified live 26 Nov 2026 smoke test). The Stalwart docs still say enabled, so the original code followed the docs and every alias create failed with 502 mail_server_error.
EmailAlias.enabled(Rust field unchanged) now serializes asenablevia#[serde(rename = "enable")], andset_account_aliasessends"enable"in the patch.- All wire-payload fixtures/fakes in
crates/mailandapps/apitests now useenable. - Untouched on purpose: the IRIS API response field
enabled(web client contract), themail_aliases.enabledDB column, and catch-all (separate endpoint, already PASS live).
Local verification: cargo fmt --check, cargo clippy --all-targets --all-features -- -D warnings, cargo test --all-targets (318 passed, 0 failed). Web unchanged.
Summary by CodeRabbit
- Bug Fixes
- Alias enablement status is now handled consistently when alias settings are exchanged with the mail server. Explicit enabled or disabled states are preserved, and aliases without an explicit status continue to default to enabled. This keeps the displayed and saved status aligned with the mail server’s expected format.