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 <ancosen@gmail.com>
Apache Camel is an Open Source integration framework that empowers you to quickly and easily integrate various systems consuming or producing data.
Camel empowers you to define routing and mediation rules in a variety of domain-specific languages (DSL, such as Java, XML, Groovy and YAML). This means you get smart completion of routing rules in your IDE, whether in a Java or XML editor.
Apache Camel uses URIs to enable easier integration with all kinds of transport or messaging model including HTTP, ActiveMQ, JMS, JBI, SCA, MINA or CXF together with working with pluggable Data Format options. Apache Camel is a small library that has minimal dependencies for easy embedding in any Java application. Apache Camel lets you work with the same API regardless of the transport type, making it possible to interact with all the components provided out-of-the-box, with a good understanding of the API.
Apache Camel has powerful Bean Binding and integrated seamlessly with popular frameworks such as Spring, Quarkus, and CDI.
Apache Camel has extensive testing support allowing you to easily unit test your routes.
Apache Camel comes alongside several artifacts with components, data formats, languages, and kinds. The up-to-date list is available online at the Camel website:
Apache Camel comes with many examples. The up to date list is available online at GitHub:
To help you get started, try the following links:
Getting Started
https://camel.apache.org/getting-started.html
The beginner examples are another powerful alternative pathway for getting started with Apache Camel.
Building
https://camel.apache.org/camel-core/contributing/
Contributions
We welcome all kinds of contributions, the details of which are specified here:
https://github.com/apache/camel/blob/main/CONTRIBUTING.md
Please refer to the website for details of finding the issue tracker, email lists, GitHub, chat
Website: https://camel.apache.org/
GitHub (source): https://github.com/apache/camel
Issue tracker: https://issues.apache.org/jira/projects/CAMEL
Mailing-list: https://camel.apache.org/community/mailing-list/
Chat: https://camel.zulipchat.com/
StackOverflow: https://stackoverflow.com/questions/tagged/apache-camel
Twitter: https://twitter.com/ApacheCamel
Support
For additional help, support, we recommend referencing this page first:
https://camel.apache.org/community/support/
Getting Help
If you get stuck somewhere, please feel free to reach out to us on either StackOverflow, Chat, or the email mailing list.
Please help us make Apache Camel better — we appreciate any feedback you may have.
Enjoy!
The Camel riders!
The terms for software licensing are detailed in the LICENSE.txt file,
located in the working directory.