workflows.fit
Back to n8n workflows
n8n templateFreeBy mail

Listen on new emails on a IMAP mailbox

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 ...

DevelopmentCore NodesCommunicationEmail Read ImapMove Binary DataXmlHttp Request
Loading interactive preview...

Template notes

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](fileId:21)

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.