bulk_flag
Bulk flag or unflag emails matching sender, domain, date, size, subject, read status, or attachment filters. Preview changes with dry-run before applying.
Instructions
Flag or unflag emails matching any combination of filters in bulk
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| since | No | Only emails since this date (YYYY-MM-DD) | |
| before | No | Only emails before this date (YYYY-MM-DD) | |
| domain | No | Match any sender from this domain (e.g. substack.com) | |
| dryRun | No | If true, report exactly what would change and do not modify anything | |
| larger | No | Only emails larger than this size in KB | |
| sender | No | Match exact sender email address | |
| unread | No | True for unread only, false for read only | |
| account | No | Account name to use (e.g. 'icloud', 'gmail'). Defaults to first configured account. Use list_accounts to see available accounts. | |
| flagged | Yes | True for flagged only, false for unflagged only | |
| mailbox | No | Mailbox (default INBOX) | |
| smaller | No | Only emails smaller than this size in KB | |
| subject | No | Keyword to match in subject | |
| hasAttachment | No | Only emails with attachments (client-side BODYSTRUCTURE scan — must be combined with other filters that narrow results to under 500 emails first) |