mark_emails
Batch update email status: mark as read, unread, flagged, or unflagged. Filter by subject, sender, mailbox, or age to organize your inbox efficiently.
Instructions
Batch mark emails as read/unread and/or flagged/unflagged.
At least one filter (subject_keyword, sender, or older_than_days) is required.
Args: account: Account name (e.g., "Gmail", "Work") action: Action to perform: "read", "unread", "flagged", "unflagged" subject_keyword: Optional keyword to filter emails by subject sender: Optional sender email/name to filter by mailbox: Mailbox to search in (default: "INBOX") older_than_days: Only affect emails older than N days max_emails: Maximum number of emails to update (safety limit, default: 50)
Returns: Summary of affected emails
User Preferences: {"workflow": "default", "notifications": "enabled"}
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| action | Yes | ||
| sender | No | ||
| account | Yes | ||
| mailbox | No | INBOX | |
| max_emails | No | ||
| older_than_days | No | ||
| subject_keyword | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |