[
https://issues.apache.org/jira/browse/NIFI-3992?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16055258#comment-16055258
]
ASF GitHub Bot commented on NIFI-3992:
--------------------------------------
Github user ijokarumawak commented on a diff in the pull request:
https://github.com/apache/nifi/pull/1867#discussion_r122896473
--- Diff:
nifi-nar-bundles/nifi-email-bundle/nifi-email-processors/src/main/java/org/apache/nifi/processors/email/ConsumeEWS.java
---
@@ -175,6 +175,16 @@
.addValidator(StandardValidators.BOOLEAN_VALIDATOR)
.build();
+ public static final PropertyDescriptor INCLUDE_EMAIL_HEADERS = new
PropertyDescriptor.Builder()
+ .name("ews-include-headers")
+ .displayName("Original Headers to Include")
+ .description("Comma delimited list specifying which headers
from the original message to include in the exported email message. '*' means
copy all headers. " +
+ "Some headers can cause problems with message parsing,
specifically the 'Content-Type' header.")
--- End diff --
If excluding 'Content-Type' is the most use-case, user may want to simply
excludes it. It can be better if it provides both of 'include' and 'exclude'
headers options. There are many headers possibly returned,
https://www.iana.org/assignments/message-headers/message-headers.xhtml
> ConsumeEWS May Generate Unusable Emails
> ---------------------------------------
>
> Key: NIFI-3992
> URL: https://issues.apache.org/jira/browse/NIFI-3992
> Project: Apache NiFi
> Issue Type: Bug
> Components: Core Framework
> Affects Versions: 1.2.0
> Reporter: Peter Wicks
> Assignee: Peter Wicks
> Priority: Minor
>
> If an email contains attachments, ConsumeEWS may generate emails where the
> attachments cannot be extracted.
--
This message was sent by Atlassian JIRA
(v6.4.14#64029)