You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@camel.apache.org by "Claus Ibsen (Jira)" <ji...@apache.org> on 2026/10/22 16:41:00 UTC
[jira] [Commented] (CAMEL-26018) camel-mail - the CamelMailAlternativeBody header is not in the catalog
[ https://issues.apache.org/jira/browse/CAMEL-26018?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=18130427#comment-18130427 ]
Claus Ibsen commented on CAMEL-26018:
-------------------------------------
PR [#28308|https://github.com/apache/camel/pull/28308]: the header has a @Metadata now, so the catalog of the six mail schemes lists it, and the endpoint DSL has mailAlternativeBody(). A test of the YAML validator of Camel CLI sets the header before an smtp producer and expects no report.
_Claude Code on behalf of davsclaus_
> camel-mail - the CamelMailAlternativeBody header is not in the catalog
> ----------------------------------------------------------------------
>
> Key: CAMEL-26018
> URL: https://issues.apache.org/jira/browse/CAMEL-26018
> Project: Camel
> Issue Type: Bug
> Components: camel-mail
> Affects Versions: 4.18.0, 4.22.0, 4.23.0
> Reporter: Claus Ibsen
> Assignee: Claus Ibsen
> Priority: Minor
> Fix For: 4.24.0
>
>
> {{MailConstants.MAIL_ALTERNATIVE_BODY}} ({{CamelMailAlternativeBody}}, main 56aa5f4970a6, line 47) has no {{@Metadata}}, so the catalog does not list it among the smtp headers, although the producer reads it for the alternative body of an HTML mail when {{alternativeBodyHeader}} is not set. The YAML validator of Camel CLI then rejects a correct route that sets it.
> Checked with {{camel_validate_source}} of the Camel MCP server (4.24.0-SNAPSHOT): a route with {{setHeader: name: CamelMailAlternativeBody}} before {{to: smtp://localhost:3025?contentType=text/html}} gives "header CamelMailAlternativeBody is not set by timer, smtp (the value would be null)".
> *Proposed change*: add {{@Metadata(label = "producer", description = ..., javaType = "String")}} to the constant.
> _Claude Code on behalf of davsclaus_
--
This message was sent by Atlassian Jira
(v10.3.26#10030026)