David Savage created NIFI-5693: ---------------------------------- Summary: PutEmail should support multiple attachments Key: NIFI-5693 URL: https://issues.apache.org/jira/browse/NIFI-5693 Project: Apache NiFi Issue Type: Improvement Components: Extensions Affects Versions: 1.7.1 Reporter: David Savage
*As a* NiFi User *I want* to create multi part emails with many attachments *So that* I can interface NiFi flows with legacy email systems For this use case I reviewed this comment here [1] unfortunately the legacy system requires individual attachments and is out of my control to upgrade so the simple MergeFile based approach will not work. I can see three potential solutions to this: # Update PutEmail to extend BinFiles and use a similar mechanism to MergeFiles to collect many files from the flow. Complexity - Hard, Flexibility - High # Update PutEmail with an optional attribute to unpack files generated by MergeFile and add each entry as a new attachment. Complexity - Medium, Hackiness - Medium # Ignore PutEmail and use a custom script based on Groovy/Jython etc. Complexity - Simple, Supportability Low I've created a patch for 2 that I'll submit as a merge request soon. Interested in feedback and happy to try other approaches if this is something that the community is interested in supporting going forwards. [1] https://mail-archives.apache.org/mod_mbox/nifi-users/201709.mbox/%3CCALJK9a6oSdy5PXaKE0GxY1M3xQqYW8%2B0UUgsQmtbkO1qMK-MQA%40mail.gmail.com%3E -- This message was sent by Atlassian JIRA (v7.6.3#76005)