imap_move_email
Move an email from one folder to another, with the option to automatically create the destination folder if it does not exist.
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 | Email UID | |
| 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) |