[backport camel-4.18.x] CAMEL-23891: camel-mail - filter Camel internal headers in MimeMultipartDataFormat unmarshal#24409
Open
oscerd wants to merge 1 commit into
Conversation
…artDataFormat unmarshal (apache#24406) Signed-off-by: Andrea Cosentino <ancosen@gmail.com> Co-authored-by: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
davsclaus
approved these changes
Jul 4, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Backport of #24406
Cherry-pick of #24406 onto
camel-4.18.x(targeting the 4.18.4 release).Original PR: #24406 — CAMEL-23891: camel-mail - filter Camel internal headers in MimeMultipartDataFormat unmarshal
Original author: @oscerd
Target branch:
camel-4.18.xWhat changed
MimeMultipartDataFormatunmarshalling (headersInline=true) now aligns with the camel-mail consumer: internal Camel headers (Camel*, matched case-insensitively) present in the external MIME headers are no longer copied verbatim onto the Camel message. Ordinary application headers (e.g.X-...) continue to pass through unchanged.copyNonStandardHeaders()delegates toDefaultHeaderFilterStrategy.applyFilterToExternalHeaders(...)on the inbound path, consistent with theMailHeaderFilterStrategyalready applied by the consumer.Backport notes
camel-4.18.x(theHeaderFilterStrategySPI and thedirect:unmarshalonlyinlineheaderstest route already exist on the branch).main(thecamel-4x-upgrade-guide-4_22.adocnote lives onmain; the 4.18-line note is handled as a separate doc-sync onmain).JIRA: https://issues.apache.org/jira/browse/CAMEL-23891
🤖 Generated with Claude Code on behalf of Andrea Cosentino