bulk_trash
Move multiple messages to trash in one batch call by filtering on sender substring, mailbox, or both.
Instructions
Move multiple messages to trash in one call — by mailbox, sender substring, or both. Queries the Envelope Index for matching IDs then trashes 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 trash in one call. | |
| account | No | Restrict to this account (substring match against mailbox URL host). | |
| mailbox | No | Restrict to this exact mailbox name (matched against mailbox URL). At least one of mailbox or from is required. |