Back to Workflows

Save email attachments to Nextcloud

Apps in this workflow

Nextcloud

Categories

Sales
Finance & Accounting

Share

Details

Created 1 year ago by tennox
eye 393 views
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:

  1. Allow lodash to be used in n8n (or rewrite the code...)
    NODE_FUNCTION_ALLOW_EXTERNAL=lodash (environment variable)
  2. Import workflow
  3. Set credentials for Email & Nextcloud nodes
  4. Configure to use correct folder / custom filters
  5. Activate

Custom filter examples:

  • Only unread emails:
    Custom Email Config = ["UNSEEN"]
  • Filter emails by 'to' address:
    Custom Email Config = [["TO", "[email protected]"]]

Implement complex processes faster with n8n

red icon yellow icon red icon yellow icon