From 74f9b63f2c847612ba5911c6fed49fc6abcd7b61 Mon Sep 17 00:00:00 2001 From: Patrick Rotter Date: Tue, 22 Sep 2026 19:25:18 +0200 Subject: [PATCH 1/2] fix: drop a search folder scope that belongs to the account being left MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit `selectAccountMailbox` switches the viewed account but kept `searchMailboxId`, which names a folder of the account being left. Since #1082 that scope resolves against `resolveActionMailboxes()`, which now returns the NEW account's mailbox list, so the id no longer matches anything. `searchEmails` / `advancedSearch` then take the picked-folder branch with `mailbox === undefined`, fall back to `jmapMailboxId = searchMailboxId` and `accountId = undefined`, and query a foreign folder id against the wrong account — which comes back empty. It is invisible in the UI: the