A conversation that leaves a folder and comes back, for example moved to Deleted or a custom folder on the website and then returned to Inbox, now appears again in Apple Mail, Outlook and Thunderbird. Before, it stayed on the website but never came back in the mail app.
A message deleted in a mail app stays hidden in that folder while its conversation stays there, as before. If the whole conversation is later restored on the website, it appears again.
While a mail app has a folder open, NGX no longer reloads that folder every few seconds. Database traffic from connected mail apps now depends on what changes, not on how many apps are connected.
Live privilege changes (View As, admin rights, revoked access) still reach open browser sessions immediately, with far fewer background database checks while nothing is changing.
UID memberships now distinguish a message deleted in a mail app (active: false, expunged: true, set by expungeImapMessage) from one retired because its conversation moved (active: false). synchroniseThread only keeps expunged messages out while the conversation is still in that mailbox, and clears the flag once it leaves, so a return gets a fresh UID.
loadMailboxMessages no longer treats expunged messages as unsynced, and its catch-up sync passes bumpUnchangedMailboxes: false, so a sync that changes nothing does not bump the mailbox revision. Before, listed messages with only an inactive membership were re-synchronised on every load, each sync bumped the revision, the snapshot was discarded and the next IDLE refresh reloaded again. Website changes through the model hooks still bump the revision, so read state and folder moves reach mail apps as before.
Existing inactive memberships without the flag are treated as retired, so conversations already affected get a fresh UID on the next load.
MAX_MAILBOX_SNAPSHOTS in mail-client-imap-mailbox.ts raised from 8 to 256 so one site's mailboxes do not evict each other.
The members change stream in member-session-watcher.ts now waits up to MEMBER_SESSION_STREAM_MAX_AWAIT_MS (20 seconds, below the 30 second socket timeout) per getMore instead of the 1 second default; events are still returned as soon as they occur.
Database tests (MAIL_CLIENT_UID_TEST_MONGODB_URI) updated for shared-folder mailbox keys, with new cases for deletion in a mail app, restoration, retired identifiers and read-state revision bumps.