Move to folder
move_to_folderFile a Proton Mail message into another folder such as Archive or Trash, with optional source folder and dry-run preview to verify changes.
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. |