bulk_update_labels
Apply or remove Proton labels on multiple emails at once. Select messages by explicit IDs or search criteria and folder to update labels in a single batch.
Instructions
Add or remove Proton labels on multiple messages simultaneously. Use when the same label change should apply to several messages. Labels are IMAP folders under Labels/ namespace. Accepts emailIds[] OR match+folder (XOR).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| match | No | Search criteria. XOR with emailIds. | |
| dryRun | No | ||
| folder | No | Source folder (required with match). | |
| emailIds | No | Explicit email IDs. XOR with match. | |
| labelsToAdd | No | Labels to add, e.g. ["Labels/Work"]. | |
| maxBatchSize | No | Maximum number of messages to process. Defaults to 500. Use to prevent runaway operations. | |
| labelsToRemove | No | Labels to remove. |