Re: Attach several files to an email

2020-09-20 Thread Mikhail Lukyanov
And, I understand, it turned out to add several files Message in = exchange.getIn(); in.addAttachment(FilenameUtils.getName(filename),new DataHandler(new FileDataSource(new File(filename; in.addAttachment(FilenameUtils.getName(filename2),new DataHandler(new FileDataSource(new File(filename2)))

Attach several files to an email

2020-09-20 Thread Mikhail Lukyanov
Hello everyone. I use Camel version 2.25.1 I found how to attach one file to an email https://stackoverflow.com/questions/11035278/how-to-send-file-as-mail-attachment-via-camel-spring-dsl . But how to attach several files to an email at once?

Re: Unclear reasons for conversion rules when using Simple language

2020-09-20 Thread Claus Ibsen
Hi There is maybe some things that can be optmized a little bit https://issues.apache.org/jira/browse/CAMEL-14542 However the rule of thumb is that type matching via simple language is more complex as both operators can be dynamic values, and also a numeric value such as 0, would that be a int, l