[ https://issues.apache.org/jira/browse/NIFI-5693?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16648984#comment-16648984 ]
ASF GitHub Bot commented on NIFI-5693: -------------------------------------- Github user davemssavage commented on the issue: https://github.com/apache/nifi/pull/3068 Great, I was thinking it would make sense to support all the types that MergeContent supports, however I didn't want to go down that route till others had a chance to comment on the options. I'll take a look at the other formats and submit an update soon with an updated description and more input format options > 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 > Priority: Minor > > *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)