[ 
https://issues.apache.org/jira/browse/NIFI-5693?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16648680#comment-16648680
 ] 

ASF GitHub Bot commented on NIFI-5693:
--------------------------------------

Github user patricker commented on the issue:

    https://github.com/apache/nifi/pull/3068
  
    I like your #2 approach, as shown in this PR. I haven't tested it yet, but 
can you provide a better description on the property? Right now there is no way 
for a user to know that TAR is the expected merge format (instead of, for 
example, the NiFi FlowFile packing format)


> 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)

Reply via email to