Skip to content

Commit

Permalink
fixed mail because of CAMEL-21700
Browse files Browse the repository at this point in the history
  • Loading branch information
JiriOndrusek committed Feb 4, 2025
1 parent b28f9c0 commit 60d4295
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -162,8 +162,8 @@ public void configure() {

private Map<String, Object> handleMail(Exchange exchange) throws MessagingException {
Map<String, Object> result = new HashMap<>();
MailMessage mailMessage = exchange.getMessage(MailMessage.class);
AttachmentMessage attachmentMessage = exchange.getMessage(AttachmentMessage.class);
MailMessage mailMessage = (MailMessage) attachmentMessage.getDelegateMessage();
Map<String, DataHandler> attachments = attachmentMessage.getAttachments();
if (attachments != null) {
JsonArrayBuilder arrayBuilder = Json.createArrayBuilder();
Expand Down

0 comments on commit 60d4295

Please sign in to comment.