[ 
https://issues.apache.org/jira/browse/CAMEL-26018?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Claus Ibsen resolved CAMEL-26018.
---------------------------------
    Resolution: Fixed

Merged to main as 
https://github.com/apache/camel/commit/d3d5cad42d7d62fc356715462bce969f92668e1c 
(PR https://github.com/apache/camel/pull/28308).

_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)

Reply via email to