Flag emails
flag_emailFlag messages - the same star/flag marker Outlook and webmail show, and the state search_emails's flagged filter finds. A marker for the user's own attention: flagging does not move the messages or mark them 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.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| uids | Yes | The UIDs to act on, from list_emails, search_emails or select_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. |