update_email_status
Change email status in Apple Mail by marking messages as read or unread, or by flagging them with optional colors.
Instructions
Update email status - mark as read/unread or flag/unflag emails.
Args: account: Account name (e.g., "Gmail", "Work") action: Action to perform: "mark_read", "mark_unread", "flag", "unflag" subject_keyword: Optional keyword to filter emails by subject sender: Optional sender to filter emails by mailbox: Mailbox to search in (default: "INBOX") max_updates: Maximum number of emails to update (safety limit, default: 10) apply_to_all: Must be True to allow updates without subject_keyword or sender filter message_ids: Exact Apple Mail message ids to update; when provided, filters are ignored flag_color: Optional flag color for action="flag": red, orange, yellow, green, blue, purple, gray
Returns: Confirmation message with details of updated emails
User Preferences: {"workflow": "default", "notifications": "enabled"}
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| action | Yes | ||
| sender | No | ||
| account | Yes | ||
| mailbox | No | INBOX | |
| flag_color | No | ||
| max_updates | No | ||
| message_ids | No | ||
| apply_to_all | No | ||
| subject_keyword | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |