move_email
Move emails from one mailbox to another in Apple Mail using filters for subject, sender, or date. Preview moves with dry run or archive read emails automatically.
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".
Args: account: Account name (e.g., "Gmail", "Work") to_mailbox: Destination mailbox name. For nested mailboxes, use "/" separator (e.g., "Projects/Amplify Impact") subject_keyword: Optional keyword to search for in email subjects from_mailbox: Source mailbox name (default: "INBOX") max_moves: Maximum number of emails to move (default: 50, safety limit) subject_keywords: Optional list of keywords to match in subjects; matches any keyword sender: Optional sender to filter emails by older_than_days: Optional age filter - only move emails older than N days dry_run: If True, preview what would be moved without acting (default: False) only_read: If True, only move emails that have been read (default: False)
Returns: Confirmation message with details of moved emails
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| account | Yes | ||
| to_mailbox | Yes | ||
| subject_keyword | No | ||
| from_mailbox | No | INBOX | |
| max_moves | No | ||
| subject_keywords | No | ||
| sender | No | ||
| older_than_days | No | ||
| dry_run | No | ||
| only_read | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |