π Save email attachments to Nextcloud
β‘ 9,963 views Β· π File Management
Description
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:
2021-01-01_From-Sender-Name_Filename-of-attachement.pdf
Instructions:
- Allow lodash to be used in n8n (or rewrite the codeβ¦)
NODE_FUNCTION_ALLOW_EXTERNAL=lodash(environment variable) - Import workflow
- Set credentials for Email & Nextcloud nodes
- Configure to use correct folder / custom filters
- Activate
Custom filter examples:
- Only unread emails:
Custom Email Config=["UNSEEN"] - Filter emails by βtoβ address:
Custom Email Config=[["TO", "example+invoices@posteo.de"]]
π Nodes Used
Email Trigger (IMAP), Function, Nextcloud
π₯ Import
Download workflow.json and import into n8n:
Workflow menu β Import from File