Microsoft 365 Move Email
m365_move_emailUse this when the user wants emails of their Microsoft 365 / Outlook account moved to another folder on the Exchange server, to file, archive or organize them. Name the messages with message_id (one) or message_ids (up to 50), from m365_list_emails, m365_search_emails or m365_read_email; or a whole conversation with conversation_id (from m365_list_emails or m365_search_emails): then only its messages in source_folder (default inbox) move, never its copies in Sent Items, Drafts or other folders, unless all_folders=true. destination is a folder id, name or path from m365_list_email_folders, or inbox, archive, deleteditems, junkemail. A message counts as moved only when a second read shows it in the destination and no longer at its old id; a moved message gets a new id (new_id). Needs the Microsoft 365 permission Mail.ReadWrite: an account connected before it was asked for answers consent_required until it is connected again. For mail in the Mac's Mail app, use move_email.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| account | No | Which connected Microsoft 365 account to use: its email (UPN), its id from list_m365_accounts, or its display name when unique. Leave it out to use the default account. | |
| confirm | No | Ignored; kept for older clients. | |
| message_id | No | The ID of one message to move. | |
| all_folders | No | With conversation_id: true moves its messages from every folder, Sent Items and Drafts included (default false). | |
| destination | Yes | The folder to move them to: an id, name or path from m365_list_email_folders, or inbox, archive, deleteditems, junkemail. | |
| message_ids | No | IDs of up to 50 messages to move. | |
| source_folder | No | With conversation_id: the folder its messages are moved from (default inbox). An id, name or path. | |
| conversation_id | No | Move the messages of this conversation that are in source_folder. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| count | Yes | ||
| moved | Yes | true only when every message was confirmed in the destination. | |
| status | Yes | ||
| account | No | The email (UPN) of the Microsoft 365 account this call used. | |
| message | No | ||
| partial | No | true when the conversation has more messages than one call moves (50). | |
| results | Yes | ||
| destination | No | ||
| moved_count | Yes |