Templates / Listen on new emails on a IMAP mailbox

Listen on new emails on a IMAP mailbox

Needs changes

by mail · 8,448 views · created 2019-11-01 · Document Extraction

Needs changes. This template uses 1 thing(s) that n8n 3.0 removes: Convert to/from binary data. 1 breaking item(s) found. Static check, last run 2026-10-19.

What this workflow does

This workflow has 5 nodes and runs when a new email arrives over IMAP. It uses only n8n's built-in nodes.

How it runs

Trigger: When a new email arrives over IMAP.

  1. Move Binary Data (Convert to/from binary data): uses Convert to/from binary data
  2. XML: converts between XML and JSON
  3. Set (Edit Fields (Set)): sets or maps fields
  4. HTTP Request: calls an HTTP API

Before you upgrade to n8n 3.0

1 thing in this workflow is removed in n8n 3.0. Fix it before you upgrade:

  • Convert to/from binary data in Move Binary Data: replace with Convert to File or Extract from File.

Rather not rewrite it? Many of these flows can be rebuilt in Make (free plan).

Removed in 3.0Replace with
Convert to/from binary data
Move Binary Data
Convert to File or Extract from File

Nodes used (5)

From the author

Listen on new emails on a given IMAP mailbox. Converts the binary XML attachment to a stringified xmlproperty on the $data object and converts it to JSON. The Setnode could be replaced with Function nodes for example to do a conversion/mapping/transformation.…

Excerpt from mail's description on n8n.io.

View the original on n8n.io → Check your own copy

Get the weekly “what broke” email

New templates, newly broken ones, and n8n release changes. One short email a week.

Form not loading? Subscribe here.