Skip to main content

Move Message to IMAP Folder

The Move Message to IMAP Folder action moves or modifies email messages in IMAP folders. Use this to organize processed emails by moving them to specific folders or marking them as read/unread.

When to Use This Action

Use this action when:

  • You want to file processed emails into organized folders automatically
  • You need to mark messages as read or unread as part of your workflow
  • You are archiving emails after creating tickets or taking other actions

This action is only available for Poller workflows. It supports both IMAP and Microsoft 365 connections.

Configuration

Move Message

FieldDescription
Move to FolderThe target folder path to move the message to. Supports text expressions with {{variable}} syntax.
Create folder if it does not existWhen enabled, creates the target folder if it does not already exist.

Change Message Status

FieldDescription
Mark message as readWhen enabled, marks the message as read.
Mark message as unreadWhen enabled, marks the message as unread.

Returned Variables

This action does not return any variables.

Example Use Cases

Archive Processed Emails

Move successfully processed emails to a dated archive folder:

SettingValue
Move to FolderArchive/{{date format="Y-m"}}
Create folder if not existsEnabled
Mark as readEnabled

Organize by Processing Result

SettingValue
Move to FolderProcessed/{{custom.result}}

Mark for Follow-up

Keep the email in the inbox but flag it for manual review:

SettingValue
Mark as unreadEnabled

Notes

  • For IMAP connections, modifications are queued and executed asynchronously
  • For Microsoft 365 connections, the action uses the Graph API for immediate modification
  • Folder names are case-sensitive on some mail servers