move_mail_message
Move an email to a different mailbox in the same account. Requires message ID and destination mailbox ID; the message receives a new ID after moving.
Instructions
Move a message to another mailbox (folder) of the same mail account.
Mail cannot move messages between accounts; such a move fails with "It is not possible to move across accounts yet".
The moved message gets a new ID, so message_id is no longer valid afterwards and must not be reused. IMAP UIDs are per mailbox, and Nextcloud assigns the new ID when it syncs the destination mailbox. The inbox and mailboxes with background sync enabled are synced automatically; other folders are synced when opened in the Mail app. A message that is already in the destination mailbox is left alone and keeps its ID.
Args: message_id: The message database ID. Use list_mail_messages to find it. destination_mailbox_id: The target mailbox ID, in the message's own account. Use list_mailboxes to find it.
Returns: Confirmation message on success.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| message_id | Yes | ||
| destination_mailbox_id | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |