Mark emails as unread
mark_unreadMark messages as unread, restoring the state they were in before something marked them read. This is the undo for mark_read, and it is the one to reach for when a triage pass marked more than the person meant. Pass the whole set in ONE call. Verified the same way mark_read is: the flags are read back off the server, so a message that could not be changed is named rather than assumed done. A uid only means something in the folder it came from, so pass mailbox when the uids did not come from INBOX. Marking a message that is already unread changes nothing and is not an error. It does not touch anything else - a message stays flagged, answered and where it was.
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. |