flag_thread
Add or remove IMAP flags on all messages in a thread using its RFC 5322 Message-ID. Apply or remove flags to entire conversations at once.
Instructions
Add or remove IMAP flags across all messages in a thread, identified by RFC 5322 Message-ID header. Use when you have the raw Message-ID and want to flag an entire conversation at once. Prefer apply_thread_action with action 'mark_read', 'mark_unread', 'star', or 'unstar' when you have a local threadId from get_threads.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| dryRun | No | ||
| messageId | Yes | RFC 5322 Message-ID. | |
| flagsToAdd | No | ||
| acrossFolders | No | ||
| flagsToRemove | No |