Bulk Move Emails to Label
bulk_move_to_labelLabel multiple emails in bulk while preserving their original folder locations. Progress notifications are sent for large operations.
Instructions
Apply a label to multiple emails. Each email remains in its original folder and also appears in Labels/{label}. Progress notifications are sent for large batches.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| emailIds | Yes | ||
| label | Yes | Label name without prefix | |
| sourceFolder | No | Folder the UID(s) live in (e.g. INBOX, Folders/Work, Labels/Foo). Strongly recommended whenever the UIDs came from a folder other than INBOX — IMAP UIDs are folder-scoped, so without this the wrong folder may be selected and the operation may silently no-op. Avoid passing 'All Mail' as the source: it is a union view of every folder, not a real location, so moves out of it can silently do nothing — pass the message's actual folder instead. Moving to the folder a message is already in is a no-op. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| success | Yes | ||
| failed | Yes | ||
| errors | Yes |