This is an automated email from the ASF dual-hosted git repository.
oscerd pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/camel.git
The following commit(s) were added to refs/heads/main by this push:
new a04605ea8b86 CAMEL-23591: camel-mail - align consumer-side dispatch
header constant names with Camel naming convention (#23478)
a04605ea8b86 is described below
commit a04605ea8b86850a3d666aa273efff7bebfcec41
Author: Andrea Cosentino <[email protected]>
AuthorDate: Fri May 22 18:43:41 2026 +0200
CAMEL-23591: camel-mail - align consumer-side dispatch header constant
names with Camel naming convention (#23478)
Renames the three consumer-side dispatch header string values in
MailConstants
that control post-processing of a consumed mail message (copyTo, moveTo,
delete) to CamelMail<Name>, following the convention used across the rest of
the Camel component catalog and matching the pattern established in
CAMEL-23526
(camel-cxf), CAMEL-23522 (camel-mail mail.smtp.* hardening, of which this is
the companion), CAMEL-23461 (camel-aws-bedrock), CAMEL-23532
(camel-vertx-websocket / camel-atmosphere-websocket / camel-iggy), and
CAMEL-23576 (camel-jira).
- MAIL_COPY_TO: "copyTo" -> "CamelMailCopyTo"
- MAIL_MOVE_TO: "moveTo" -> "CamelMailMoveTo"
- MAIL_DELETE: "delete" -> "CamelMailDelete"
The Java field names are unchanged so routes referencing the constants
symbolically continue to work; routes using the literal string values must
be
updated (documented in the 4.21 upgrade guide).
The standard RFC 5322 message header constants (MAIL_SUBJECT=Subject,
MAIL_FROM=From, MAIL_TO=To, MAIL_CC=Cc, MAIL_BCC=Bcc,
MAIL_REPLY_TO=Reply-To,
MAIL_CONTENT_TYPE=contentType) are intentionally unchanged, as they map
directly to the corresponding email fields and renaming them would break
mail
interoperability. The equally-named copyTo and moveTo endpoint URI options
on
the mail consumer are also unchanged; only the Exchange header values are
affected.
The generated Endpoint DSL header accessors on MailHeaderNameBuilder have
been
renamed: copyTo() -> mailCopyTo(), moveTo() -> mailMoveTo(), and delete() ->
mailDelete().
All existing tests pass (they use symbolic constant references or the
unchanged URI options).
Tracker: CAMEL-23577
Reported by Claude Code on behalf of Andrea Cosentino
Signed-off-by: Andrea Cosentino <[email protected]>
---
.../org/apache/camel/catalog/components/imap.json | 6 ++--
.../org/apache/camel/catalog/components/imaps.json | 6 ++--
.../org/apache/camel/catalog/components/pop3.json | 6 ++--
.../org/apache/camel/catalog/components/pop3s.json | 6 ++--
.../org/apache/camel/catalog/components/smtp.json | 6 ++--
.../org/apache/camel/catalog/components/smtps.json | 6 ++--
.../org/apache/camel/component/mail/imap.json | 6 ++--
.../org/apache/camel/component/mail/imaps.json | 6 ++--
.../org/apache/camel/component/mail/pop3.json | 6 ++--
.../org/apache/camel/component/mail/pop3s.json | 6 ++--
.../org/apache/camel/component/mail/smtp.json | 6 ++--
.../org/apache/camel/component/mail/smtps.json | 6 ++--
.../apache/camel/component/mail/MailConstants.java | 6 ++--
.../ROOT/pages/camel-4x-upgrade-guide-4_21.adoc | 37 ++++++++++++++++++++++
.../endpoint/dsl/MailEndpointBuilderFactory.java | 18 +++++------
15 files changed, 85 insertions(+), 48 deletions(-)
diff --git
a/catalog/camel-catalog/src/generated/resources/org/apache/camel/catalog/components/imap.json
b/catalog/camel-catalog/src/generated/resources/org/apache/camel/catalog/components/imap.json
index 4f924d1b1ec6..47576d14e019 100644
---
a/catalog/camel-catalog/src/generated/resources/org/apache/camel/catalog/components/imap.json
+++
b/catalog/camel-catalog/src/generated/resources/org/apache/camel/catalog/components/imap.json
@@ -84,9 +84,9 @@
"Bcc": { "index": 4, "kind": "header", "displayName": "", "group":
"common", "label": "", "required": false, "javaType": "String", "deprecated":
false, "deprecationNote": "", "autowired": false, "secret": false,
"description": "Bcc", "constantName":
"org.apache.camel.component.mail.MailConstants#MAIL_BCC" },
"Reply-To": { "index": 5, "kind": "header", "displayName": "", "group":
"common", "label": "", "required": false, "javaType": "String", "deprecated":
false, "deprecationNote": "", "autowired": false, "secret": false,
"description": "Reply to", "constantName":
"org.apache.camel.component.mail.MailConstants#MAIL_REPLY_TO" },
"contentType": { "index": 6, "kind": "header", "displayName": "", "group":
"common", "label": "", "required": false, "javaType": "String", "deprecated":
false, "deprecationNote": "", "autowired": false, "secret": false,
"description": "The content type", "constantName":
"org.apache.camel.component.mail.MailConstants#MAIL_CONTENT_TYPE" },
- "copyTo": { "index": 7, "kind": "header", "displayName": "", "group":
"consumer", "label": "consumer", "required": false, "javaType": "String",
"deprecated": false, "deprecationNote": "", "autowired": false, "secret":
false, "description": "After processing a mail message, it can be copied to a
mail folder with the given name.", "constantName":
"org.apache.camel.component.mail.MailConstants#MAIL_COPY_TO" },
- "moveTo": { "index": 8, "kind": "header", "displayName": "", "group":
"consumer", "label": "consumer", "required": false, "javaType": "String",
"deprecated": false, "deprecationNote": "", "autowired": false, "secret":
false, "description": "After processing a mail message, it can be moved to a
mail folder with the given name.", "constantName":
"org.apache.camel.component.mail.MailConstants#MAIL_MOVE_TO" },
- "delete": { "index": 9, "kind": "header", "displayName": "", "group":
"consumer", "label": "consumer", "required": false, "javaType": "boolean",
"deprecated": false, "deprecationNote": "", "autowired": false, "secret":
false, "description": "Deletes the messages after they have been processed.",
"constantName": "org.apache.camel.component.mail.MailConstants#MAIL_DELETE" },
+ "CamelMailCopyTo": { "index": 7, "kind": "header", "displayName": "",
"group": "consumer", "label": "consumer", "required": false, "javaType":
"String", "deprecated": false, "deprecationNote": "", "autowired": false,
"secret": false, "description": "After processing a mail message, it can be
copied to a mail folder with the given name.", "constantName":
"org.apache.camel.component.mail.MailConstants#MAIL_COPY_TO" },
+ "CamelMailMoveTo": { "index": 8, "kind": "header", "displayName": "",
"group": "consumer", "label": "consumer", "required": false, "javaType":
"String", "deprecated": false, "deprecationNote": "", "autowired": false,
"secret": false, "description": "After processing a mail message, it can be
moved to a mail folder with the given name.", "constantName":
"org.apache.camel.component.mail.MailConstants#MAIL_MOVE_TO" },
+ "CamelMailDelete": { "index": 9, "kind": "header", "displayName": "",
"group": "consumer", "label": "consumer", "required": false, "javaType":
"boolean", "deprecated": false, "deprecationNote": "", "autowired": false,
"secret": false, "description": "Deletes the messages after they have been
processed.", "constantName":
"org.apache.camel.component.mail.MailConstants#MAIL_DELETE" },
"CamelMailMessageId": { "index": 10, "kind": "header", "displayName": "",
"group": "common", "label": "", "required": false, "javaType": "String",
"deprecated": false, "deprecationNote": "", "autowired": false, "secret":
false, "description": "The message ID.", "constantName":
"org.apache.camel.component.mail.MailConstants#MAIL_MESSAGE_ID" }
},
"properties": {
diff --git
a/catalog/camel-catalog/src/generated/resources/org/apache/camel/catalog/components/imaps.json
b/catalog/camel-catalog/src/generated/resources/org/apache/camel/catalog/components/imaps.json
index 89e7776ad3ae..5928154fcd8a 100644
---
a/catalog/camel-catalog/src/generated/resources/org/apache/camel/catalog/components/imaps.json
+++
b/catalog/camel-catalog/src/generated/resources/org/apache/camel/catalog/components/imaps.json
@@ -84,9 +84,9 @@
"Bcc": { "index": 4, "kind": "header", "displayName": "", "group":
"common", "label": "", "required": false, "javaType": "String", "deprecated":
false, "deprecationNote": "", "autowired": false, "secret": false,
"description": "Bcc", "constantName":
"org.apache.camel.component.mail.MailConstants#MAIL_BCC" },
"Reply-To": { "index": 5, "kind": "header", "displayName": "", "group":
"common", "label": "", "required": false, "javaType": "String", "deprecated":
false, "deprecationNote": "", "autowired": false, "secret": false,
"description": "Reply to", "constantName":
"org.apache.camel.component.mail.MailConstants#MAIL_REPLY_TO" },
"contentType": { "index": 6, "kind": "header", "displayName": "", "group":
"common", "label": "", "required": false, "javaType": "String", "deprecated":
false, "deprecationNote": "", "autowired": false, "secret": false,
"description": "The content type", "constantName":
"org.apache.camel.component.mail.MailConstants#MAIL_CONTENT_TYPE" },
- "copyTo": { "index": 7, "kind": "header", "displayName": "", "group":
"consumer", "label": "consumer", "required": false, "javaType": "String",
"deprecated": false, "deprecationNote": "", "autowired": false, "secret":
false, "description": "After processing a mail message, it can be copied to a
mail folder with the given name.", "constantName":
"org.apache.camel.component.mail.MailConstants#MAIL_COPY_TO" },
- "moveTo": { "index": 8, "kind": "header", "displayName": "", "group":
"consumer", "label": "consumer", "required": false, "javaType": "String",
"deprecated": false, "deprecationNote": "", "autowired": false, "secret":
false, "description": "After processing a mail message, it can be moved to a
mail folder with the given name.", "constantName":
"org.apache.camel.component.mail.MailConstants#MAIL_MOVE_TO" },
- "delete": { "index": 9, "kind": "header", "displayName": "", "group":
"consumer", "label": "consumer", "required": false, "javaType": "boolean",
"deprecated": false, "deprecationNote": "", "autowired": false, "secret":
false, "description": "Deletes the messages after they have been processed.",
"constantName": "org.apache.camel.component.mail.MailConstants#MAIL_DELETE" },
+ "CamelMailCopyTo": { "index": 7, "kind": "header", "displayName": "",
"group": "consumer", "label": "consumer", "required": false, "javaType":
"String", "deprecated": false, "deprecationNote": "", "autowired": false,
"secret": false, "description": "After processing a mail message, it can be
copied to a mail folder with the given name.", "constantName":
"org.apache.camel.component.mail.MailConstants#MAIL_COPY_TO" },
+ "CamelMailMoveTo": { "index": 8, "kind": "header", "displayName": "",
"group": "consumer", "label": "consumer", "required": false, "javaType":
"String", "deprecated": false, "deprecationNote": "", "autowired": false,
"secret": false, "description": "After processing a mail message, it can be
moved to a mail folder with the given name.", "constantName":
"org.apache.camel.component.mail.MailConstants#MAIL_MOVE_TO" },
+ "CamelMailDelete": { "index": 9, "kind": "header", "displayName": "",
"group": "consumer", "label": "consumer", "required": false, "javaType":
"boolean", "deprecated": false, "deprecationNote": "", "autowired": false,
"secret": false, "description": "Deletes the messages after they have been
processed.", "constantName":
"org.apache.camel.component.mail.MailConstants#MAIL_DELETE" },
"CamelMailMessageId": { "index": 10, "kind": "header", "displayName": "",
"group": "common", "label": "", "required": false, "javaType": "String",
"deprecated": false, "deprecationNote": "", "autowired": false, "secret":
false, "description": "The message ID.", "constantName":
"org.apache.camel.component.mail.MailConstants#MAIL_MESSAGE_ID" }
},
"properties": {
diff --git
a/catalog/camel-catalog/src/generated/resources/org/apache/camel/catalog/components/pop3.json
b/catalog/camel-catalog/src/generated/resources/org/apache/camel/catalog/components/pop3.json
index 679f4d028b77..0669272bd8e0 100644
---
a/catalog/camel-catalog/src/generated/resources/org/apache/camel/catalog/components/pop3.json
+++
b/catalog/camel-catalog/src/generated/resources/org/apache/camel/catalog/components/pop3.json
@@ -84,9 +84,9 @@
"Bcc": { "index": 4, "kind": "header", "displayName": "", "group":
"common", "label": "", "required": false, "javaType": "String", "deprecated":
false, "deprecationNote": "", "autowired": false, "secret": false,
"description": "Bcc", "constantName":
"org.apache.camel.component.mail.MailConstants#MAIL_BCC" },
"Reply-To": { "index": 5, "kind": "header", "displayName": "", "group":
"common", "label": "", "required": false, "javaType": "String", "deprecated":
false, "deprecationNote": "", "autowired": false, "secret": false,
"description": "Reply to", "constantName":
"org.apache.camel.component.mail.MailConstants#MAIL_REPLY_TO" },
"contentType": { "index": 6, "kind": "header", "displayName": "", "group":
"common", "label": "", "required": false, "javaType": "String", "deprecated":
false, "deprecationNote": "", "autowired": false, "secret": false,
"description": "The content type", "constantName":
"org.apache.camel.component.mail.MailConstants#MAIL_CONTENT_TYPE" },
- "copyTo": { "index": 7, "kind": "header", "displayName": "", "group":
"consumer", "label": "consumer", "required": false, "javaType": "String",
"deprecated": false, "deprecationNote": "", "autowired": false, "secret":
false, "description": "After processing a mail message, it can be copied to a
mail folder with the given name.", "constantName":
"org.apache.camel.component.mail.MailConstants#MAIL_COPY_TO" },
- "moveTo": { "index": 8, "kind": "header", "displayName": "", "group":
"consumer", "label": "consumer", "required": false, "javaType": "String",
"deprecated": false, "deprecationNote": "", "autowired": false, "secret":
false, "description": "After processing a mail message, it can be moved to a
mail folder with the given name.", "constantName":
"org.apache.camel.component.mail.MailConstants#MAIL_MOVE_TO" },
- "delete": { "index": 9, "kind": "header", "displayName": "", "group":
"consumer", "label": "consumer", "required": false, "javaType": "boolean",
"deprecated": false, "deprecationNote": "", "autowired": false, "secret":
false, "description": "Deletes the messages after they have been processed.",
"constantName": "org.apache.camel.component.mail.MailConstants#MAIL_DELETE" },
+ "CamelMailCopyTo": { "index": 7, "kind": "header", "displayName": "",
"group": "consumer", "label": "consumer", "required": false, "javaType":
"String", "deprecated": false, "deprecationNote": "", "autowired": false,
"secret": false, "description": "After processing a mail message, it can be
copied to a mail folder with the given name.", "constantName":
"org.apache.camel.component.mail.MailConstants#MAIL_COPY_TO" },
+ "CamelMailMoveTo": { "index": 8, "kind": "header", "displayName": "",
"group": "consumer", "label": "consumer", "required": false, "javaType":
"String", "deprecated": false, "deprecationNote": "", "autowired": false,
"secret": false, "description": "After processing a mail message, it can be
moved to a mail folder with the given name.", "constantName":
"org.apache.camel.component.mail.MailConstants#MAIL_MOVE_TO" },
+ "CamelMailDelete": { "index": 9, "kind": "header", "displayName": "",
"group": "consumer", "label": "consumer", "required": false, "javaType":
"boolean", "deprecated": false, "deprecationNote": "", "autowired": false,
"secret": false, "description": "Deletes the messages after they have been
processed.", "constantName":
"org.apache.camel.component.mail.MailConstants#MAIL_DELETE" },
"CamelMailMessageId": { "index": 10, "kind": "header", "displayName": "",
"group": "common", "label": "", "required": false, "javaType": "String",
"deprecated": false, "deprecationNote": "", "autowired": false, "secret":
false, "description": "The message ID.", "constantName":
"org.apache.camel.component.mail.MailConstants#MAIL_MESSAGE_ID" }
},
"properties": {
diff --git
a/catalog/camel-catalog/src/generated/resources/org/apache/camel/catalog/components/pop3s.json
b/catalog/camel-catalog/src/generated/resources/org/apache/camel/catalog/components/pop3s.json
index a457a2182eb7..4d26f9153723 100644
---
a/catalog/camel-catalog/src/generated/resources/org/apache/camel/catalog/components/pop3s.json
+++
b/catalog/camel-catalog/src/generated/resources/org/apache/camel/catalog/components/pop3s.json
@@ -84,9 +84,9 @@
"Bcc": { "index": 4, "kind": "header", "displayName": "", "group":
"common", "label": "", "required": false, "javaType": "String", "deprecated":
false, "deprecationNote": "", "autowired": false, "secret": false,
"description": "Bcc", "constantName":
"org.apache.camel.component.mail.MailConstants#MAIL_BCC" },
"Reply-To": { "index": 5, "kind": "header", "displayName": "", "group":
"common", "label": "", "required": false, "javaType": "String", "deprecated":
false, "deprecationNote": "", "autowired": false, "secret": false,
"description": "Reply to", "constantName":
"org.apache.camel.component.mail.MailConstants#MAIL_REPLY_TO" },
"contentType": { "index": 6, "kind": "header", "displayName": "", "group":
"common", "label": "", "required": false, "javaType": "String", "deprecated":
false, "deprecationNote": "", "autowired": false, "secret": false,
"description": "The content type", "constantName":
"org.apache.camel.component.mail.MailConstants#MAIL_CONTENT_TYPE" },
- "copyTo": { "index": 7, "kind": "header", "displayName": "", "group":
"consumer", "label": "consumer", "required": false, "javaType": "String",
"deprecated": false, "deprecationNote": "", "autowired": false, "secret":
false, "description": "After processing a mail message, it can be copied to a
mail folder with the given name.", "constantName":
"org.apache.camel.component.mail.MailConstants#MAIL_COPY_TO" },
- "moveTo": { "index": 8, "kind": "header", "displayName": "", "group":
"consumer", "label": "consumer", "required": false, "javaType": "String",
"deprecated": false, "deprecationNote": "", "autowired": false, "secret":
false, "description": "After processing a mail message, it can be moved to a
mail folder with the given name.", "constantName":
"org.apache.camel.component.mail.MailConstants#MAIL_MOVE_TO" },
- "delete": { "index": 9, "kind": "header", "displayName": "", "group":
"consumer", "label": "consumer", "required": false, "javaType": "boolean",
"deprecated": false, "deprecationNote": "", "autowired": false, "secret":
false, "description": "Deletes the messages after they have been processed.",
"constantName": "org.apache.camel.component.mail.MailConstants#MAIL_DELETE" },
+ "CamelMailCopyTo": { "index": 7, "kind": "header", "displayName": "",
"group": "consumer", "label": "consumer", "required": false, "javaType":
"String", "deprecated": false, "deprecationNote": "", "autowired": false,
"secret": false, "description": "After processing a mail message, it can be
copied to a mail folder with the given name.", "constantName":
"org.apache.camel.component.mail.MailConstants#MAIL_COPY_TO" },
+ "CamelMailMoveTo": { "index": 8, "kind": "header", "displayName": "",
"group": "consumer", "label": "consumer", "required": false, "javaType":
"String", "deprecated": false, "deprecationNote": "", "autowired": false,
"secret": false, "description": "After processing a mail message, it can be
moved to a mail folder with the given name.", "constantName":
"org.apache.camel.component.mail.MailConstants#MAIL_MOVE_TO" },
+ "CamelMailDelete": { "index": 9, "kind": "header", "displayName": "",
"group": "consumer", "label": "consumer", "required": false, "javaType":
"boolean", "deprecated": false, "deprecationNote": "", "autowired": false,
"secret": false, "description": "Deletes the messages after they have been
processed.", "constantName":
"org.apache.camel.component.mail.MailConstants#MAIL_DELETE" },
"CamelMailMessageId": { "index": 10, "kind": "header", "displayName": "",
"group": "common", "label": "", "required": false, "javaType": "String",
"deprecated": false, "deprecationNote": "", "autowired": false, "secret":
false, "description": "The message ID.", "constantName":
"org.apache.camel.component.mail.MailConstants#MAIL_MESSAGE_ID" }
},
"properties": {
diff --git
a/catalog/camel-catalog/src/generated/resources/org/apache/camel/catalog/components/smtp.json
b/catalog/camel-catalog/src/generated/resources/org/apache/camel/catalog/components/smtp.json
index 1b275556c958..c065343709e8 100644
---
a/catalog/camel-catalog/src/generated/resources/org/apache/camel/catalog/components/smtp.json
+++
b/catalog/camel-catalog/src/generated/resources/org/apache/camel/catalog/components/smtp.json
@@ -84,9 +84,9 @@
"Bcc": { "index": 4, "kind": "header", "displayName": "", "group":
"common", "label": "", "required": false, "javaType": "String", "deprecated":
false, "deprecationNote": "", "autowired": false, "secret": false,
"description": "Bcc", "constantName":
"org.apache.camel.component.mail.MailConstants#MAIL_BCC" },
"Reply-To": { "index": 5, "kind": "header", "displayName": "", "group":
"common", "label": "", "required": false, "javaType": "String", "deprecated":
false, "deprecationNote": "", "autowired": false, "secret": false,
"description": "Reply to", "constantName":
"org.apache.camel.component.mail.MailConstants#MAIL_REPLY_TO" },
"contentType": { "index": 6, "kind": "header", "displayName": "", "group":
"common", "label": "", "required": false, "javaType": "String", "deprecated":
false, "deprecationNote": "", "autowired": false, "secret": false,
"description": "The content type", "constantName":
"org.apache.camel.component.mail.MailConstants#MAIL_CONTENT_TYPE" },
- "copyTo": { "index": 7, "kind": "header", "displayName": "", "group":
"consumer", "label": "consumer", "required": false, "javaType": "String",
"deprecated": false, "deprecationNote": "", "autowired": false, "secret":
false, "description": "After processing a mail message, it can be copied to a
mail folder with the given name.", "constantName":
"org.apache.camel.component.mail.MailConstants#MAIL_COPY_TO" },
- "moveTo": { "index": 8, "kind": "header", "displayName": "", "group":
"consumer", "label": "consumer", "required": false, "javaType": "String",
"deprecated": false, "deprecationNote": "", "autowired": false, "secret":
false, "description": "After processing a mail message, it can be moved to a
mail folder with the given name.", "constantName":
"org.apache.camel.component.mail.MailConstants#MAIL_MOVE_TO" },
- "delete": { "index": 9, "kind": "header", "displayName": "", "group":
"consumer", "label": "consumer", "required": false, "javaType": "boolean",
"deprecated": false, "deprecationNote": "", "autowired": false, "secret":
false, "description": "Deletes the messages after they have been processed.",
"constantName": "org.apache.camel.component.mail.MailConstants#MAIL_DELETE" },
+ "CamelMailCopyTo": { "index": 7, "kind": "header", "displayName": "",
"group": "consumer", "label": "consumer", "required": false, "javaType":
"String", "deprecated": false, "deprecationNote": "", "autowired": false,
"secret": false, "description": "After processing a mail message, it can be
copied to a mail folder with the given name.", "constantName":
"org.apache.camel.component.mail.MailConstants#MAIL_COPY_TO" },
+ "CamelMailMoveTo": { "index": 8, "kind": "header", "displayName": "",
"group": "consumer", "label": "consumer", "required": false, "javaType":
"String", "deprecated": false, "deprecationNote": "", "autowired": false,
"secret": false, "description": "After processing a mail message, it can be
moved to a mail folder with the given name.", "constantName":
"org.apache.camel.component.mail.MailConstants#MAIL_MOVE_TO" },
+ "CamelMailDelete": { "index": 9, "kind": "header", "displayName": "",
"group": "consumer", "label": "consumer", "required": false, "javaType":
"boolean", "deprecated": false, "deprecationNote": "", "autowired": false,
"secret": false, "description": "Deletes the messages after they have been
processed.", "constantName":
"org.apache.camel.component.mail.MailConstants#MAIL_DELETE" },
"CamelMailMessageId": { "index": 10, "kind": "header", "displayName": "",
"group": "common", "label": "", "required": false, "javaType": "String",
"deprecated": false, "deprecationNote": "", "autowired": false, "secret":
false, "description": "The message ID.", "constantName":
"org.apache.camel.component.mail.MailConstants#MAIL_MESSAGE_ID" }
},
"properties": {
diff --git
a/catalog/camel-catalog/src/generated/resources/org/apache/camel/catalog/components/smtps.json
b/catalog/camel-catalog/src/generated/resources/org/apache/camel/catalog/components/smtps.json
index 4eb1194a5993..d8d63c7c0e7d 100644
---
a/catalog/camel-catalog/src/generated/resources/org/apache/camel/catalog/components/smtps.json
+++
b/catalog/camel-catalog/src/generated/resources/org/apache/camel/catalog/components/smtps.json
@@ -84,9 +84,9 @@
"Bcc": { "index": 4, "kind": "header", "displayName": "", "group":
"common", "label": "", "required": false, "javaType": "String", "deprecated":
false, "deprecationNote": "", "autowired": false, "secret": false,
"description": "Bcc", "constantName":
"org.apache.camel.component.mail.MailConstants#MAIL_BCC" },
"Reply-To": { "index": 5, "kind": "header", "displayName": "", "group":
"common", "label": "", "required": false, "javaType": "String", "deprecated":
false, "deprecationNote": "", "autowired": false, "secret": false,
"description": "Reply to", "constantName":
"org.apache.camel.component.mail.MailConstants#MAIL_REPLY_TO" },
"contentType": { "index": 6, "kind": "header", "displayName": "", "group":
"common", "label": "", "required": false, "javaType": "String", "deprecated":
false, "deprecationNote": "", "autowired": false, "secret": false,
"description": "The content type", "constantName":
"org.apache.camel.component.mail.MailConstants#MAIL_CONTENT_TYPE" },
- "copyTo": { "index": 7, "kind": "header", "displayName": "", "group":
"consumer", "label": "consumer", "required": false, "javaType": "String",
"deprecated": false, "deprecationNote": "", "autowired": false, "secret":
false, "description": "After processing a mail message, it can be copied to a
mail folder with the given name.", "constantName":
"org.apache.camel.component.mail.MailConstants#MAIL_COPY_TO" },
- "moveTo": { "index": 8, "kind": "header", "displayName": "", "group":
"consumer", "label": "consumer", "required": false, "javaType": "String",
"deprecated": false, "deprecationNote": "", "autowired": false, "secret":
false, "description": "After processing a mail message, it can be moved to a
mail folder with the given name.", "constantName":
"org.apache.camel.component.mail.MailConstants#MAIL_MOVE_TO" },
- "delete": { "index": 9, "kind": "header", "displayName": "", "group":
"consumer", "label": "consumer", "required": false, "javaType": "boolean",
"deprecated": false, "deprecationNote": "", "autowired": false, "secret":
false, "description": "Deletes the messages after they have been processed.",
"constantName": "org.apache.camel.component.mail.MailConstants#MAIL_DELETE" },
+ "CamelMailCopyTo": { "index": 7, "kind": "header", "displayName": "",
"group": "consumer", "label": "consumer", "required": false, "javaType":
"String", "deprecated": false, "deprecationNote": "", "autowired": false,
"secret": false, "description": "After processing a mail message, it can be
copied to a mail folder with the given name.", "constantName":
"org.apache.camel.component.mail.MailConstants#MAIL_COPY_TO" },
+ "CamelMailMoveTo": { "index": 8, "kind": "header", "displayName": "",
"group": "consumer", "label": "consumer", "required": false, "javaType":
"String", "deprecated": false, "deprecationNote": "", "autowired": false,
"secret": false, "description": "After processing a mail message, it can be
moved to a mail folder with the given name.", "constantName":
"org.apache.camel.component.mail.MailConstants#MAIL_MOVE_TO" },
+ "CamelMailDelete": { "index": 9, "kind": "header", "displayName": "",
"group": "consumer", "label": "consumer", "required": false, "javaType":
"boolean", "deprecated": false, "deprecationNote": "", "autowired": false,
"secret": false, "description": "Deletes the messages after they have been
processed.", "constantName":
"org.apache.camel.component.mail.MailConstants#MAIL_DELETE" },
"CamelMailMessageId": { "index": 10, "kind": "header", "displayName": "",
"group": "common", "label": "", "required": false, "javaType": "String",
"deprecated": false, "deprecationNote": "", "autowired": false, "secret":
false, "description": "The message ID.", "constantName":
"org.apache.camel.component.mail.MailConstants#MAIL_MESSAGE_ID" }
},
"properties": {
diff --git
a/components/camel-mail/src/generated/resources/META-INF/org/apache/camel/component/mail/imap.json
b/components/camel-mail/src/generated/resources/META-INF/org/apache/camel/component/mail/imap.json
index 4f924d1b1ec6..47576d14e019 100644
---
a/components/camel-mail/src/generated/resources/META-INF/org/apache/camel/component/mail/imap.json
+++
b/components/camel-mail/src/generated/resources/META-INF/org/apache/camel/component/mail/imap.json
@@ -84,9 +84,9 @@
"Bcc": { "index": 4, "kind": "header", "displayName": "", "group":
"common", "label": "", "required": false, "javaType": "String", "deprecated":
false, "deprecationNote": "", "autowired": false, "secret": false,
"description": "Bcc", "constantName":
"org.apache.camel.component.mail.MailConstants#MAIL_BCC" },
"Reply-To": { "index": 5, "kind": "header", "displayName": "", "group":
"common", "label": "", "required": false, "javaType": "String", "deprecated":
false, "deprecationNote": "", "autowired": false, "secret": false,
"description": "Reply to", "constantName":
"org.apache.camel.component.mail.MailConstants#MAIL_REPLY_TO" },
"contentType": { "index": 6, "kind": "header", "displayName": "", "group":
"common", "label": "", "required": false, "javaType": "String", "deprecated":
false, "deprecationNote": "", "autowired": false, "secret": false,
"description": "The content type", "constantName":
"org.apache.camel.component.mail.MailConstants#MAIL_CONTENT_TYPE" },
- "copyTo": { "index": 7, "kind": "header", "displayName": "", "group":
"consumer", "label": "consumer", "required": false, "javaType": "String",
"deprecated": false, "deprecationNote": "", "autowired": false, "secret":
false, "description": "After processing a mail message, it can be copied to a
mail folder with the given name.", "constantName":
"org.apache.camel.component.mail.MailConstants#MAIL_COPY_TO" },
- "moveTo": { "index": 8, "kind": "header", "displayName": "", "group":
"consumer", "label": "consumer", "required": false, "javaType": "String",
"deprecated": false, "deprecationNote": "", "autowired": false, "secret":
false, "description": "After processing a mail message, it can be moved to a
mail folder with the given name.", "constantName":
"org.apache.camel.component.mail.MailConstants#MAIL_MOVE_TO" },
- "delete": { "index": 9, "kind": "header", "displayName": "", "group":
"consumer", "label": "consumer", "required": false, "javaType": "boolean",
"deprecated": false, "deprecationNote": "", "autowired": false, "secret":
false, "description": "Deletes the messages after they have been processed.",
"constantName": "org.apache.camel.component.mail.MailConstants#MAIL_DELETE" },
+ "CamelMailCopyTo": { "index": 7, "kind": "header", "displayName": "",
"group": "consumer", "label": "consumer", "required": false, "javaType":
"String", "deprecated": false, "deprecationNote": "", "autowired": false,
"secret": false, "description": "After processing a mail message, it can be
copied to a mail folder with the given name.", "constantName":
"org.apache.camel.component.mail.MailConstants#MAIL_COPY_TO" },
+ "CamelMailMoveTo": { "index": 8, "kind": "header", "displayName": "",
"group": "consumer", "label": "consumer", "required": false, "javaType":
"String", "deprecated": false, "deprecationNote": "", "autowired": false,
"secret": false, "description": "After processing a mail message, it can be
moved to a mail folder with the given name.", "constantName":
"org.apache.camel.component.mail.MailConstants#MAIL_MOVE_TO" },
+ "CamelMailDelete": { "index": 9, "kind": "header", "displayName": "",
"group": "consumer", "label": "consumer", "required": false, "javaType":
"boolean", "deprecated": false, "deprecationNote": "", "autowired": false,
"secret": false, "description": "Deletes the messages after they have been
processed.", "constantName":
"org.apache.camel.component.mail.MailConstants#MAIL_DELETE" },
"CamelMailMessageId": { "index": 10, "kind": "header", "displayName": "",
"group": "common", "label": "", "required": false, "javaType": "String",
"deprecated": false, "deprecationNote": "", "autowired": false, "secret":
false, "description": "The message ID.", "constantName":
"org.apache.camel.component.mail.MailConstants#MAIL_MESSAGE_ID" }
},
"properties": {
diff --git
a/components/camel-mail/src/generated/resources/META-INF/org/apache/camel/component/mail/imaps.json
b/components/camel-mail/src/generated/resources/META-INF/org/apache/camel/component/mail/imaps.json
index 89e7776ad3ae..5928154fcd8a 100644
---
a/components/camel-mail/src/generated/resources/META-INF/org/apache/camel/component/mail/imaps.json
+++
b/components/camel-mail/src/generated/resources/META-INF/org/apache/camel/component/mail/imaps.json
@@ -84,9 +84,9 @@
"Bcc": { "index": 4, "kind": "header", "displayName": "", "group":
"common", "label": "", "required": false, "javaType": "String", "deprecated":
false, "deprecationNote": "", "autowired": false, "secret": false,
"description": "Bcc", "constantName":
"org.apache.camel.component.mail.MailConstants#MAIL_BCC" },
"Reply-To": { "index": 5, "kind": "header", "displayName": "", "group":
"common", "label": "", "required": false, "javaType": "String", "deprecated":
false, "deprecationNote": "", "autowired": false, "secret": false,
"description": "Reply to", "constantName":
"org.apache.camel.component.mail.MailConstants#MAIL_REPLY_TO" },
"contentType": { "index": 6, "kind": "header", "displayName": "", "group":
"common", "label": "", "required": false, "javaType": "String", "deprecated":
false, "deprecationNote": "", "autowired": false, "secret": false,
"description": "The content type", "constantName":
"org.apache.camel.component.mail.MailConstants#MAIL_CONTENT_TYPE" },
- "copyTo": { "index": 7, "kind": "header", "displayName": "", "group":
"consumer", "label": "consumer", "required": false, "javaType": "String",
"deprecated": false, "deprecationNote": "", "autowired": false, "secret":
false, "description": "After processing a mail message, it can be copied to a
mail folder with the given name.", "constantName":
"org.apache.camel.component.mail.MailConstants#MAIL_COPY_TO" },
- "moveTo": { "index": 8, "kind": "header", "displayName": "", "group":
"consumer", "label": "consumer", "required": false, "javaType": "String",
"deprecated": false, "deprecationNote": "", "autowired": false, "secret":
false, "description": "After processing a mail message, it can be moved to a
mail folder with the given name.", "constantName":
"org.apache.camel.component.mail.MailConstants#MAIL_MOVE_TO" },
- "delete": { "index": 9, "kind": "header", "displayName": "", "group":
"consumer", "label": "consumer", "required": false, "javaType": "boolean",
"deprecated": false, "deprecationNote": "", "autowired": false, "secret":
false, "description": "Deletes the messages after they have been processed.",
"constantName": "org.apache.camel.component.mail.MailConstants#MAIL_DELETE" },
+ "CamelMailCopyTo": { "index": 7, "kind": "header", "displayName": "",
"group": "consumer", "label": "consumer", "required": false, "javaType":
"String", "deprecated": false, "deprecationNote": "", "autowired": false,
"secret": false, "description": "After processing a mail message, it can be
copied to a mail folder with the given name.", "constantName":
"org.apache.camel.component.mail.MailConstants#MAIL_COPY_TO" },
+ "CamelMailMoveTo": { "index": 8, "kind": "header", "displayName": "",
"group": "consumer", "label": "consumer", "required": false, "javaType":
"String", "deprecated": false, "deprecationNote": "", "autowired": false,
"secret": false, "description": "After processing a mail message, it can be
moved to a mail folder with the given name.", "constantName":
"org.apache.camel.component.mail.MailConstants#MAIL_MOVE_TO" },
+ "CamelMailDelete": { "index": 9, "kind": "header", "displayName": "",
"group": "consumer", "label": "consumer", "required": false, "javaType":
"boolean", "deprecated": false, "deprecationNote": "", "autowired": false,
"secret": false, "description": "Deletes the messages after they have been
processed.", "constantName":
"org.apache.camel.component.mail.MailConstants#MAIL_DELETE" },
"CamelMailMessageId": { "index": 10, "kind": "header", "displayName": "",
"group": "common", "label": "", "required": false, "javaType": "String",
"deprecated": false, "deprecationNote": "", "autowired": false, "secret":
false, "description": "The message ID.", "constantName":
"org.apache.camel.component.mail.MailConstants#MAIL_MESSAGE_ID" }
},
"properties": {
diff --git
a/components/camel-mail/src/generated/resources/META-INF/org/apache/camel/component/mail/pop3.json
b/components/camel-mail/src/generated/resources/META-INF/org/apache/camel/component/mail/pop3.json
index 679f4d028b77..0669272bd8e0 100644
---
a/components/camel-mail/src/generated/resources/META-INF/org/apache/camel/component/mail/pop3.json
+++
b/components/camel-mail/src/generated/resources/META-INF/org/apache/camel/component/mail/pop3.json
@@ -84,9 +84,9 @@
"Bcc": { "index": 4, "kind": "header", "displayName": "", "group":
"common", "label": "", "required": false, "javaType": "String", "deprecated":
false, "deprecationNote": "", "autowired": false, "secret": false,
"description": "Bcc", "constantName":
"org.apache.camel.component.mail.MailConstants#MAIL_BCC" },
"Reply-To": { "index": 5, "kind": "header", "displayName": "", "group":
"common", "label": "", "required": false, "javaType": "String", "deprecated":
false, "deprecationNote": "", "autowired": false, "secret": false,
"description": "Reply to", "constantName":
"org.apache.camel.component.mail.MailConstants#MAIL_REPLY_TO" },
"contentType": { "index": 6, "kind": "header", "displayName": "", "group":
"common", "label": "", "required": false, "javaType": "String", "deprecated":
false, "deprecationNote": "", "autowired": false, "secret": false,
"description": "The content type", "constantName":
"org.apache.camel.component.mail.MailConstants#MAIL_CONTENT_TYPE" },
- "copyTo": { "index": 7, "kind": "header", "displayName": "", "group":
"consumer", "label": "consumer", "required": false, "javaType": "String",
"deprecated": false, "deprecationNote": "", "autowired": false, "secret":
false, "description": "After processing a mail message, it can be copied to a
mail folder with the given name.", "constantName":
"org.apache.camel.component.mail.MailConstants#MAIL_COPY_TO" },
- "moveTo": { "index": 8, "kind": "header", "displayName": "", "group":
"consumer", "label": "consumer", "required": false, "javaType": "String",
"deprecated": false, "deprecationNote": "", "autowired": false, "secret":
false, "description": "After processing a mail message, it can be moved to a
mail folder with the given name.", "constantName":
"org.apache.camel.component.mail.MailConstants#MAIL_MOVE_TO" },
- "delete": { "index": 9, "kind": "header", "displayName": "", "group":
"consumer", "label": "consumer", "required": false, "javaType": "boolean",
"deprecated": false, "deprecationNote": "", "autowired": false, "secret":
false, "description": "Deletes the messages after they have been processed.",
"constantName": "org.apache.camel.component.mail.MailConstants#MAIL_DELETE" },
+ "CamelMailCopyTo": { "index": 7, "kind": "header", "displayName": "",
"group": "consumer", "label": "consumer", "required": false, "javaType":
"String", "deprecated": false, "deprecationNote": "", "autowired": false,
"secret": false, "description": "After processing a mail message, it can be
copied to a mail folder with the given name.", "constantName":
"org.apache.camel.component.mail.MailConstants#MAIL_COPY_TO" },
+ "CamelMailMoveTo": { "index": 8, "kind": "header", "displayName": "",
"group": "consumer", "label": "consumer", "required": false, "javaType":
"String", "deprecated": false, "deprecationNote": "", "autowired": false,
"secret": false, "description": "After processing a mail message, it can be
moved to a mail folder with the given name.", "constantName":
"org.apache.camel.component.mail.MailConstants#MAIL_MOVE_TO" },
+ "CamelMailDelete": { "index": 9, "kind": "header", "displayName": "",
"group": "consumer", "label": "consumer", "required": false, "javaType":
"boolean", "deprecated": false, "deprecationNote": "", "autowired": false,
"secret": false, "description": "Deletes the messages after they have been
processed.", "constantName":
"org.apache.camel.component.mail.MailConstants#MAIL_DELETE" },
"CamelMailMessageId": { "index": 10, "kind": "header", "displayName": "",
"group": "common", "label": "", "required": false, "javaType": "String",
"deprecated": false, "deprecationNote": "", "autowired": false, "secret":
false, "description": "The message ID.", "constantName":
"org.apache.camel.component.mail.MailConstants#MAIL_MESSAGE_ID" }
},
"properties": {
diff --git
a/components/camel-mail/src/generated/resources/META-INF/org/apache/camel/component/mail/pop3s.json
b/components/camel-mail/src/generated/resources/META-INF/org/apache/camel/component/mail/pop3s.json
index a457a2182eb7..4d26f9153723 100644
---
a/components/camel-mail/src/generated/resources/META-INF/org/apache/camel/component/mail/pop3s.json
+++
b/components/camel-mail/src/generated/resources/META-INF/org/apache/camel/component/mail/pop3s.json
@@ -84,9 +84,9 @@
"Bcc": { "index": 4, "kind": "header", "displayName": "", "group":
"common", "label": "", "required": false, "javaType": "String", "deprecated":
false, "deprecationNote": "", "autowired": false, "secret": false,
"description": "Bcc", "constantName":
"org.apache.camel.component.mail.MailConstants#MAIL_BCC" },
"Reply-To": { "index": 5, "kind": "header", "displayName": "", "group":
"common", "label": "", "required": false, "javaType": "String", "deprecated":
false, "deprecationNote": "", "autowired": false, "secret": false,
"description": "Reply to", "constantName":
"org.apache.camel.component.mail.MailConstants#MAIL_REPLY_TO" },
"contentType": { "index": 6, "kind": "header", "displayName": "", "group":
"common", "label": "", "required": false, "javaType": "String", "deprecated":
false, "deprecationNote": "", "autowired": false, "secret": false,
"description": "The content type", "constantName":
"org.apache.camel.component.mail.MailConstants#MAIL_CONTENT_TYPE" },
- "copyTo": { "index": 7, "kind": "header", "displayName": "", "group":
"consumer", "label": "consumer", "required": false, "javaType": "String",
"deprecated": false, "deprecationNote": "", "autowired": false, "secret":
false, "description": "After processing a mail message, it can be copied to a
mail folder with the given name.", "constantName":
"org.apache.camel.component.mail.MailConstants#MAIL_COPY_TO" },
- "moveTo": { "index": 8, "kind": "header", "displayName": "", "group":
"consumer", "label": "consumer", "required": false, "javaType": "String",
"deprecated": false, "deprecationNote": "", "autowired": false, "secret":
false, "description": "After processing a mail message, it can be moved to a
mail folder with the given name.", "constantName":
"org.apache.camel.component.mail.MailConstants#MAIL_MOVE_TO" },
- "delete": { "index": 9, "kind": "header", "displayName": "", "group":
"consumer", "label": "consumer", "required": false, "javaType": "boolean",
"deprecated": false, "deprecationNote": "", "autowired": false, "secret":
false, "description": "Deletes the messages after they have been processed.",
"constantName": "org.apache.camel.component.mail.MailConstants#MAIL_DELETE" },
+ "CamelMailCopyTo": { "index": 7, "kind": "header", "displayName": "",
"group": "consumer", "label": "consumer", "required": false, "javaType":
"String", "deprecated": false, "deprecationNote": "", "autowired": false,
"secret": false, "description": "After processing a mail message, it can be
copied to a mail folder with the given name.", "constantName":
"org.apache.camel.component.mail.MailConstants#MAIL_COPY_TO" },
+ "CamelMailMoveTo": { "index": 8, "kind": "header", "displayName": "",
"group": "consumer", "label": "consumer", "required": false, "javaType":
"String", "deprecated": false, "deprecationNote": "", "autowired": false,
"secret": false, "description": "After processing a mail message, it can be
moved to a mail folder with the given name.", "constantName":
"org.apache.camel.component.mail.MailConstants#MAIL_MOVE_TO" },
+ "CamelMailDelete": { "index": 9, "kind": "header", "displayName": "",
"group": "consumer", "label": "consumer", "required": false, "javaType":
"boolean", "deprecated": false, "deprecationNote": "", "autowired": false,
"secret": false, "description": "Deletes the messages after they have been
processed.", "constantName":
"org.apache.camel.component.mail.MailConstants#MAIL_DELETE" },
"CamelMailMessageId": { "index": 10, "kind": "header", "displayName": "",
"group": "common", "label": "", "required": false, "javaType": "String",
"deprecated": false, "deprecationNote": "", "autowired": false, "secret":
false, "description": "The message ID.", "constantName":
"org.apache.camel.component.mail.MailConstants#MAIL_MESSAGE_ID" }
},
"properties": {
diff --git
a/components/camel-mail/src/generated/resources/META-INF/org/apache/camel/component/mail/smtp.json
b/components/camel-mail/src/generated/resources/META-INF/org/apache/camel/component/mail/smtp.json
index 1b275556c958..c065343709e8 100644
---
a/components/camel-mail/src/generated/resources/META-INF/org/apache/camel/component/mail/smtp.json
+++
b/components/camel-mail/src/generated/resources/META-INF/org/apache/camel/component/mail/smtp.json
@@ -84,9 +84,9 @@
"Bcc": { "index": 4, "kind": "header", "displayName": "", "group":
"common", "label": "", "required": false, "javaType": "String", "deprecated":
false, "deprecationNote": "", "autowired": false, "secret": false,
"description": "Bcc", "constantName":
"org.apache.camel.component.mail.MailConstants#MAIL_BCC" },
"Reply-To": { "index": 5, "kind": "header", "displayName": "", "group":
"common", "label": "", "required": false, "javaType": "String", "deprecated":
false, "deprecationNote": "", "autowired": false, "secret": false,
"description": "Reply to", "constantName":
"org.apache.camel.component.mail.MailConstants#MAIL_REPLY_TO" },
"contentType": { "index": 6, "kind": "header", "displayName": "", "group":
"common", "label": "", "required": false, "javaType": "String", "deprecated":
false, "deprecationNote": "", "autowired": false, "secret": false,
"description": "The content type", "constantName":
"org.apache.camel.component.mail.MailConstants#MAIL_CONTENT_TYPE" },
- "copyTo": { "index": 7, "kind": "header", "displayName": "", "group":
"consumer", "label": "consumer", "required": false, "javaType": "String",
"deprecated": false, "deprecationNote": "", "autowired": false, "secret":
false, "description": "After processing a mail message, it can be copied to a
mail folder with the given name.", "constantName":
"org.apache.camel.component.mail.MailConstants#MAIL_COPY_TO" },
- "moveTo": { "index": 8, "kind": "header", "displayName": "", "group":
"consumer", "label": "consumer", "required": false, "javaType": "String",
"deprecated": false, "deprecationNote": "", "autowired": false, "secret":
false, "description": "After processing a mail message, it can be moved to a
mail folder with the given name.", "constantName":
"org.apache.camel.component.mail.MailConstants#MAIL_MOVE_TO" },
- "delete": { "index": 9, "kind": "header", "displayName": "", "group":
"consumer", "label": "consumer", "required": false, "javaType": "boolean",
"deprecated": false, "deprecationNote": "", "autowired": false, "secret":
false, "description": "Deletes the messages after they have been processed.",
"constantName": "org.apache.camel.component.mail.MailConstants#MAIL_DELETE" },
+ "CamelMailCopyTo": { "index": 7, "kind": "header", "displayName": "",
"group": "consumer", "label": "consumer", "required": false, "javaType":
"String", "deprecated": false, "deprecationNote": "", "autowired": false,
"secret": false, "description": "After processing a mail message, it can be
copied to a mail folder with the given name.", "constantName":
"org.apache.camel.component.mail.MailConstants#MAIL_COPY_TO" },
+ "CamelMailMoveTo": { "index": 8, "kind": "header", "displayName": "",
"group": "consumer", "label": "consumer", "required": false, "javaType":
"String", "deprecated": false, "deprecationNote": "", "autowired": false,
"secret": false, "description": "After processing a mail message, it can be
moved to a mail folder with the given name.", "constantName":
"org.apache.camel.component.mail.MailConstants#MAIL_MOVE_TO" },
+ "CamelMailDelete": { "index": 9, "kind": "header", "displayName": "",
"group": "consumer", "label": "consumer", "required": false, "javaType":
"boolean", "deprecated": false, "deprecationNote": "", "autowired": false,
"secret": false, "description": "Deletes the messages after they have been
processed.", "constantName":
"org.apache.camel.component.mail.MailConstants#MAIL_DELETE" },
"CamelMailMessageId": { "index": 10, "kind": "header", "displayName": "",
"group": "common", "label": "", "required": false, "javaType": "String",
"deprecated": false, "deprecationNote": "", "autowired": false, "secret":
false, "description": "The message ID.", "constantName":
"org.apache.camel.component.mail.MailConstants#MAIL_MESSAGE_ID" }
},
"properties": {
diff --git
a/components/camel-mail/src/generated/resources/META-INF/org/apache/camel/component/mail/smtps.json
b/components/camel-mail/src/generated/resources/META-INF/org/apache/camel/component/mail/smtps.json
index 4eb1194a5993..d8d63c7c0e7d 100644
---
a/components/camel-mail/src/generated/resources/META-INF/org/apache/camel/component/mail/smtps.json
+++
b/components/camel-mail/src/generated/resources/META-INF/org/apache/camel/component/mail/smtps.json
@@ -84,9 +84,9 @@
"Bcc": { "index": 4, "kind": "header", "displayName": "", "group":
"common", "label": "", "required": false, "javaType": "String", "deprecated":
false, "deprecationNote": "", "autowired": false, "secret": false,
"description": "Bcc", "constantName":
"org.apache.camel.component.mail.MailConstants#MAIL_BCC" },
"Reply-To": { "index": 5, "kind": "header", "displayName": "", "group":
"common", "label": "", "required": false, "javaType": "String", "deprecated":
false, "deprecationNote": "", "autowired": false, "secret": false,
"description": "Reply to", "constantName":
"org.apache.camel.component.mail.MailConstants#MAIL_REPLY_TO" },
"contentType": { "index": 6, "kind": "header", "displayName": "", "group":
"common", "label": "", "required": false, "javaType": "String", "deprecated":
false, "deprecationNote": "", "autowired": false, "secret": false,
"description": "The content type", "constantName":
"org.apache.camel.component.mail.MailConstants#MAIL_CONTENT_TYPE" },
- "copyTo": { "index": 7, "kind": "header", "displayName": "", "group":
"consumer", "label": "consumer", "required": false, "javaType": "String",
"deprecated": false, "deprecationNote": "", "autowired": false, "secret":
false, "description": "After processing a mail message, it can be copied to a
mail folder with the given name.", "constantName":
"org.apache.camel.component.mail.MailConstants#MAIL_COPY_TO" },
- "moveTo": { "index": 8, "kind": "header", "displayName": "", "group":
"consumer", "label": "consumer", "required": false, "javaType": "String",
"deprecated": false, "deprecationNote": "", "autowired": false, "secret":
false, "description": "After processing a mail message, it can be moved to a
mail folder with the given name.", "constantName":
"org.apache.camel.component.mail.MailConstants#MAIL_MOVE_TO" },
- "delete": { "index": 9, "kind": "header", "displayName": "", "group":
"consumer", "label": "consumer", "required": false, "javaType": "boolean",
"deprecated": false, "deprecationNote": "", "autowired": false, "secret":
false, "description": "Deletes the messages after they have been processed.",
"constantName": "org.apache.camel.component.mail.MailConstants#MAIL_DELETE" },
+ "CamelMailCopyTo": { "index": 7, "kind": "header", "displayName": "",
"group": "consumer", "label": "consumer", "required": false, "javaType":
"String", "deprecated": false, "deprecationNote": "", "autowired": false,
"secret": false, "description": "After processing a mail message, it can be
copied to a mail folder with the given name.", "constantName":
"org.apache.camel.component.mail.MailConstants#MAIL_COPY_TO" },
+ "CamelMailMoveTo": { "index": 8, "kind": "header", "displayName": "",
"group": "consumer", "label": "consumer", "required": false, "javaType":
"String", "deprecated": false, "deprecationNote": "", "autowired": false,
"secret": false, "description": "After processing a mail message, it can be
moved to a mail folder with the given name.", "constantName":
"org.apache.camel.component.mail.MailConstants#MAIL_MOVE_TO" },
+ "CamelMailDelete": { "index": 9, "kind": "header", "displayName": "",
"group": "consumer", "label": "consumer", "required": false, "javaType":
"boolean", "deprecated": false, "deprecationNote": "", "autowired": false,
"secret": false, "description": "Deletes the messages after they have been
processed.", "constantName":
"org.apache.camel.component.mail.MailConstants#MAIL_DELETE" },
"CamelMailMessageId": { "index": 10, "kind": "header", "displayName": "",
"group": "common", "label": "", "required": false, "javaType": "String",
"deprecated": false, "deprecationNote": "", "autowired": false, "secret":
false, "description": "The message ID.", "constantName":
"org.apache.camel.component.mail.MailConstants#MAIL_MESSAGE_ID" }
},
"properties": {
diff --git
a/components/camel-mail/src/main/java/org/apache/camel/component/mail/MailConstants.java
b/components/camel-mail/src/main/java/org/apache/camel/component/mail/MailConstants.java
index 8a8847ff03e2..7c91486bbb68 100644
---
a/components/camel-mail/src/main/java/org/apache/camel/component/mail/MailConstants.java
+++
b/components/camel-mail/src/main/java/org/apache/camel/component/mail/MailConstants.java
@@ -37,13 +37,13 @@ public final class MailConstants {
@Metadata(label = "consumer",
description = "After processing a mail message, it can be copied
to a mail folder with the given name.",
javaType = "String")
- public static final String MAIL_COPY_TO = "copyTo";
+ public static final String MAIL_COPY_TO = "CamelMailCopyTo";
@Metadata(label = "consumer",
description = "After processing a mail message, it can be moved
to a mail folder with the given name.",
javaType = "String")
- public static final String MAIL_MOVE_TO = "moveTo";
+ public static final String MAIL_MOVE_TO = "CamelMailMoveTo";
@Metadata(label = "consumer", description = "Deletes the messages after
they have been processed.", javaType = "boolean")
- public static final String MAIL_DELETE = "delete";
+ public static final String MAIL_DELETE = "CamelMailDelete";
public static final String MAIL_ALTERNATIVE_BODY =
"CamelMailAlternativeBody";
public static final String MAIL_DEFAULT_FOLDER = "INBOX";
public static final String MAIL_DEFAULT_FROM = "camel@localhost";
diff --git
a/docs/user-manual/modules/ROOT/pages/camel-4x-upgrade-guide-4_21.adoc
b/docs/user-manual/modules/ROOT/pages/camel-4x-upgrade-guide-4_21.adoc
index 1e880cd65137..db2adbf4800f 100644
--- a/docs/user-manual/modules/ROOT/pages/camel-4x-upgrade-guide-4_21.adoc
+++ b/docs/user-manual/modules/ROOT/pages/camel-4x-upgrade-guide-4_21.adoc
@@ -1283,6 +1283,43 @@ As a consequence, the generated Endpoint DSL header
accessors on
`Jt400HeaderNameBuilder` have been renamed: `kEY()` -> `jt400Key()` and
`senderInformation()` -> `jt400SenderInformation()`.
+=== camel-mail
+
+The consumer-side dispatch header constants in `MailConstants` that control
+post-processing of a consumed mail message used header values outside the
+`Camel` namespace (`copyTo`, `moveTo`, `delete`) and were therefore not
+filtered by the default `HeaderFilterStrategy`. They have been renamed to
+follow the Camel naming convention (companion to the CAMEL-23522
+`mail.smtp.*` hardening). The Java field names are unchanged; only the header
+string values have changed:
+
+[options="header"]
+|===
+| Constant | Previous value | New value
+| `MailConstants.MAIL_COPY_TO` | `copyTo` | `CamelMailCopyTo`
+| `MailConstants.MAIL_MOVE_TO` | `moveTo` | `CamelMailMoveTo`
+| `MailConstants.MAIL_DELETE` | `delete` | `CamelMailDelete`
+|===
+
+The standard RFC 5322 message header constants (`MAIL_SUBJECT` = `Subject`,
+`MAIL_FROM` = `From`, `MAIL_TO` = `To`, `MAIL_CC` = `Cc`, `MAIL_BCC` = `Bcc`,
+`MAIL_REPLY_TO` = `Reply-To`, `MAIL_CONTENT_TYPE` = `contentType`) are
+**unchanged**, as they map directly to the corresponding email fields and
+renaming them would break mail interoperability.
+
+The equally-named `copyTo` and `moveTo` *endpoint URI options* on the mail
+consumer are also unchanged; only the Exchange header values are affected.
+
+Routes that reference the constants symbolically (for example
+`setHeader(MailConstants.MAIL_DELETE, ...)`) continue to work without changes.
+Routes that set the header by its literal string value (for example
+`setHeader("delete", true)`) must be updated to use the new value
+(`setHeader("CamelMailDelete", true)`).
+
+As a consequence, the generated Endpoint DSL header accessors on
+`MailHeaderNameBuilder` have been renamed: `copyTo()` -> `mailCopyTo()`,
+`moveTo()` -> `mailMoveTo()`, and `delete()` -> `mailDelete()`.
+
=== Jackson dataformat documentation pages renamed
The Jackson 2.x and Jackson 3.x lines ship the same dataformat names
(`jackson`, `jacksonXml`,
diff --git
a/dsl/camel-endpointdsl/src/generated/java/org/apache/camel/builder/endpoint/dsl/MailEndpointBuilderFactory.java
b/dsl/camel-endpointdsl/src/generated/java/org/apache/camel/builder/endpoint/dsl/MailEndpointBuilderFactory.java
index 015596795d08..801f6eb630bf 100644
---
a/dsl/camel-endpointdsl/src/generated/java/org/apache/camel/builder/endpoint/dsl/MailEndpointBuilderFactory.java
+++
b/dsl/camel-endpointdsl/src/generated/java/org/apache/camel/builder/endpoint/dsl/MailEndpointBuilderFactory.java
@@ -3593,10 +3593,10 @@ public interface MailEndpointBuilderFactory {
*
* Group: consumer
*
- * @return the name of the header {@code copyTo}.
+ * @return the name of the header {@code MailCopyTo}.
*/
- public String copyTo() {
- return "copyTo";
+ public String mailCopyTo() {
+ return "CamelMailCopyTo";
}
/**
* After processing a mail message, it can be moved to a mail folder
@@ -3606,10 +3606,10 @@ public interface MailEndpointBuilderFactory {
*
* Group: consumer
*
- * @return the name of the header {@code moveTo}.
+ * @return the name of the header {@code MailMoveTo}.
*/
- public String moveTo() {
- return "moveTo";
+ public String mailMoveTo() {
+ return "CamelMailMoveTo";
}
/**
* Deletes the messages after they have been processed.
@@ -3618,10 +3618,10 @@ public interface MailEndpointBuilderFactory {
*
* Group: consumer
*
- * @return the name of the header {@code delete}.
+ * @return the name of the header {@code MailDelete}.
*/
- public String delete() {
- return "delete";
+ public String mailDelete() {
+ return "CamelMailDelete";
}
/**
* The message ID.