John Yin created CAMEL-24848:
--------------------------------

             Summary: The useHeaderFrom and other useHeaderXXXXX options 
defaulted to false but the document said the default should be true
                 Key: CAMEL-24848
                 URL: https://issues.apache.org/jira/browse/CAMEL-24848
             Project: Camel
          Issue Type: Bug
          Components: camel-mail
    Affects Versions: 4.22.0
            Reporter: John Yin


In 4.22, a number of endpoint options are introduced for the camel mail 
component, such as useHeaderFrom, useHeaderRecipients, useHeaderSubject, ...   
It is not clear what their default values are - the document is ambiguous.  The 
document said they are "Default to true" but showed "false" in the default 
value column.  The actual default value seems to be false.  This forces the 
application to add a long list of options to the endpoint if the headers are to 
be used:
useHeaderFrom=true&useHeaderRecipients=true&useHeaderSubject=true&useHeaderReplyTo=true
Otherwise, the email may be sent to the wrong place or rejected by SMTP server.

The following is copied from smtp.json in camel-mail-4.22.0.jar.
"useHeaderFrom": { "index": 33, "kind": "parameter", "displayName": "Use Header 
From", "group": "producer", "label": "producer", "required": false, "type": 
"boolean", "javaType": "boolean", "deprecated": false, "autowired": false, 
"secret": false, {*}"defaultValue": false{*}, "configurationClass": 
"org.apache.camel.component.mail.MailConfiguration", "configurationField": 
"configuration", "description": "Whether message headers From and Sender 
override the sender pre-configured in the endpoint URI. {*}Defaults to true{*}. 
Set to false to always use the endpoint URI sender, ignoring any From or Sender 
headers from the message." },



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to