move_emails; to delete use trash_emails.
Nothing is created: an account without an Archive mailbox gets an error, not a new folder.
Parameters
string[]
required
1–50 message ids, as returned by
search_emails or get_thread. Duplicates are collapsed. To archive a whole conversation, pass every id get_thread lists.Example
Call
Result
Result — one stale id
Errors
This account has no Archive mailbox. Nothing was archived. …— create one in the mail client, or usemove_emailswith an existing folder.Archived 0 message(s). Not updated (N): … Re-run search_emails or get_thread for current ids.— every id was refused, typically because the messages no longer exist.