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


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastruct...@apache.org or file a JIRA ticket
with INFRA.
---

Reply via email to