move_email
Move an email between IMAP folders by account, source folder, UID, and destination folder. It uses IMAP MOVE or copy-delete; the message gets a new destination UID, so the old UID is invalid.
Instructions
Move a message from one folder to another.
Uses IMAP MOVE when the server supports it, otherwise COPY followed by flagging the original \Deleted and EXPUNGE. The message gets a new UID in the destination folder, so the old uid is no longer valid afterwards.
Args: account: Account name from list_accounts. folder: Folder the message is currently in. uid: Message UID in that folder. dest_folder: Destination folder name (see list_folders).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| uid | Yes | ||
| folder | Yes | ||
| account | Yes | ||
| dest_folder | Yes |