Move to folder
move_to_folderMove a Proton Mail message to a specified folder such as Archive or Trash. Provide the message UID and target folder to complete the action.
Instructions
File a message: move it into another folder (e.g. 'Folders/', 'Archive', 'Trash').
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| uid | Yes | ||
| folder | No | Source folder, default INBOX. | |
| dry_run | No | Preview exactly what would happen and change nothing. Needs no confirmation. | |
| to_folder | Yes | ||
| uidvalidity | No | UIDVALIDITY reported alongside the uid. Pass it back so a mailbox resync cannot make this act on the wrong message. |