Move Email
move_emailMove emails from one Apple Mail mailbox to another using subject, sender, date, or ID filters. Preview matches with dry run before archiving or organizing.
Instructions
Move email(s) matching filters from one mailbox to another.
Supports subject, sender, and date filters. Use dry_run=True to preview matches without moving. Set only_read=True to skip unread emails (useful for archiving). For archiving to "Archive", just set to_mailbox="Archive". Pass message_ids to move specific messages by exact id (ignores other filters; same fast path as update_email_status).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| sender | No | Optional sender to filter emails by | |
| account | Yes | Account name (e.g., "Gmail", "Work") | |
| dry_run | No | If True, preview what would be moved without acting (default: False) | |
| max_moves | No | Maximum number of emails to move (default: 50, safety limit) | |
| only_read | No | If True, only move emails that have been read (default: False) | |
| to_mailbox | Yes | Destination mailbox name. For nested mailboxes, use "/" separator (e.g., "Projects/Amplify Impact") | |
| message_ids | No | Optional list of exact Mail message ids for precise targeting. When set, all other filters are ignored. | |
| from_mailbox | No | Source mailbox name (default: "INBOX") | INBOX |
| older_than_days | No | Optional age filter - only move emails older than N days | |
| subject_keyword | No | Optional keyword to search for in email subjects | |
| subject_keywords | No | Optional list of keywords to match in subjects; matches any keyword |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |