imap_move_email
Move one or more emails between IMAP folders, optionally creating the destination folder if missing. Batch multiple UIDs in a single call to organize messages efficiently.
Instructions
Move an email from one folder to another (e.g., INBOX to Taxes, or INBOX to Archive). Optionally creates the destination folder if it does not exist.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| uid | Yes | Single email UID or array of UIDs to move in one call. Pass an array when triaging many messages at once (e.g. "move the 10 invoices I just classified to Archive") to avoid N round-trips. | |
| folder | No | Source folder name | INBOX |
| accountId | No | Account ID (from imap_list_accounts). Optional if accountName is given or only one account is configured. | |
| accountName | No | Account name instead of accountId. Optional if accountId is given or only one account is configured. | |
| targetFolder | Yes | Destination folder name | |
| createDestinationIfMissing | No | If true, create the destination folder before moving when it does not exist (default: false) |