move_mail
Move messages to archive, trash, inbox, junk, or a named mailbox without permanent deletion, and get an undo token to reverse the move. Use it to file or restore mail across accounts safely.
Instructions
Move messages to archive, trash, inbox, junk or a named mailbox. Never deletes permanently; returns an undo_token. For an account without an archive mailbox, Mail is asked to make one; if it will not, the result says how. Gmail: Mail can only move messages to the trash or junk by script (and out of them, to All Mail); other Gmail moves are refused with what to do instead.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| to | Yes | Destination: archive, trash, inbox or junk (each message's own account), or a mailbox name or path from list_mailboxes. | |
| ids | Yes | Message ids (1-200). | |
| account | No | Account of the destination mailbox, when its name exists in several accounts. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| done | Yes | ||
| note | No | ||
| failed | No | ||
| undo_token | No |