bulk_update_labels
Add or remove labels on multiple Proton Mail messages at once, using explicit email IDs or search criteria.
Instructions
Add or remove Proton labels on multiple messages simultaneously. Labels are IMAP folders under Labels/ namespace. Accepts emailIds[] OR match+folder (XOR).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| emailIds | No | Explicit email IDs. XOR with match. | |
| match | No | Search criteria. XOR with emailIds. | |
| folder | No | Source folder (required with match). | |
| labelsToAdd | No | Labels to add, e.g. ["Labels/Work"]. | |
| labelsToRemove | No | Labels to remove. | |
| dryRun | No | ||
| maxBatchSize | No | Maximum number of messages to process. Defaults to 500. Use to prevent runaway operations. |