Apply a label
apply_labelApply an existing label to a specific email message while keeping it in its original folder.
Instructions
Tag a message with an existing label. The message stays where it is.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| uid | Yes | ||
| label | Yes | An existing label. On Proton the Labels/ prefix is optional; elsewhere this is an ordinary mailbox name. | |
| folder | No | Source folder, default INBOX. | |
| dry_run | No | Preview exactly what would happen and change nothing. Needs no confirmation. | |
| uidvalidity | No | UIDVALIDITY reported alongside the uid. Pass it back so a mailbox resync cannot make this act on the wrong message. |