bulk_flag
Flag or unflag multiple email messages at once by mailbox or sender substring, using batched updates for efficiency.
Instructions
Flag or unflag multiple messages in one call — by mailbox, sender substring, or both. Queries the Envelope Index for matching IDs then updates in a single batched AppleScript call.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| from | No | Substring to match against the sender address or display name. At least one of mailbox or from is required. | |
| limit | No | Maximum number of messages to update in one call. | |
| account | No | Restrict to this account (substring match against mailbox URL host). | |
| flagged | Yes | Target flagged state to apply to every matching message. | |
| mailbox | No | Restrict to this exact mailbox name (matched against mailbox URL). At least one of mailbox or from is required. |