sch_move_mail
Move one message by UID from a source folder to a destination folder; the destination must already exist.
Instructions
Move one message, addressed by UID, from source_folder to dest_folder.
Uses UID MOVE when the server supports it, else UID COPY + \Deleted + UID EXPUNGE, and a bare EXPUNGE only on a server with neither MOVE nor UIDPLUS. Destination folder must already exist (use sch_create_folder first if needed).
Args: msg_id: Source message UID from sch_list_mail / sch_search_mail (one UID; ranges and lists are refused) dest_folder: Target folder name source_folder: Source folder (default: INBOX) account: Account key in credentials.json (e.g. "personal" or "work"). Default: the account named by "default" in that file.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| msg_id | Yes | ||
| account | No | ||
| dest_folder | Yes | ||
| source_folder | No | INBOX |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||