Skip to content
IMAP

How to use IMAP

Data & BICost: 1 credit per runTop 100 · #35Full guide

What it is for

The IMAP component connects flooows to any IMAP-compatible mailbox to detect new emails and copy, move, mark or delete them. Use it to process incoming invoices, sort support requests with AI or archive email automatically, whatever your provider.

The New Email trigger is a polling trigger: flooows checks the chosen Folder every few minutes and starts the flow for each new message.

Set up the connection

Authentication type: Custom credentials

  1. 1Look up your email provider's IMAP settings in its help pages: server, port and whether it uses TLS.
  2. 2For Gmail, enable IMAP in settings and create an App Password (requires 2-Step Verification); use imap.gmail.com, port 993 and TLS on.
  3. 3In flooows, add an IMAP step and click "Connect".
  4. 4Fill Host, Username, Password, Port and check Use TLS; keep Validate TLS Certificates on unless your server uses a self-signed certificate.
  5. 5Save the connection.
Connection fieldTypeRequired
HostTextYes
UsernameTextYes
PasswordSecret keyYes
PortNumberYes
Use TLSYes / NoYes
Validate TLS CertificatesYes / NoYes

Credentials are stored encrypted in your isolated database, in Spain, and are never shown in plain text.

How to use it in a flow

  • All actions need the email's Message UID; map it from the New Email output.
  • Mark Email as Read/Unread: set Folder, Message UID and toggle Mark as Read.
  • Move Email and Copy Email: choose Source Folder, Message UID and Target Folder, for example moving to "Processed".
  • Delete Email removes the message from the given folder; use it carefully.

Tips

  • •Move or mark each email as read at the end of the flow so you know what has been processed.
  • •Use a dedicated folder or label to limit which emails reach the flow.
  • •Combine with AI steps to extract data from the body or attachments.

Triggers (1)

Events that can start a flow. Expand each one to see its fields.

New EmailPeriodic check1 fields
FieldTypeRequired
FolderList (from your account)Yes

Actions (4)

Operations available as flow steps. Expand each one to see its fields.

Mark Email as Read/Unread3 fields
FieldTypeRequired
FolderList (from your account)Yes
Message UIDNumberYes
Mark as ReadYes / NoNo
Copy Email3 fields
FieldTypeRequired
Source FolderList (from your account)Yes
Message UIDNumberYes
Target FolderList (from your account)Yes
Move Email3 fields
FieldTypeRequired
Source FolderList (from your account)Yes
Message UIDNumberYes
Target FolderList (from your account)Yes
Delete Email2 fields
FieldTypeRequired
FolderList (from your account)Yes
Message UIDNumberYes

Common errors

Authentication error

Use an app password if your provider requires it and confirm IMAP is enabled.

Timeout or connection failure

Check host and port (usually 993 with TLS).

Certificate error

Verify the host; only turn off Validate TLS Certificates if you trust the server.

Message not found

UIDs are per folder: use the same folder where the email was detected.

Field types

"List (from your account)" loads options from your connected account; "Dynamic fields" appear depending on earlier choices; in any field you can insert data from previous steps with the data selector (e.g. {{trigger.email}}). More about data between steps