Skip to main content

Listen on new emails on a IMAP mailbox

Workflow preview

Listen on new emails on a IMAP mailbox preview
Open on n8n.io

Important notice

This workflow is provided as-is. Please review and test before using in production.

Overview

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.

workflow-screenshot

The JSON is ultimately sent to a HTTP Endpoint via POST.

This could be a starter for EDI purposes like receiving or transmitting XML data and conversion via JSON object property mapping.