IMAP (AI) icon

IMAP (AI)

Read, search, move, flag and download emails from any IMAP server. Fully usable as a tool from AI Agent nodes.

Email → Mark Unread

AI-generated

Summary

Remove the \Seen flag from one or more emails in a specified IMAP mailbox, marking them as unread.

Inputs

  • Mailbox / Folder (required) — IMAP folder path to operate in, e.g., INBOX, Sent, Archive/2026, or [Gmail]/All Mail.
  • UIDs (required) — One or more unique message identifiers (UIDs) for emails to mark as unread. Accepts a single number, a comma-separated list (e.g., "1,5,9"), or an IMAP range (e.g., "100:200", "1:*"). All referenced emails will be updated in one IMAP request.

Output shape

a list of JSON objects, each indicating which UIDs had the \Seen flag removed, the requested count (if determinable), and confirmation of the flag removal

The output confirms the UIDs affected and that the \Seen flag was removed. If the UIDs input includes a wildcard (e.g., "1:*"), the requestedCount in output will be null since the exact count is indeterminate.

Examples

Example 1: Mark specific emails as unread in the INBOX folder.

Set 'Mailbox / Folder' to 'INBOX' and 'UIDs' to e.g. '123,124,130'.

Links

Discussion