This is an automated email from the ASF dual-hosted git repository.
davsclaus 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 8321fc9a4f53 camel-mail: SplitAttachmentsExpression sets
CamelSplitAttachmentId on every message it produces, and it is documented
nowhere (#30050)
8321fc9a4f53 is described below
commit 8321fc9a4f53dada274ed63481aeeca2931ab4b7
Author: dhairya05 <[email protected]>
AuthorDate: Mon Nov 16 01:40:56 2026 +0530
camel-mail: SplitAttachmentsExpression sets CamelSplitAttachmentId on every
message it produces, and it is documented nowhere (#30050)
---
.../resources/org/apache/camel/catalog/components/imap.json | 3 ++-
.../org/apache/camel/catalog/components/imaps.json | 3 ++-
.../resources/org/apache/camel/catalog/components/pop3.json | 3 ++-
.../org/apache/camel/catalog/components/pop3s.json | 3 ++-
.../resources/org/apache/camel/catalog/components/smtp.json | 3 ++-
.../org/apache/camel/catalog/components/smtps.json | 3 ++-
.../META-INF/org/apache/camel/component/mail/imap.json | 3 ++-
.../META-INF/org/apache/camel/component/mail/imaps.json | 3 ++-
.../META-INF/org/apache/camel/component/mail/pop3.json | 3 ++-
.../META-INF/org/apache/camel/component/mail/pop3s.json | 3 ++-
.../META-INF/org/apache/camel/component/mail/smtp.json | 3 ++-
.../META-INF/org/apache/camel/component/mail/smtps.json | 3 ++-
.../java/org/apache/camel/component/mail/MailConstants.java | 4 ++++
.../camel/component/mail/SplitAttachmentsExpression.java | 5 +++--
.../builder/endpoint/dsl/MailEndpointBuilderFactory.java | 13 +++++++++++++
15 files changed, 44 insertions(+), 14 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 9cdb585edee9..a048269212e6 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
@@ -94,7 +94,8 @@
"CamelMailMoveTo": { "index": 8, "kind": "header", "displayName": "",
"group": "consumer", "label": "consumer", "required": false, "javaType":
"String", "deprecated": false, "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, "autowired": false, "secret": false,
"description": "Deletes the messages after they have been processed.",
"constantName": "org.apache.camel.component.mail.MailConstants#MAIL_DELETE" },
"CamelMailAlternativeBody": { "index": 10, "kind": "header",
"displayName": "", "group": "producer", "label": "producer", "required": false,
"javaType": "String", "deprecated": false, "autowired": false, "secret": false,
"description": "The alternative body of the mail, as plain text. When set, the
mail is sent as multipart\/alternative with this text and the body (typically
HTML) as its two parts, so mail clients that cannot show HTML show the text.
The alternativeBodyHeader option [...]
- "CamelMailMessageId": { "index": 11, "kind": "header", "displayName": "",
"group": "common", "label": "", "required": false, "javaType": "String",
"deprecated": false, "autowired": false, "secret": false, "description": "The
message ID.", "constantName":
"org.apache.camel.component.mail.MailConstants#MAIL_MESSAGE_ID" }
+ "CamelMailMessageId": { "index": 11, "kind": "header", "displayName": "",
"group": "common", "label": "", "required": false, "javaType": "String",
"deprecated": false, "autowired": false, "secret": false, "description": "The
message ID.", "constantName":
"org.apache.camel.component.mail.MailConstants#MAIL_MESSAGE_ID" },
+ "CamelSplitAttachmentId": { "index": 12, "kind": "header", "displayName":
"", "group": "consumer", "label": "consumer", "required": false, "javaType":
"String", "deprecated": false, "autowired": false, "secret": false,
"description": "The name of the attachment, on each message produced by
SplitAttachmentsExpression.", "constantName":
"org.apache.camel.component.mail.MailConstants#MAIL_SPLIT_ATTACHMENT_ID" }
},
"bodyTypes": {
"consumerOut": { "carriers": [ "text", "stream", "pojo" ], "dependsOn": [
"binding" ], "byOption": [ { "option": "mapMailMessage", "value": "false",
"carriers": [ "pojo" ], "javaType": "jakarta.mail.Message" } ], "description":
"The content of the mail an imap or pop3 consumer reads: a String for
text\/plain, text\/html and text\/xml, a stream for another content type, and a
jakarta.mail Multipart for a multipart mail, which converts to the text of its
first text part, with the files [...]
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 0300fa81c634..300ee1d18674 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
@@ -94,7 +94,8 @@
"CamelMailMoveTo": { "index": 8, "kind": "header", "displayName": "",
"group": "consumer", "label": "consumer", "required": false, "javaType":
"String", "deprecated": false, "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, "autowired": false, "secret": false,
"description": "Deletes the messages after they have been processed.",
"constantName": "org.apache.camel.component.mail.MailConstants#MAIL_DELETE" },
"CamelMailAlternativeBody": { "index": 10, "kind": "header",
"displayName": "", "group": "producer", "label": "producer", "required": false,
"javaType": "String", "deprecated": false, "autowired": false, "secret": false,
"description": "The alternative body of the mail, as plain text. When set, the
mail is sent as multipart\/alternative with this text and the body (typically
HTML) as its two parts, so mail clients that cannot show HTML show the text.
The alternativeBodyHeader option [...]
- "CamelMailMessageId": { "index": 11, "kind": "header", "displayName": "",
"group": "common", "label": "", "required": false, "javaType": "String",
"deprecated": false, "autowired": false, "secret": false, "description": "The
message ID.", "constantName":
"org.apache.camel.component.mail.MailConstants#MAIL_MESSAGE_ID" }
+ "CamelMailMessageId": { "index": 11, "kind": "header", "displayName": "",
"group": "common", "label": "", "required": false, "javaType": "String",
"deprecated": false, "autowired": false, "secret": false, "description": "The
message ID.", "constantName":
"org.apache.camel.component.mail.MailConstants#MAIL_MESSAGE_ID" },
+ "CamelSplitAttachmentId": { "index": 12, "kind": "header", "displayName":
"", "group": "consumer", "label": "consumer", "required": false, "javaType":
"String", "deprecated": false, "autowired": false, "secret": false,
"description": "The name of the attachment, on each message produced by
SplitAttachmentsExpression.", "constantName":
"org.apache.camel.component.mail.MailConstants#MAIL_SPLIT_ATTACHMENT_ID" }
},
"bodyTypes": {
"consumerOut": { "carriers": [ "text", "stream", "pojo" ], "dependsOn": [
"binding" ], "byOption": [ { "option": "mapMailMessage", "value": "false",
"carriers": [ "pojo" ], "javaType": "jakarta.mail.Message" } ], "description":
"The content of the mail an imap or pop3 consumer reads: a String for
text\/plain, text\/html and text\/xml, a stream for another content type, and a
jakarta.mail Multipart for a multipart mail, which converts to the text of its
first text part, with the files [...]
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 6a3c8399926b..4947732383ae 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
@@ -94,7 +94,8 @@
"CamelMailMoveTo": { "index": 8, "kind": "header", "displayName": "",
"group": "consumer", "label": "consumer", "required": false, "javaType":
"String", "deprecated": false, "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, "autowired": false, "secret": false,
"description": "Deletes the messages after they have been processed.",
"constantName": "org.apache.camel.component.mail.MailConstants#MAIL_DELETE" },
"CamelMailAlternativeBody": { "index": 10, "kind": "header",
"displayName": "", "group": "producer", "label": "producer", "required": false,
"javaType": "String", "deprecated": false, "autowired": false, "secret": false,
"description": "The alternative body of the mail, as plain text. When set, the
mail is sent as multipart\/alternative with this text and the body (typically
HTML) as its two parts, so mail clients that cannot show HTML show the text.
The alternativeBodyHeader option [...]
- "CamelMailMessageId": { "index": 11, "kind": "header", "displayName": "",
"group": "common", "label": "", "required": false, "javaType": "String",
"deprecated": false, "autowired": false, "secret": false, "description": "The
message ID.", "constantName":
"org.apache.camel.component.mail.MailConstants#MAIL_MESSAGE_ID" }
+ "CamelMailMessageId": { "index": 11, "kind": "header", "displayName": "",
"group": "common", "label": "", "required": false, "javaType": "String",
"deprecated": false, "autowired": false, "secret": false, "description": "The
message ID.", "constantName":
"org.apache.camel.component.mail.MailConstants#MAIL_MESSAGE_ID" },
+ "CamelSplitAttachmentId": { "index": 12, "kind": "header", "displayName":
"", "group": "consumer", "label": "consumer", "required": false, "javaType":
"String", "deprecated": false, "autowired": false, "secret": false,
"description": "The name of the attachment, on each message produced by
SplitAttachmentsExpression.", "constantName":
"org.apache.camel.component.mail.MailConstants#MAIL_SPLIT_ATTACHMENT_ID" }
},
"bodyTypes": {
"consumerOut": { "carriers": [ "text", "stream", "pojo" ], "dependsOn": [
"binding" ], "byOption": [ { "option": "mapMailMessage", "value": "false",
"carriers": [ "pojo" ], "javaType": "jakarta.mail.Message" } ], "description":
"The content of the mail an imap or pop3 consumer reads: a String for
text\/plain, text\/html and text\/xml, a stream for another content type, and a
jakarta.mail Multipart for a multipart mail, which converts to the text of its
first text part, with the files [...]
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 d535b14f0e43..36cf4198b995 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
@@ -94,7 +94,8 @@
"CamelMailMoveTo": { "index": 8, "kind": "header", "displayName": "",
"group": "consumer", "label": "consumer", "required": false, "javaType":
"String", "deprecated": false, "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, "autowired": false, "secret": false,
"description": "Deletes the messages after they have been processed.",
"constantName": "org.apache.camel.component.mail.MailConstants#MAIL_DELETE" },
"CamelMailAlternativeBody": { "index": 10, "kind": "header",
"displayName": "", "group": "producer", "label": "producer", "required": false,
"javaType": "String", "deprecated": false, "autowired": false, "secret": false,
"description": "The alternative body of the mail, as plain text. When set, the
mail is sent as multipart\/alternative with this text and the body (typically
HTML) as its two parts, so mail clients that cannot show HTML show the text.
The alternativeBodyHeader option [...]
- "CamelMailMessageId": { "index": 11, "kind": "header", "displayName": "",
"group": "common", "label": "", "required": false, "javaType": "String",
"deprecated": false, "autowired": false, "secret": false, "description": "The
message ID.", "constantName":
"org.apache.camel.component.mail.MailConstants#MAIL_MESSAGE_ID" }
+ "CamelMailMessageId": { "index": 11, "kind": "header", "displayName": "",
"group": "common", "label": "", "required": false, "javaType": "String",
"deprecated": false, "autowired": false, "secret": false, "description": "The
message ID.", "constantName":
"org.apache.camel.component.mail.MailConstants#MAIL_MESSAGE_ID" },
+ "CamelSplitAttachmentId": { "index": 12, "kind": "header", "displayName":
"", "group": "consumer", "label": "consumer", "required": false, "javaType":
"String", "deprecated": false, "autowired": false, "secret": false,
"description": "The name of the attachment, on each message produced by
SplitAttachmentsExpression.", "constantName":
"org.apache.camel.component.mail.MailConstants#MAIL_SPLIT_ATTACHMENT_ID" }
},
"bodyTypes": {
"consumerOut": { "carriers": [ "text", "stream", "pojo" ], "dependsOn": [
"binding" ], "byOption": [ { "option": "mapMailMessage", "value": "false",
"carriers": [ "pojo" ], "javaType": "jakarta.mail.Message" } ], "description":
"The content of the mail an imap or pop3 consumer reads: a String for
text\/plain, text\/html and text\/xml, a stream for another content type, and a
jakarta.mail Multipart for a multipart mail, which converts to the text of its
first text part, with the files [...]
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 c6f916ef2afe..7667fddbcda8 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
@@ -94,7 +94,8 @@
"CamelMailMoveTo": { "index": 8, "kind": "header", "displayName": "",
"group": "consumer", "label": "consumer", "required": false, "javaType":
"String", "deprecated": false, "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, "autowired": false, "secret": false,
"description": "Deletes the messages after they have been processed.",
"constantName": "org.apache.camel.component.mail.MailConstants#MAIL_DELETE" },
"CamelMailAlternativeBody": { "index": 10, "kind": "header",
"displayName": "", "group": "producer", "label": "producer", "required": false,
"javaType": "String", "deprecated": false, "autowired": false, "secret": false,
"description": "The alternative body of the mail, as plain text. When set, the
mail is sent as multipart\/alternative with this text and the body (typically
HTML) as its two parts, so mail clients that cannot show HTML show the text.
The alternativeBodyHeader option [...]
- "CamelMailMessageId": { "index": 11, "kind": "header", "displayName": "",
"group": "common", "label": "", "required": false, "javaType": "String",
"deprecated": false, "autowired": false, "secret": false, "description": "The
message ID.", "constantName":
"org.apache.camel.component.mail.MailConstants#MAIL_MESSAGE_ID" }
+ "CamelMailMessageId": { "index": 11, "kind": "header", "displayName": "",
"group": "common", "label": "", "required": false, "javaType": "String",
"deprecated": false, "autowired": false, "secret": false, "description": "The
message ID.", "constantName":
"org.apache.camel.component.mail.MailConstants#MAIL_MESSAGE_ID" },
+ "CamelSplitAttachmentId": { "index": 12, "kind": "header", "displayName":
"", "group": "consumer", "label": "consumer", "required": false, "javaType":
"String", "deprecated": false, "autowired": false, "secret": false,
"description": "The name of the attachment, on each message produced by
SplitAttachmentsExpression.", "constantName":
"org.apache.camel.component.mail.MailConstants#MAIL_SPLIT_ATTACHMENT_ID" }
},
"bodyTypes": {
"consumerOut": { "carriers": [ "text", "stream", "pojo" ], "dependsOn": [
"binding" ], "byOption": [ { "option": "mapMailMessage", "value": "false",
"carriers": [ "pojo" ], "javaType": "jakarta.mail.Message" } ], "description":
"The content of the mail an imap or pop3 consumer reads: a String for
text\/plain, text\/html and text\/xml, a stream for another content type, and a
jakarta.mail Multipart for a multipart mail, which converts to the text of its
first text part, with the files [...]
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 299b48acd4fd..aca0646401b1 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
@@ -94,7 +94,8 @@
"CamelMailMoveTo": { "index": 8, "kind": "header", "displayName": "",
"group": "consumer", "label": "consumer", "required": false, "javaType":
"String", "deprecated": false, "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, "autowired": false, "secret": false,
"description": "Deletes the messages after they have been processed.",
"constantName": "org.apache.camel.component.mail.MailConstants#MAIL_DELETE" },
"CamelMailAlternativeBody": { "index": 10, "kind": "header",
"displayName": "", "group": "producer", "label": "producer", "required": false,
"javaType": "String", "deprecated": false, "autowired": false, "secret": false,
"description": "The alternative body of the mail, as plain text. When set, the
mail is sent as multipart\/alternative with this text and the body (typically
HTML) as its two parts, so mail clients that cannot show HTML show the text.
The alternativeBodyHeader option [...]
- "CamelMailMessageId": { "index": 11, "kind": "header", "displayName": "",
"group": "common", "label": "", "required": false, "javaType": "String",
"deprecated": false, "autowired": false, "secret": false, "description": "The
message ID.", "constantName":
"org.apache.camel.component.mail.MailConstants#MAIL_MESSAGE_ID" }
+ "CamelMailMessageId": { "index": 11, "kind": "header", "displayName": "",
"group": "common", "label": "", "required": false, "javaType": "String",
"deprecated": false, "autowired": false, "secret": false, "description": "The
message ID.", "constantName":
"org.apache.camel.component.mail.MailConstants#MAIL_MESSAGE_ID" },
+ "CamelSplitAttachmentId": { "index": 12, "kind": "header", "displayName":
"", "group": "consumer", "label": "consumer", "required": false, "javaType":
"String", "deprecated": false, "autowired": false, "secret": false,
"description": "The name of the attachment, on each message produced by
SplitAttachmentsExpression.", "constantName":
"org.apache.camel.component.mail.MailConstants#MAIL_SPLIT_ATTACHMENT_ID" }
},
"bodyTypes": {
"consumerOut": { "carriers": [ "text", "stream", "pojo" ], "dependsOn": [
"binding" ], "byOption": [ { "option": "mapMailMessage", "value": "false",
"carriers": [ "pojo" ], "javaType": "jakarta.mail.Message" } ], "description":
"The content of the mail an imap or pop3 consumer reads: a String for
text\/plain, text\/html and text\/xml, a stream for another content type, and a
jakarta.mail Multipart for a multipart mail, which converts to the text of its
first text part, with the files [...]
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 9cdb585edee9..a048269212e6 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
@@ -94,7 +94,8 @@
"CamelMailMoveTo": { "index": 8, "kind": "header", "displayName": "",
"group": "consumer", "label": "consumer", "required": false, "javaType":
"String", "deprecated": false, "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, "autowired": false, "secret": false,
"description": "Deletes the messages after they have been processed.",
"constantName": "org.apache.camel.component.mail.MailConstants#MAIL_DELETE" },
"CamelMailAlternativeBody": { "index": 10, "kind": "header",
"displayName": "", "group": "producer", "label": "producer", "required": false,
"javaType": "String", "deprecated": false, "autowired": false, "secret": false,
"description": "The alternative body of the mail, as plain text. When set, the
mail is sent as multipart\/alternative with this text and the body (typically
HTML) as its two parts, so mail clients that cannot show HTML show the text.
The alternativeBodyHeader option [...]
- "CamelMailMessageId": { "index": 11, "kind": "header", "displayName": "",
"group": "common", "label": "", "required": false, "javaType": "String",
"deprecated": false, "autowired": false, "secret": false, "description": "The
message ID.", "constantName":
"org.apache.camel.component.mail.MailConstants#MAIL_MESSAGE_ID" }
+ "CamelMailMessageId": { "index": 11, "kind": "header", "displayName": "",
"group": "common", "label": "", "required": false, "javaType": "String",
"deprecated": false, "autowired": false, "secret": false, "description": "The
message ID.", "constantName":
"org.apache.camel.component.mail.MailConstants#MAIL_MESSAGE_ID" },
+ "CamelSplitAttachmentId": { "index": 12, "kind": "header", "displayName":
"", "group": "consumer", "label": "consumer", "required": false, "javaType":
"String", "deprecated": false, "autowired": false, "secret": false,
"description": "The name of the attachment, on each message produced by
SplitAttachmentsExpression.", "constantName":
"org.apache.camel.component.mail.MailConstants#MAIL_SPLIT_ATTACHMENT_ID" }
},
"bodyTypes": {
"consumerOut": { "carriers": [ "text", "stream", "pojo" ], "dependsOn": [
"binding" ], "byOption": [ { "option": "mapMailMessage", "value": "false",
"carriers": [ "pojo" ], "javaType": "jakarta.mail.Message" } ], "description":
"The content of the mail an imap or pop3 consumer reads: a String for
text\/plain, text\/html and text\/xml, a stream for another content type, and a
jakarta.mail Multipart for a multipart mail, which converts to the text of its
first text part, with the files [...]
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 0300fa81c634..300ee1d18674 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
@@ -94,7 +94,8 @@
"CamelMailMoveTo": { "index": 8, "kind": "header", "displayName": "",
"group": "consumer", "label": "consumer", "required": false, "javaType":
"String", "deprecated": false, "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, "autowired": false, "secret": false,
"description": "Deletes the messages after they have been processed.",
"constantName": "org.apache.camel.component.mail.MailConstants#MAIL_DELETE" },
"CamelMailAlternativeBody": { "index": 10, "kind": "header",
"displayName": "", "group": "producer", "label": "producer", "required": false,
"javaType": "String", "deprecated": false, "autowired": false, "secret": false,
"description": "The alternative body of the mail, as plain text. When set, the
mail is sent as multipart\/alternative with this text and the body (typically
HTML) as its two parts, so mail clients that cannot show HTML show the text.
The alternativeBodyHeader option [...]
- "CamelMailMessageId": { "index": 11, "kind": "header", "displayName": "",
"group": "common", "label": "", "required": false, "javaType": "String",
"deprecated": false, "autowired": false, "secret": false, "description": "The
message ID.", "constantName":
"org.apache.camel.component.mail.MailConstants#MAIL_MESSAGE_ID" }
+ "CamelMailMessageId": { "index": 11, "kind": "header", "displayName": "",
"group": "common", "label": "", "required": false, "javaType": "String",
"deprecated": false, "autowired": false, "secret": false, "description": "The
message ID.", "constantName":
"org.apache.camel.component.mail.MailConstants#MAIL_MESSAGE_ID" },
+ "CamelSplitAttachmentId": { "index": 12, "kind": "header", "displayName":
"", "group": "consumer", "label": "consumer", "required": false, "javaType":
"String", "deprecated": false, "autowired": false, "secret": false,
"description": "The name of the attachment, on each message produced by
SplitAttachmentsExpression.", "constantName":
"org.apache.camel.component.mail.MailConstants#MAIL_SPLIT_ATTACHMENT_ID" }
},
"bodyTypes": {
"consumerOut": { "carriers": [ "text", "stream", "pojo" ], "dependsOn": [
"binding" ], "byOption": [ { "option": "mapMailMessage", "value": "false",
"carriers": [ "pojo" ], "javaType": "jakarta.mail.Message" } ], "description":
"The content of the mail an imap or pop3 consumer reads: a String for
text\/plain, text\/html and text\/xml, a stream for another content type, and a
jakarta.mail Multipart for a multipart mail, which converts to the text of its
first text part, with the files [...]
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 6a3c8399926b..4947732383ae 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
@@ -94,7 +94,8 @@
"CamelMailMoveTo": { "index": 8, "kind": "header", "displayName": "",
"group": "consumer", "label": "consumer", "required": false, "javaType":
"String", "deprecated": false, "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, "autowired": false, "secret": false,
"description": "Deletes the messages after they have been processed.",
"constantName": "org.apache.camel.component.mail.MailConstants#MAIL_DELETE" },
"CamelMailAlternativeBody": { "index": 10, "kind": "header",
"displayName": "", "group": "producer", "label": "producer", "required": false,
"javaType": "String", "deprecated": false, "autowired": false, "secret": false,
"description": "The alternative body of the mail, as plain text. When set, the
mail is sent as multipart\/alternative with this text and the body (typically
HTML) as its two parts, so mail clients that cannot show HTML show the text.
The alternativeBodyHeader option [...]
- "CamelMailMessageId": { "index": 11, "kind": "header", "displayName": "",
"group": "common", "label": "", "required": false, "javaType": "String",
"deprecated": false, "autowired": false, "secret": false, "description": "The
message ID.", "constantName":
"org.apache.camel.component.mail.MailConstants#MAIL_MESSAGE_ID" }
+ "CamelMailMessageId": { "index": 11, "kind": "header", "displayName": "",
"group": "common", "label": "", "required": false, "javaType": "String",
"deprecated": false, "autowired": false, "secret": false, "description": "The
message ID.", "constantName":
"org.apache.camel.component.mail.MailConstants#MAIL_MESSAGE_ID" },
+ "CamelSplitAttachmentId": { "index": 12, "kind": "header", "displayName":
"", "group": "consumer", "label": "consumer", "required": false, "javaType":
"String", "deprecated": false, "autowired": false, "secret": false,
"description": "The name of the attachment, on each message produced by
SplitAttachmentsExpression.", "constantName":
"org.apache.camel.component.mail.MailConstants#MAIL_SPLIT_ATTACHMENT_ID" }
},
"bodyTypes": {
"consumerOut": { "carriers": [ "text", "stream", "pojo" ], "dependsOn": [
"binding" ], "byOption": [ { "option": "mapMailMessage", "value": "false",
"carriers": [ "pojo" ], "javaType": "jakarta.mail.Message" } ], "description":
"The content of the mail an imap or pop3 consumer reads: a String for
text\/plain, text\/html and text\/xml, a stream for another content type, and a
jakarta.mail Multipart for a multipart mail, which converts to the text of its
first text part, with the files [...]
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 d535b14f0e43..36cf4198b995 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
@@ -94,7 +94,8 @@
"CamelMailMoveTo": { "index": 8, "kind": "header", "displayName": "",
"group": "consumer", "label": "consumer", "required": false, "javaType":
"String", "deprecated": false, "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, "autowired": false, "secret": false,
"description": "Deletes the messages after they have been processed.",
"constantName": "org.apache.camel.component.mail.MailConstants#MAIL_DELETE" },
"CamelMailAlternativeBody": { "index": 10, "kind": "header",
"displayName": "", "group": "producer", "label": "producer", "required": false,
"javaType": "String", "deprecated": false, "autowired": false, "secret": false,
"description": "The alternative body of the mail, as plain text. When set, the
mail is sent as multipart\/alternative with this text and the body (typically
HTML) as its two parts, so mail clients that cannot show HTML show the text.
The alternativeBodyHeader option [...]
- "CamelMailMessageId": { "index": 11, "kind": "header", "displayName": "",
"group": "common", "label": "", "required": false, "javaType": "String",
"deprecated": false, "autowired": false, "secret": false, "description": "The
message ID.", "constantName":
"org.apache.camel.component.mail.MailConstants#MAIL_MESSAGE_ID" }
+ "CamelMailMessageId": { "index": 11, "kind": "header", "displayName": "",
"group": "common", "label": "", "required": false, "javaType": "String",
"deprecated": false, "autowired": false, "secret": false, "description": "The
message ID.", "constantName":
"org.apache.camel.component.mail.MailConstants#MAIL_MESSAGE_ID" },
+ "CamelSplitAttachmentId": { "index": 12, "kind": "header", "displayName":
"", "group": "consumer", "label": "consumer", "required": false, "javaType":
"String", "deprecated": false, "autowired": false, "secret": false,
"description": "The name of the attachment, on each message produced by
SplitAttachmentsExpression.", "constantName":
"org.apache.camel.component.mail.MailConstants#MAIL_SPLIT_ATTACHMENT_ID" }
},
"bodyTypes": {
"consumerOut": { "carriers": [ "text", "stream", "pojo" ], "dependsOn": [
"binding" ], "byOption": [ { "option": "mapMailMessage", "value": "false",
"carriers": [ "pojo" ], "javaType": "jakarta.mail.Message" } ], "description":
"The content of the mail an imap or pop3 consumer reads: a String for
text\/plain, text\/html and text\/xml, a stream for another content type, and a
jakarta.mail Multipart for a multipart mail, which converts to the text of its
first text part, with the files [...]
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 c6f916ef2afe..7667fddbcda8 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
@@ -94,7 +94,8 @@
"CamelMailMoveTo": { "index": 8, "kind": "header", "displayName": "",
"group": "consumer", "label": "consumer", "required": false, "javaType":
"String", "deprecated": false, "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, "autowired": false, "secret": false,
"description": "Deletes the messages after they have been processed.",
"constantName": "org.apache.camel.component.mail.MailConstants#MAIL_DELETE" },
"CamelMailAlternativeBody": { "index": 10, "kind": "header",
"displayName": "", "group": "producer", "label": "producer", "required": false,
"javaType": "String", "deprecated": false, "autowired": false, "secret": false,
"description": "The alternative body of the mail, as plain text. When set, the
mail is sent as multipart\/alternative with this text and the body (typically
HTML) as its two parts, so mail clients that cannot show HTML show the text.
The alternativeBodyHeader option [...]
- "CamelMailMessageId": { "index": 11, "kind": "header", "displayName": "",
"group": "common", "label": "", "required": false, "javaType": "String",
"deprecated": false, "autowired": false, "secret": false, "description": "The
message ID.", "constantName":
"org.apache.camel.component.mail.MailConstants#MAIL_MESSAGE_ID" }
+ "CamelMailMessageId": { "index": 11, "kind": "header", "displayName": "",
"group": "common", "label": "", "required": false, "javaType": "String",
"deprecated": false, "autowired": false, "secret": false, "description": "The
message ID.", "constantName":
"org.apache.camel.component.mail.MailConstants#MAIL_MESSAGE_ID" },
+ "CamelSplitAttachmentId": { "index": 12, "kind": "header", "displayName":
"", "group": "consumer", "label": "consumer", "required": false, "javaType":
"String", "deprecated": false, "autowired": false, "secret": false,
"description": "The name of the attachment, on each message produced by
SplitAttachmentsExpression.", "constantName":
"org.apache.camel.component.mail.MailConstants#MAIL_SPLIT_ATTACHMENT_ID" }
},
"bodyTypes": {
"consumerOut": { "carriers": [ "text", "stream", "pojo" ], "dependsOn": [
"binding" ], "byOption": [ { "option": "mapMailMessage", "value": "false",
"carriers": [ "pojo" ], "javaType": "jakarta.mail.Message" } ], "description":
"The content of the mail an imap or pop3 consumer reads: a String for
text\/plain, text\/html and text\/xml, a stream for another content type, and a
jakarta.mail Multipart for a multipart mail, which converts to the text of its
first text part, with the files [...]
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 299b48acd4fd..aca0646401b1 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
@@ -94,7 +94,8 @@
"CamelMailMoveTo": { "index": 8, "kind": "header", "displayName": "",
"group": "consumer", "label": "consumer", "required": false, "javaType":
"String", "deprecated": false, "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, "autowired": false, "secret": false,
"description": "Deletes the messages after they have been processed.",
"constantName": "org.apache.camel.component.mail.MailConstants#MAIL_DELETE" },
"CamelMailAlternativeBody": { "index": 10, "kind": "header",
"displayName": "", "group": "producer", "label": "producer", "required": false,
"javaType": "String", "deprecated": false, "autowired": false, "secret": false,
"description": "The alternative body of the mail, as plain text. When set, the
mail is sent as multipart\/alternative with this text and the body (typically
HTML) as its two parts, so mail clients that cannot show HTML show the text.
The alternativeBodyHeader option [...]
- "CamelMailMessageId": { "index": 11, "kind": "header", "displayName": "",
"group": "common", "label": "", "required": false, "javaType": "String",
"deprecated": false, "autowired": false, "secret": false, "description": "The
message ID.", "constantName":
"org.apache.camel.component.mail.MailConstants#MAIL_MESSAGE_ID" }
+ "CamelMailMessageId": { "index": 11, "kind": "header", "displayName": "",
"group": "common", "label": "", "required": false, "javaType": "String",
"deprecated": false, "autowired": false, "secret": false, "description": "The
message ID.", "constantName":
"org.apache.camel.component.mail.MailConstants#MAIL_MESSAGE_ID" },
+ "CamelSplitAttachmentId": { "index": 12, "kind": "header", "displayName":
"", "group": "consumer", "label": "consumer", "required": false, "javaType":
"String", "deprecated": false, "autowired": false, "secret": false,
"description": "The name of the attachment, on each message produced by
SplitAttachmentsExpression.", "constantName":
"org.apache.camel.component.mail.MailConstants#MAIL_SPLIT_ATTACHMENT_ID" }
},
"bodyTypes": {
"consumerOut": { "carriers": [ "text", "stream", "pojo" ], "dependsOn": [
"binding" ], "byOption": [ { "option": "mapMailMessage", "value": "false",
"carriers": [ "pojo" ], "javaType": "jakarta.mail.Message" } ], "description":
"The content of the mail an imap or pop3 consumer reads: a String for
text\/plain, text\/html and text\/xml, a stream for another content type, and a
jakarta.mail Multipart for a multipart mail, which converts to the text of its
first text part, with the files [...]
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 9ab7b0d32317..a56bde19f867 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
@@ -55,6 +55,10 @@ public final class MailConstants {
public static final String MAIL_DEFAULT_FROM = "camel@localhost";
@Metadata(description = "The message ID.", javaType = "String")
public static final String MAIL_MESSAGE_ID = "CamelMailMessageId";
+ @Metadata(label = "consumer",
+ description = "The name of the attachment, on each message
produced by SplitAttachmentsExpression.",
+ javaType = "String")
+ public static final String MAIL_SPLIT_ATTACHMENT_ID =
"CamelSplitAttachmentId";
public static final int MAIL_DEFAULT_CONNECTION_TIMEOUT = 30000;
public static final int MAIL_DEFAULT_MAX_MULTIPART_DEPTH = 20;
public static final String MAIL_GENERATE_MISSING_ATTACHMENT_NAMES_NEVER =
"never";
diff --git
a/components/camel-mail/src/main/java/org/apache/camel/component/mail/SplitAttachmentsExpression.java
b/components/camel-mail/src/main/java/org/apache/camel/component/mail/SplitAttachmentsExpression.java
index 4c0b7d1c4e1e..65e8e871fb19 100644
---
a/components/camel-mail/src/main/java/org/apache/camel/component/mail/SplitAttachmentsExpression.java
+++
b/components/camel-mail/src/main/java/org/apache/camel/component/mail/SplitAttachmentsExpression.java
@@ -45,11 +45,12 @@ import org.apache.camel.util.IOHelper;
* </tr>
* </table>
*
- * In both cases the attachment name is written to a the camel header
"CamelSplitAttachmentId"
+ * In both cases the attachment name is written to the Camel header
"CamelSplitAttachmentId", which is
+ * {@link MailConstants#MAIL_SPLIT_ATTACHMENT_ID}.
*/
public class SplitAttachmentsExpression extends ExpressionAdapter {
- public static final String HEADER_NAME = "CamelSplitAttachmentId";
+ public static final String HEADER_NAME =
MailConstants.MAIL_SPLIT_ATTACHMENT_ID;
public SplitAttachmentsExpression() {
}
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 10bc8c993e87..0443361432df 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
@@ -3960,6 +3960,19 @@ public interface MailEndpointBuilderFactory {
public String mailMessageId() {
return "CamelMailMessageId";
}
+ /**
+ * The name of the attachment, on each message produced by
+ * SplitAttachmentsExpression.
+ *
+ * The option is a: {@code String} type.
+ *
+ * Group: consumer
+ *
+ * @return the name of the header {@code SplitAttachmentId}.
+ */
+ public String splitAttachmentId() {
+ return "CamelSplitAttachmentId";
+ }
}
static MailEndpointBuilder endpointBuilder(String componentName, String
path) {
class MailEndpointBuilderImpl extends AbstractEndpointBuilder
implements MailEndpointBuilder, AdvancedMailEndpointBuilder {