Mark emails as read
mark_readMark messages as read. Reading a message through this connector does NOT mark it read, deliberately, so this is the separate act that does - run it when the person asks for it, never because you have looked at something. Pass every message you want marked in ONE call. THE RESULT IS VERIFIED RATHER THAN ASSUMED: the flags are read back off the server afterwards, so a message that could not be changed is named individually instead of being folded into a success, and a batch really can half-succeed. A uid only means something in the folder it came from, so pass mailbox whenever the uids did not come from INBOX - the commonest way to get this wrong is to search Archive and then mark read against the default. Marking a message that is already read changes nothing and is not an error. mark_unread is the undo.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| uids | Yes | The UIDs to act on, from list_emails or search_emails. Pass EVERY message you want changed in ONE call - this tool acts on the whole set in a single operation, and doing it that way costs the user one call instead of one per message. Up to 500 at a time. A single message is simply a one-element array. | |
| mailbox | No | IMAP folder name. Defaults to INBOX. |