imap_bulk_move
Move emails between IMAP folders quickly, with optional sender filter and safety limits for bulk operations.
Instructions
Move emails between IMAP folders directly (fast, for Proton Bridge).
Much faster than AppleScript for large mailboxes. Optionally filter by sender. Writes progress to /tmp/apple-mail-mcp-sort.log (tail -f to monitor).
Requires config: ~/.config/apple-mail-mcp/imap.json
Args: from_mailbox: Source mailbox (e.g., "INBOX", "Rechnungen", "IT/Netflix") to_mailbox: Destination mailbox (e.g., "Finanzen/Rechnungen") sender: Optional sender pattern to filter by (case-insensitive substring) max_moves: Maximum emails to move (safety limit, default: 100) dry_run: If True, only count matches without moving (default: True)
Returns: Summary of moved emails
User Preferences: {"workflow": "default", "notifications": "enabled"}
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| sender | No | ||
| dry_run | No | ||
| max_moves | No | ||
| to_mailbox | Yes | ||
| from_mailbox | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |