mail_trash
Move emails to Trash in Apple Mail accounts. Requires confirmation; bulk mode handles up to 500 messages.
Instructions
Move email to Trash. Destructive: requires confirm=true, otherwise the call only reports what would be trashed. One message: message_id or file_path. Many: message_ids (up to 500, e.g. from mail_find) moves every copy of each (INBOX, Sent, Archive...) to that account's Trash; each copy's Message-ID is re-checked before it moves. A bulk call stops starting new moves after ~35s and reports 'remaining'; run it again for the rest.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| confirm | No | Required for deletes and multi-recipient sends; without it the call only previews | |
| dry_run | No | Preview only: report what would happen and change nothing (default false) | |
| file_path | No | Alternative to message_id: the .emlx file_path from mail_search, resolved to its Message-ID | |
| message_id | No | RFC822 Message-ID of the email (from mail_search / mail_read results) | |
| message_ids | No | Bulk: RFC822 Message-IDs (from mail_find). Every copy outside Trash is moved. Do not combine with message_id / file_path. |