batch_email_action
Apply reversible actions like mark read, archive, or trash to multiple emails in one IMAP call. Supports dry run to preview changes before applying.
Instructions
Apply a reversible mailbox action to multiple emails in a single IMAP call. Use when you have a set of emailIds to act on at once (mark_read, mark_unread, star, unstar, archive, trash, restore). 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 | Optional restore destination. Used only when action is restore. | |
| continueOnError | No | Continue applying the action after an individual failure. | |
| dryRun | No | Preview the impact without mutating the mailbox. |