bulk_move_emails
Move multiple emails from a source mailbox to a destination mailbox using filters like subject, sender, or age. Preview moves with dry run.
Instructions
Move multiple emails matching filters to a destination mailbox.
Both from_mailbox (source) and to_mailbox (destination) are required. At least one filter (subject_keyword, sender, or older_than_days) is required.
Args: account: Account name (e.g., "Gmail", "Work") to_mailbox: Destination mailbox. Use "/" for nested mailboxes (e.g., "Projects/ClientX") subject_keyword: Optional keyword to filter emails by subject sender: Optional sender email/name to filter by from_mailbox: Source mailbox (default: "INBOX") older_than_days: Only affect emails older than N days max_emails: Maximum number of emails to move (safety limit, default: 50) dry_run: If True, preview what would be moved without acting (default: False)
Returns: Summary of moved emails with count
User Preferences: {"workflow": "default", "notifications": "enabled"}
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| sender | No | ||
| account | Yes | ||
| dry_run | No | ||
| max_emails | No | ||
| to_mailbox | Yes | ||
| from_mailbox | No | INBOX | |
| older_than_days | No | ||
| subject_keyword | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |