Save email attachments to Nextcloud
Needs changesNeeds changes. This template uses 1 thing(s) that n8n 3.0 removes: Function (legacy). 1 breaking item(s) found. Static check, last run 2026-10-19.
What this workflow does
This workflow has 3 nodes and runs when a new email arrives over IMAP. Along the way it connects Nextcloud.
How it runs
Trigger: When a new email arrives over IMAP.
- Map each attachment (Function): runs custom JavaScript (legacy Function node)
- Nextcloud: uses Nextcloud
Services it uses
Before you upgrade to n8n 3.0
1 thing in this workflow is removed in n8n 3.0. Fix it before you upgrade:
- Function (legacy) in Map each attachment: replace with Code node, mode 'Run Once for All Items'.
Rather not rewrite it? Many of these flows can be rebuilt in Make (free plan).
| Removed in 3.0 | Replace with |
|---|---|
| Function (legacy) Map each attachment | Code node, mode 'Run Once for All Items' |
Nodes used (3)
- Email Trigger (IMAP)
n8n-nodes-base.emailReadImap - Nextcloud
n8n-nodes-base.nextCloud - Function
n8n-nodes-base.function
From the author
This workflow will take all emails you put into a certain folder, upload any attachements to Nextcloud, and mark the emails as read (configurable). Attachements will be saved with automatically generated filenames:…