You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by ac...@apache.org on 2025/03/24 09:54:08 UTC

(camel) 01/01: CAMEL-21885 - HeaderFilter Strategies: add lowerCase where it's not present - Mail

This is an automated email from the ASF dual-hosted git repository.

acosentino pushed a commit to branch 21885-mail
in repository https://gitbox.apache.org/repos/asf/camel.git

commit 2e73b254bb950b16727175161fb4894bda1b34ca
Author: Andrea Cosentino <an...@gmail.com>
AuthorDate: Mon Mar 24 10:53:35 2025 +0100

    CAMEL-21885 - HeaderFilter Strategies: add lowerCase where it's not present - Mail
    
    Signed-off-by: Andrea Cosentino <an...@gmail.com>
---
 .../java/org/apache/camel/component/mail/MailHeaderFilterStrategy.java   | 1 +
 1 file changed, 1 insertion(+)

diff --git a/components/camel-mail/src/main/java/org/apache/camel/component/mail/MailHeaderFilterStrategy.java b/components/camel-mail/src/main/java/org/apache/camel/component/mail/MailHeaderFilterStrategy.java
index 9b5bddb7b2b..7c35a9f95e6 100644
--- a/components/camel-mail/src/main/java/org/apache/camel/component/mail/MailHeaderFilterStrategy.java
+++ b/components/camel-mail/src/main/java/org/apache/camel/component/mail/MailHeaderFilterStrategy.java
@@ -25,6 +25,7 @@ public class MailHeaderFilterStrategy extends DefaultHeaderFilterStrategy {
     }
 
     protected void initialize() {
+        setLowerCase(true);
         // filter headers begin with "Camel" or "org.apache.camel"
         setOutFilterStartsWith(CAMEL_FILTER_STARTS_WITH);
     }