Update Message
updateMessageSet read, flagged, and tag states on one or multiple Thunderbird messages; optionally move them to another folder or Trash.
Instructions
Set read, flagged and tags on one message (messageId) or several (messageIds), and optionally move them (moveTo) or to Trash (trash). Tags are Thunderbird keywords (see addTags). On IMAP, tags set in the same call as a move may not reach the moved copy: use two calls.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| read | No | Set to true/false to mark read/unread | |
| trash | No | Set to true to move message to Trash. Cannot be used with moveTo. | |
| moveTo | No | Destination folder URI. Cannot be used with trash. | |
| addTags | No | Tag keywords to add (e.g. ['$label1', 'project-x']); built-in: $label1 Important, $label2 Work, $label3 Personal, $label4 To Do, $label5 Later | |
| flagged | No | Set to true/false to flag/unflag | |
| messageId | No | A single message ID (from searchMessages). Required unless messageIds is provided. | |
| folderPath | Yes | The folder URI containing the message(s) (from searchMessages) | |
| messageIds | No | Array of message IDs for bulk operations. Required unless messageId is provided. | |
| removeTags | No | Tag keywords to remove from the message(s) |