batch_email_action
Apply bulk mailbox operations like mark read, move, or delete to multiple emails in one IMAP pass. Preview changes with dry run before mutating.
Instructions
Apply a mailbox action to multiple emails in a single IMAP pass. Actions: mark_read, mark_unread, star, unstar, archive, trash, restore, move (requires targetFolder), delete (permanent expunge — use with care). Supports dryRun to preview impact before mutating. Prefer apply_thread_action when acting by threadId rather than individual email ids.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| emailIds | Yes | Composite email ids as an array or a comma-separated string. | |
| action | Yes | ||
| targetFolder | No | Destination folder. Required when action is 'move'; optional for 'restore' (defaults to INBOX). | |
| continueOnError | No | Continue applying the action after an individual failure. | |
| dryRun | No | Preview the impact without mutating the mailbox. |