Questions tagged [apache-camel-mail]

22 questions
7
votes
1 answer

How to read multiple attachments with same file name

I have a Java Maven project and I use org.apache.camel to obtain mail and attachment information. org.apache.camel camel-mail
Ale
  • 946
  • 4
  • 17
  • 28
2
votes
1 answer

How to addAttachment on Camel 3.0

in Camel 2.x I could add an Attachment to a Message like: exchange.getOut().addAttachment("LogFile.log.gz", new DataHandler(Base64.decodeBase64(FileContentBase64),"application/x-gzip")); But in Camel 3.0 it is not possible. I change my code like…
Burner
  • 981
  • 19
  • 41
1
vote
1 answer

AmbiguousMethodCallException Camel - Mail on Exchange.getMessage()

I am working with camel-mail-starter version 3.12.0 I have configured the route this way: String from = protocol + "://" + host + ":" + port + "?username=" + username + "&password=" + password + "&delete=" + removeAfterConsuming +…
Amit Mishra
  • 498
  • 5
  • 16
1
vote
3 answers

How to use OAuth 2 authentication with camel-mail

I'am using camel-mail plugin to read emails using IMAP and it working perfectly. But more and more email providers are deprecation / disabling basic authentication to replace it by OAuth 2.0 token-based authorization. Examples : From Microsoft…
Reda
  • 1,277
  • 1
  • 13
  • 27
1
vote
0 answers

How to implement Apache Camel Dynamic Router Pattern for flow chart based execution process

How to implement Apache Camel Dynamic Router Pattern, for flow chart based execution process. I have been through the links https://www.javainuse.com/camel/camel-dynamic-router-example, could not able to figure it out. I want to create an API that…
Braj Ankit
  • 333
  • 1
  • 2
  • 19
1
vote
1 answer

Get mail attachment information with Apache Camel

How can I get mail attachment information with Apache Camel, having an Exchange object already?
Nicomedes E.
  • 1,326
  • 5
  • 18
  • 27
1
vote
0 answers

Apache camel imap "Error accessing headers due to: charset"

I've written a Camel processor to manipulate an imap mailbox, it runs fine in the dev environment (using greenmail in a docker container) but when deployed in production attached to aruba mail I start getting the following exception 19:50:55.215…
lrkwz
  • 6,105
  • 3
  • 36
  • 59
0
votes
0 answers

Interaction of Apache Camel exchange patterns, transactions, error handling, and routing style

I have difficulty understanding how to best partition a complex route in Apache Camel. In particular: Does the exchange pattern (In, Out, InOut) influence if an error along the route is propagated back to the caller? And if so, does it influence if…
Ulrich Schuster
  • 1,670
  • 15
  • 24
0
votes
1 answer

Camel from(mail) loose headers?

I have a problem with camel route using IMAP. from("imap://mail.server?username=aaa&password=zzz©To=out&delete=true&unseen=false&folderName=in&mapMailMessage=false") .tracing() .setHeader("copyTo", simple("works")) .bean(MyTest.class,…
Seazor
  • 1
  • 2
0
votes
2 answers

Need of listening incoming emails using spring boot

Looking for some ideas on how to retrieve incoming emails (Exchange Server) for processing, like retrieve some information and invoke a web service. The service should constantly listening for new emails. So far we are looking into this using Spring…
0
votes
0 answers

Delete Mail using camel without the consumer

Hy all, in the software I'm developing, I have different camel routes that work on data, that is (in this case) loaded from an imap server using the camel-mail component. Each of those routes does something with the data and then gives the data to…
Chris
  • 432
  • 3
  • 14
0
votes
1 answer

Apache Camel Mail: How to send email when we have Mail Host only?

Following is my code: from("file:input?noop=true") .log(LoggingLevel.INFO, "Read from the input file") .setHeader("to", simple("fz@digga.com")) .to("smtps://scan.buzu.com") In earlier java…
fatherazrael
  • 5,511
  • 16
  • 71
  • 155
0
votes
0 answers

Apache Camel Mail component receiver example not working

I am trying to write apache Camel Mail component receiver using spring boot. Here is the code that I have written : @Component public class MyEmailRouter extends RouteBuilder { @Override public void configure() throws Exception { …
aks
  • 1,019
  • 1
  • 9
  • 17
0
votes
1 answer

How to send an email with an Inline Attachment to outlook with camel-mail

Outlook 2016 will not display an Email with a text/html Inline Attachment correctly when sent with camel-mail. The same email is displayed correctly in other mail clients like apple mail. I have already tried swapping the content type of the mail…
0
votes
0 answers

How to use Apache camel RAW(value) for password

When we configure Camel endpoints using URIs then the parameter values gets url encoded by default. This can be a problem when we want to configure passwords as is. To do that we can tell Camel to use the raw value, by enclosing the value with…
NeedToLearn
  • 147
  • 1
  • 2
  • 11
1
2