Flag emails
flag_emailFlag messages - the same star/flag marker Outlook and webmail show, and the state search_emails's flagged filter finds. Purely a marker for the user's own attention; it does not move, read, or otherwise change the messages, and it does not mark anything read. Pass the whole set in ONE call. Verified rather than assumed: the flags are read back off the server, so a message that could not be changed is named individually instead of being folded into a success. A uid only means something in the folder it came from, so pass mailbox when the uids did not come from INBOX. Flagging a message that is already flagged changes nothing and is not an error. unflag_email clears it, and is the more dangerous half of the pair.
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. |