mirror of
https://github.com/bulwarkmail/native.git
synced 2026-11-03 00:06:39 +00:00
The phone only ever read and wrote Sieve scripts and the vacation responder of the user's own account, and the "Shared with me" list in Account settings said to use the webmail for the rest. Port the webmail's scoped settings (4c6c1aab) for these two panes: - `api/sieve.ts` and `api/vacation.ts` take an optional account id and gate on the account's own `accountCapabilities` for `urn:ietf:params:jmap:sieve` and `urn:ietf:params:jmap:vacationresponse`, treating non-personal accounts as capable because Stalwart doesn't always advertise capabilities on them. Script blobs are uploaded and downloaded against the same account. - Tapping a shared account in Account settings scopes Settings to it: only the Filters and Vacation Responder panes it supports are listed, behind a "Managing: <name>" banner that leads back to the own account. The scope is dropped when the signed-in account changes. - The filter and vacation stores remember which account they hold, reset when it changes and drop replies for an account the user has already left, so one account's rules are never saved into another. - The rule editor offers the managed account's folders as targets, and the "vacation active" banner only shows for the own account.