{"product_id":"n8n-email-to-nextcloud-save-attachments-mark-read","title":"n8n Email to Nextcloud: Save Attachments \u0026 Mark Read","description":"\u003ch3\u003eAutomatically move email attachments to Nextcloud—and keep your inbox clean\u003c\/h3\u003e\n\u003cp\u003eThis n8n workflow watches a specific email folder, uploads every attachment to \u003cstrong\u003eNextcloud\u003c\/strong\u003e, and then \u003cstrong\u003emarks the processed emails as read\u003c\/strong\u003e (configurable). Just drop emails into the watched folder and let the workflow handle the rest.\u003c\/p\u003e\n\n\u003ch3\u003eWhat this workflow does\u003c\/h3\u003e\n\u003cul\u003e\n  \u003cli\u003e\n\u003cstrong\u003eMonitors a target email folder\u003c\/strong\u003e in your account.\u003c\/li\u003e\n  \u003cli\u003e\n\u003cstrong\u003eProcesses all matching emails\u003c\/strong\u003e, based on configurable custom filters.\u003c\/li\u003e\n  \u003cli\u003e\n\u003cstrong\u003eUploads each attachment to Nextcloud\u003c\/strong\u003e (with auto-generated filenames).\u003c\/li\u003e\n  \u003cli\u003e\n\u003cstrong\u003eMarks emails as read\u003c\/strong\u003e after successfully saving attachments (configurable).\u003c\/li\u003e\n  \u003cli\u003eNames saved files like:\u003c\/li\u003e\n\u003c\/ul\u003e\n\u003cp\u003e\u003ccode\u003e2021-01-01_From-Sender-Name_Filename-of-attachement.pdf\u003c\/code\u003e\u003c\/p\u003e\n\u003cp\u003e\u003cstrong\u003eCustom filter examples\u003c\/strong\u003e include:\u003c\/p\u003e\n\u003cul\u003e\n  \u003cli\u003eOnly unread emails: \u003ccode\u003eCustom Email Config\u003c\/code\u003e = \u003ccode\u003e[\"UNSEEN\"]\u003c\/code\u003e\n\u003c\/li\u003e\n  \u003cli\u003eFilter by recipient: \u003ccode\u003eCustom Email Config\u003c\/code\u003e = \u003ccode\u003e[[\"TO\", \"example+invoices@posteo.de\"]]\u003c\/code\u003e\n\u003c\/li\u003e\n\u003c\/ul\u003e\n\n\u003ch3\u003eUse cases\u003c\/h3\u003e\n\u003cul\u003e\n  \u003cli\u003e\n\u003cstrong\u003eCentralize attachments\u003c\/strong\u003e from invoices, receipts, or documents directly into your Nextcloud storage.\u003c\/li\u003e\n  \u003cli\u003e\n\u003cstrong\u003eInbox hygiene\u003c\/strong\u003e for shared service accounts—process messages in bulk and automatically mark them as read.\u003c\/li\u003e\n  \u003cli\u003e\n\u003cstrong\u003eTargeted capture\u003c\/strong\u003e of emails sent to specific “invoices” or “support” addresses using IMAP-style filters.\u003c\/li\u003e\n\u003c\/ul\u003e\n\n\u003ch3\u003eTechnical details\u003c\/h3\u003e\n\u003cul\u003e\n  \u003cli\u003e\n\u003cstrong\u003en8n nodes \/ tech stack:\u003c\/strong\u003e function, next cloud, email read imap\u003c\/li\u003e\n  \u003cli\u003eRequires \u003cstrong\u003elodash support\u003c\/strong\u003e for the workflow execution:\u003c\/li\u003e\n\u003c\/ul\u003e\n\u003cp\u003e\u003ccode\u003eNODE_FUNCTION_ALLOW_EXTERNAL=lodash\u003c\/code\u003e\u003c\/p\u003e\n\u003cul\u003e\n  \u003cli\u003eSetup steps: import the workflow, configure credentials for the \u003cstrong\u003eEmail\u003c\/strong\u003e and \u003cstrong\u003eNextcloud\u003c\/strong\u003e nodes, select the correct folder, and adjust custom filters as needed.\u003c\/li\u003e\n  \u003cli\u003eOnce activated, the workflow runs continuously on the configured email folder and saves attachments into Nextcloud.\u003c\/li\u003e\n\u003c\/ul\u003e","brand":"N8N Commerce","offers":[{"title":"Default Title","offer_id":45755363131571,"sku":"N8N-1344","price":28.99,"currency_code":"GBP","in_stock":true}],"thumbnail_url":"\/\/cdn.shopify.com\/s\/files\/1\/0749\/6279\/6723\/files\/FwoEW6RSZDZWxmvG2qvPQ_otR41c8i.png?v=1785662207","url":"https:\/\/buyflowscripts.com\/products\/n8n-email-to-nextcloud-save-attachments-mark-read","provider":"N8N Commerce","version":"1.0","type":"link"}