IMAP Fork icon

IMAP Fork

Retrieve emails via IMAP using the n8n-nodes-imap-fork-test package

Email → Set Flags

AI-generated

Summary

Sets or removes standard IMAP flags (e.g., Seen, Flagged, Deleted) on specified emails.

Inputs

  • Mailbox (required) — Select the mailbox containing the email.
  • Email UID — UID of the email to set flags. Can use a comma separated list of UIDs.
  • Flags (required) — A collection of boolean flags to set or remove. Setting a flag to true adds it; setting to false removes it.

Output shape

A single record containing the UID of the email.

Returns a single JSON item per email processed. The operation modifies the email on the server.

Examples

Example 1: Mark an email as Flagged

Select INBOX, enter email UID, set Flagged=true.

Example 2: Mark an email as Seen and remove Draft flag

Select INBOX, enter email UID, set Seen=true, Draft=false.

Example 3: Mark multiple emails as Deleted

Select INBOX, enter comma-separated UIDs (e.g., 1,2,3), set Deleted=true.

Links

Discussion