Actions12
- Mailbox Actions
- Email Actions
Email → Set Flags
AI-generatedSummary
Sets flags and/or custom labels on emails in an IMAP mailbox.
Inputs
- authentication (required) — Credential source: IMAP (this node) or N8N IMAP Trigger node.
- mailboxPath — Mailbox to target; select from list or provide full path as returned by List Mailboxes.
- emailUid — UID or comma-separated list of UIDs of the email(s) to flag.
- flags (required) — Flags to set on the email. Each of /Answered, /Deleted, /Draft, /Flagged, /Seen can be independently set to true or false.
- customLabels — Custom labels (keywords) to add, remove, or set. Both Label Name and Label Value are required.
Output shape
Per-input-item result array from IMAP executeImapAction; may be empty if no data returned for a given item.
Connection is established, the IMAP action executes, and the connection is logged out regardless of outcome.