Skip to main content

move_message

Function move_message 

Source
pub async fn move_message(
    http: &Client,
    base_url: &str,
    access_token: &str,
    message_id: &str,
    destination: &str,
) -> Result<(), ClientError>
Expand description

POST /me/messages/{id}/move: move the message to another folder.

destination is either a Graph folder ID or a well-known folder name ("archive", "deleteditems", "junkemail", …). Graph returns the new message (it gets a new ID in the target folder); we discard that since the caller’s cache will be refreshed on the next list/search.