bulk_apply
Apply one action (mark_read, mark_unread, flag, unflag, trash, or move) to a list of messages by RFC message-id in a single batched call.
Instructions
Apply one action (mark_read, mark_unread, flag, unflag, trash, or move) to a list of messages by RFC message-id, in a single batched call — far faster than calling set_message_flags/trash_email/move_email once per message.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| op | Yes | Action to apply to every message: mark_read, mark_unread, flag, unflag, trash, or move (move requires destination_mailbox) | |
| message_ids | Yes | RFC message-ids (with or without angle brackets) from search/list results | |
| destination_account | No | Account name to disambiguate if multiple accounts share the destination mailbox name | |
| destination_mailbox | No | Required when op is 'move'. Exact mailbox name from list_accounts_and_mailboxes. |