mirror of
https://github.com/root-fr/jmap-webmail.git
synced 2026-09-23 16:01:15 +00:00
batchDelete always issued a permanent JMAP destroy, ignoring the deleteAction preference (default: trash). Mirror the single-delete flow: resolve the trash mailbox for the current account and route the batch through batchMoveEmails; fall back to destroy only when the setting is 'permanent' or no trash mailbox is available. batchMoveEmails now accepts an optional accountId to support shared-folder bulk moves.