bulk_flag
Flag or unflag multiple messages in one call. Filter by mailbox, sender substring, or both for efficient bulk flagging.
Instructions
Flag or unflag multiple messages in one call — by mailbox, sender substring, or both. Far faster than calling set_message_flags per message.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| from | No | Substring to match against the sender field. At least one of mailbox or from is required. | |
| account | No | Restrict to this account name. | |
| flagged | Yes | Target flagged state to apply to every matching message. | |
| mailbox | No | Restrict to this exact mailbox name. At least one of mailbox or from is required. |