RE: [Camel Mail Component] Caching MimeMultipart

2024-01-22 Thread Shenavai, Manuel
Hi everyone, please let me know if you have any ideas on this topic. Thank you & Best regards, Manuel From: Shenavai, Manuel Sent: 16 January 2024 08:47 To: users@camel.apache.org Subject: [Camel Mail Component] Caching MimeMultipart Hi everyone, We are using the Camel Mail component to fetch

Re: camel-mail does not fetch attachments in Karaf.

2020-06-12 Thread Jean-Baptiste Onofre
Hi, Sorry, I was busy with other topics. I will work on the sample later today. Regards JB > Le 12 juin 2020 à 08:38, Kushal Gautam a écrit : > > Hi JB: > > Sorry to bug you again. Any solutions or suggestions on this issue? > > I tried a few other things as well, but I am pretty much stuck.

Re: camel-mail does not fetch attachments in Karaf.

2020-06-11 Thread Kushal Gautam
Hi JB: Sorry to bug you again. Any solutions or suggestions on this issue? I tried a few other things as well, but I am pretty much stuck. Thank you. Regards, Kushal. On Mon, Jun 8, 2020 at 2:18 PM Kushal Gautam wrote: > Hi JB: > > Thanks. > > I have already set up a sample project located a

Re: camel-mail does not fetch attachments in Karaf.

2020-06-08 Thread Kushal Gautam
Hi JB: Thanks. I have already set up a sample project located at https://github.com/cooshal/karaf-camel-mail The project contains a custom karaf distribution ( https://github.com/cooshal/karaf-camel-mail/tree/master/asssembly/karaf-assembly ). My bundle is located at https://github.com/cooshal/

Re: camel-mail does not fetch attachments in Karaf.

2020-06-08 Thread Jean-Baptiste Onofre
Sure, the easiest is probably to create a sample project. Do you already have one or do you want me to create one ? Regards JB > Le 8 juin 2020 à 13:46, Kushal Gautam a écrit : > > Hi JB: > > Thank you for the pointers. > > However, I do not know where and how exactly should I change the con

Re: camel-mail does not fetch attachments in Karaf.

2020-06-08 Thread Kushal Gautam
Hi JB: Thank you for the pointers. However, I do not know where and how exactly should I change the context loader in my code. I tried but I do not know where. Could you please help me out? Thank you. Regards, Cooshal. On Mon, Jun 8, 2020 at 9:34 AM Jean-Baptiste Onofre wrote: > You can fi

Re: camel-mail does not fetch attachments in Karaf.

2020-06-08 Thread Jean-Baptiste Onofre
You can find some details about similar issue in the following thread: http://karaf.922171.n3.nabble.com/java-mail-inside-Karaf-td4057507.html#a4057524 Let me know if it doesn’t help, I will fix your bundle for y

Re: camel-mail does not fetch attachments in Karaf.

2020-06-07 Thread Kushal Gautam
Hello JB: Thank you for getting back. I tried that out in frustration ;) Don’t embed activation in your bundle. You have the spec provided. > I am using Open JDK 1.8.0_242 Are you using JDK 8 or 11+ ? > To clarify and reproduce this issue, I have created a project in github. I am using a cust

Re: camel-mail does not fetch attachments in Karaf.

2020-06-07 Thread Jean-Baptiste Onofre
Hi, Don’t embed activation in your bundle. You have the spec provided. Are you using JDK 8 or 11+ ? Regards JB > Le 7 juin 2020 à 10:50, Kushal Gautam a écrit : > > Hi again: > > I have the following error when I try to start my bundle in karaf: > > Ignoring converter type: org.apache.camel

Re: camel-mail does not fetch attachments in Karaf.

2020-06-07 Thread Kushal Gautam
Hi again: I have the following error when I try to start my bundle in karaf: Ignoring converter type: org.apache.camel.converter.AttachmentConverter as a dependent class could not be found: java.lang.NoClassDefFoundError: javax/activation/DataHandler java.lang.NoClassDefFoundError: javax/activati

Re: camel-mail does not fetch attachments in Karaf.

2020-06-04 Thread Kushal Gautam
Hi JB: I am not exactly sure about the internals. https://camel.apache.org/components/latest/others/attachments.html >From the point of view of my code, it is: ... Map attachments = exchange.getIn().getAttachments(); ... for (String name : attachments.keySet()) { DataHandler dh

Re: camel-mail does not fetch attachments in Karaf.

2020-06-04 Thread Jean-Baptiste Onofre
Hi, How are you looking for the attachment ? In the class loader resource or using path ? I guess your attachement files are not found (either because it’s not private package of your bundle, or not imported correctly). Regards JB > Le 4 juin 2020 à 15:03, Kushal Gautam a écrit : > > Camel

Re: Camel Mail issue

2019-01-15 Thread Claus Ibsen
Hi There is a FAQ about this at http://camel.apache.org/how-do-i-configure-password-options-on-camel-endpoints-without-the-value-being-encoded.html On Tue, Jan 15, 2019 at 2:17 PM Riggy Software wrote: > > Hi, > > I'm not sure who to inform about this, but I've just had a bit of a nightmare > f

Re: Camel Mail issue

2019-01-15 Thread Riggy Software
Okay okay, I found it in the endpoint docs page. Sorry. But it's the last place I looked (with Google) and only after I knew what to search for. Regards, Naseem Get Outlook for Android From: Riggy Software Sent: Tuesday, January 15, 2019

Re: camel-mail validation process

2018-09-19 Thread Marco Pampaloni
Unfortunately, it does not work Il giorno mar 18 set 2018 alle ore 16:41 Claus Ibsen ha scritto: > Hi > > You can try to turn of peek with peek=false > On Mon, Sep 17, 2018 at 4:12 PM Marco Pampaloni > wrote: > > > > Hi everyone, I've been trying to write down a camel route that listens > to a

Re: camel-mail validation process

2018-09-18 Thread Claus Ibsen
Hi You can try to turn of peek with peek=false On Mon, Sep 17, 2018 at 4:12 PM Marco Pampaloni wrote: > > Hi everyone, I've been trying to write down a camel route that listens to a > mailbox and downloads the messages when needed... The problem is that the > server contains about 5k mails and it

Re: Camel Mail: MaxMessagesPerPoll vs fetchSize

2018-06-11 Thread Claus Ibsen
The max is a generic option that batch components inherit. Its limiting after messages has been downloaded/consumed. The fetch is a component specific option, eg mail protocol, to limit on the mail server side. Favour using fetch when possible, eg component specific options. On Mon, Jun 11, 2018

RE: Rép. : RE: camel-mail IMAP mime-multipart splitAttachment

2017-12-12 Thread Daniel Langevin
tipart". Can you try that? Best regards Stephan ‑Original Message‑ From: Daniel Langevin [mailto:daniel.lange...@shq.gouv.qc.ca] Sent: Freitag, 8. Dezember 2017 19:56 To: users@camel.apache.org Subject: Rép. : RE: camel‑mail IMAP mime‑multipart splitAttachment Hi, i try with

RE: Rép. : RE: camel-mail IMAP mime-multipart splitAttachment

2017-12-12 Thread Daniel Langevin
e‑multipart", not "mimeMultipart". Can you try that? Best regards Stephan ‑Original Message‑ From: Daniel Langevin [mailto:daniel.lange...@shq.gouv.qc.ca] Sent: Freitag, 8. Dezember 2017 19:56 To: users@camel.apache.org Subject: Rép. : RE: camel‑mail

RE: Rép. : RE: camel-mail IMAP mime-multipart splitAttachment

2017-12-11 Thread Siano, Stephan
Hi, the name of the xml-element is "mime-multipart", not "mimeMultipart". Can you try that? Best regards Stephan -Original Message- From: Daniel Langevin [mailto:daniel.lange...@shq.gouv.qc.ca] Sent: Freitag, 8. Dezember 2017 19:56 To: users@camel.apache.org Subje

Rép. : RE: camel-mail IMAP mime-multipart splitAttachment

2017-12-08 Thread Daniel Langevin
Hi, i try with but receive an error into deployement. org.springframework.beans.factory.xml.XmlBeanDefinitionStoreException: Line 147 in XML document from URL [bundle://456.1:0/META-INF/spring/bdl.routes_XXX-0.0.1.xml] is invalid; nested exception is org.xml.sax.

RE: camel-mail IMAP mime-multipart splitAttachment

2017-12-07 Thread Siano, Stephan
Hi, well, the error message means that the JMS endpoints cannot handle binary MIME-Messages. It tries to serialize the message in order to store it, but the data type is not (Java) serializable. I see two ways how you could proceed. You could either marshal the MIME-Message with attachments in

Re: Camel Mail sends the same email twice

2017-05-23 Thread raja
Hi, I dont know about ur coding.So I can't tell what causing the problem exactly. But I can assure camel Route wont send mail twice. If u starting the camel route manually from your code then check your the route is started only once. If you are using bean to attach the mail conte

Re: Camel Mail sends the same email twice

2017-05-23 Thread Laurentiu Trica
Hi, The route is a ripped of version of a more complex one. But what can influence the Camel Mail to send the email twice? Do you have any idea? Thanks! Laurentiu On Tue, May 23, 2017 at 12:08 PM, raja wrote: > Hi, > The Route is working fine.when executing the Route I received the mail >

Re: Camel Mail sends the same email twice

2017-05-23 Thread raja
Hi, The Route is working fine.when executing the Route I received the mail only once.If you are receiving the mail twice means the problem is not with the Given ROUTE. -- View this message in context: http://camel.465427.n5.nabble.com/Camel-Mail-sends-the-same-email-twice-tp5800048p5800049

Re: camel-mail: Body ends up as attachment instead of e-mail body in multipart mail.

2016-11-11 Thread Andreas A.
Thanks guys, setting the content type to text/plain did the trick. -- View this message in context: http://camel.465427.n5.nabble.com/camel-mail-Body-ends-up-as-attachment-instead-of-e-mail-body-in-multipart-mail-tp5789939p5790037.html Sent from the Camel - Users mailing list archive at Nabble.

Re: camel-mail: Body ends up as attachment instead of e-mail body in multipart mail.

2016-11-10 Thread AOladipupo
you need to set the content type as part of the uri options or in the exchange header (will overite the uri values). See modified section of your code below: @Override public void process(Exchange exchange) throws Exception { Message in = exchange.getIn()

Re: camel-mail: Body ends up as attachment instead of e-mail body in multipart mail.

2016-11-10 Thread jmaurin
Hello, we had got the same problem (ie a attachement file as body). To resolve it, we have 'force' the content type in the header as : in.setHeader("contentType", "text/plain"); Best regards, jmaurin Camel version : 2.14.1 -- View this message in context: http://camel.465427.n5.nabble.

Re: camel-mail: Body ends up as attachment instead of e-mail body in multipart mail.

2016-11-10 Thread Claus Ibsen
Also a good idea can be to look at the existing unit tests of camel-mail, to see how some of those does it with file attachments. On Thu, Nov 10, 2016 at 10:18 AM, Andreas A. wrote: > I'm using 2.17.3. I guess I could try 2.18.0. > > > > -- > View this message in context: > http://camel.465427.n

Re: camel-mail: Body ends up as attachment instead of e-mail body in multipart mail.

2016-11-10 Thread Andreas A.
I'm using 2.17.3. I guess I could try 2.18.0. -- View this message in context: http://camel.465427.n5.nabble.com/camel-mail-Body-ends-up-as-attachment-instead-of-e-mail-body-in-multipart-mail-tp5789939p5789989.html Sent from the Camel - Users mailing list archive at Nabble.com.

Re: camel-mail: Body ends up as attachment instead of e-mail body in multipart mail.

2016-11-09 Thread Claus Ibsen
Not sure what Camel version you use, but tell us, and try test with newer release. On Wed, Nov 9, 2016 at 10:44 AM, Andreas A. wrote: > I'm trying to send an e-mail with a subject, body and attached file. The > subject and attached file works fine. However when I make an attachment, the > body of

Re: Camel Mail: Sending both text and html version of e-mail

2016-10-18 Thread Claus Ibsen
Hi See the alternativeBodyHeader option at http://camel.apache.org/mail.html On Thu, Oct 13, 2016 at 8:33 PM, dash wrote: > Hello. > I need to send both /text/html/ and /text/plain/ versions in one email. Can > this be done using Camel SMTP component? > > > > -- > View this message in context:

Re: Camel-Mail - Consume from IMAP with variable searchTerm.fromSentDate

2016-10-10 Thread Michael Täschner
Hi Claus, do you see a possibility that the MailConsumer can be extended to support dynamic parameters? Especially SearchTerms like "SentDate" are rather dynamic in nature - otherwilse mails will be polled over and over again if other searchTerms like "unseen" cannot be applied. Thanks and Best R

Re: Camel-Mail - Consume from IMAP with variable searchTerm.fromSentDate

2016-10-07 Thread Michael Täschner
Unfortunately it is not sufficient to provide own SearchTerm class and overriding "match" because com.sun.mail.imap.protocol.SearchSequence checks specific implementations of SearchTerm provided by com.sun.mail and all implementations are final. I worked around the issue by resetting the searchTerm

Re: Camel-Mail - Consume from IMAP with variable searchTerm.fromSentDate

2016-10-06 Thread Claus Ibsen
I think you just need to keep state yourself in the bean, and then the mail component will call the match method to see if a mail messages matches or not. Then your state can then update with new sent date information so the matches method can use a newer date. On Thu, Oct 6, 2016 at 2:43 AM, Mic

Re: Camel-Mail - Consume from IMAP with variable searchTerm.fromSentDate

2016-10-05 Thread Michael Täschner
Hi Again, is there a possibility that the searchTerm bean reference picked up by camel-mail can update it's internal state to allow for a changing sentDate for the query? Thanks and Best Regards, Michael 2016-09-23 16:21 GMT+02:00 Michael Täschner : > Hi Camel-Riders, > > is there a possibility

Re: Camel-mail leave message unseen while searching

2016-05-27 Thread metalalisa
I need another behavior. I need to leave the seen flag unchanged. Should I add another one property to the endpoint and make pull request? -- View this message in context: http://camel.465427.n5.nabble.com/Camel-mail-leave-message-unseen-while-searching-tp5783119p5783156.html Sent from the Came

Re: Camel-mail leave message unseen while searching

2016-05-26 Thread Claus Ibsen
On Thu, May 26, 2016 at 7:47 PM, metalalisa wrote: > Of course! Thanks for quick reply. > > >> imaps://imap.gmail.com?username=*@gmail.com&password=*&delete=false&consumer.delay=1&peek=true&searchTerm.fromSentDate=now-72h > > My camel-mail version is 2.17.1 > So what is the problem? A

Re: Camel-mail leave message unseen while searching

2016-05-26 Thread metalalisa
Of course! Thanks for quick reply. > imaps://imap.gmail.com?username=*@gmail.com&password=*&delete=false&consumer.delay=1&peek=true&searchTerm.fromSentDate=now-72h My camel-mail version is 2.17.1 -- View this message in context: http://camel.465427.n5.nabble.com/Camel-mail-leave-

Re: Camel-mail leave message unseen while searching

2016-05-26 Thread Claus Ibsen
Can you tell us which Camel version, and what do you mean by searching? Can you show the camel route / mail endpoint you have configured? On Thu, May 26, 2016 at 6:57 PM, metalalisa wrote: > Could you help me to understand why camel-imap marks messages as seen while I > call search with terms? >

Re: Camel mail component to get email notification(Instead of polling)

2015-08-12 Thread Claus Ibsen
Hi No its polling based. But I think there is a JIRA about a event based but that would require the mail server to support this, and also to implement the needed code to do so. Not sure if the java mail api supports this. On Wed, Aug 12, 2015 at 8:55 AM, NewCamelDev wrote: > Hi All, I am new to

Re: Camel Mail mapMailMessage flag ignored

2015-05-17 Thread Claus Ibsen
onfiguration point changes nothing in how the exchange is >> processed I will assume this is bug resulting in a completely dead and >> useless configuration point. >> >> >> >> -Original Message- >> From: Claus Ibsen [mailto:claus.ib...@gmail.com]

Re: Camel Mail mapMailMessage flag ignored

2015-05-16 Thread Claus Ibsen
gt; Since the configuration point changes nothing in how the exchange is > processed I will assume this is bug resulting in a completely dead and > useless configuration point. > > > > -Original Message- > From: Claus Ibsen [mailto:claus.ib...@gmail.com] > Sent: Wed

RE: Camel Mail mapMailMessage flag ignored

2015-05-06 Thread wrusch
in how the exchange is processed I will assume this is bug resulting in a completely dead and useless configuration point. -Original Message- From: Claus Ibsen [mailto:claus.ib...@gmail.com] Sent: Wednesday, May 06, 2015 11:35 AM To: users@camel.apache.org Subject: Re: Camel Mail

Re: Camel Mail mapMailMessage flag ignored

2015-05-06 Thread Claus Ibsen
Hi Read the description. Its about whether mail message headers and body is mapped to Camel Message Body / Headers automatic or lazy-on-demand. >From outside you cant tell the difference unless you work with the low level message api. On Wed, May 6, 2015 at 5:32 PM, wrusch wrote: > I expect the

Re: Camel Mail mapMailMessage flag ignored

2015-05-06 Thread wrusch
I expect the flag to do something? I really don't understand your reply. No matter what value I set, nothing changes. For pop3 the mapping happens 'never' For imap the mapping happens 'always' In either case the flag does nothing at all. -- View this message in context: http://camel.465427.

Re: Camel Mail mapMailMessage flag ignored

2015-05-06 Thread Claus Ibsen
Hi What would you expect to happen? The option is a flag to turn lazy mapping on or off. On Wed, May 6, 2015 at 4:41 PM, wrusch wrote: > I am testing with camel-mail 2.14. > > I am testing both pop3 and imap email consumers. > > When i toggle the mapMailMessage flag nothing changes at all with t

Re: Camel Mail CC and BCC headers

2014-10-27 Thread ychawla
Thanks Willem, Looks great. -Yogesh -- View this message in context: http://camel.465427.n5.nabble.com/Camel-Mail-CC-and-BCC-headers-tp5757943p5758097.html Sent from the Camel - Users mailing list archive at Nabble.com.

Re: Camel Mail CC and BCC headers

2014-10-27 Thread Willem Jiang
Hi, I just create a JIRA[1] and submitted a quick fix for it. Please feel free to verify it by using latest Camel 2.15-SNAPSHOT. [1]https://issues.apache.org/jira/browse/CAMEL-7966 -- Willem Jiang Red Hat, Inc. Web: http://www.redhat.com Blog: http://willemjiang.blogspot.com (English) http://

Re: Camel Mail CC and BCC headers

2014-10-23 Thread ychawla
Hello All, The MailBinding class contains this method setRecipientFromEndpointConfiguration. Perhaps it is just as easy as checking the recipients map to see if the CC or BCC are blank or empty string prior to setting them in the method. If so, I wouldn't mind submitting a patch for this. Thanks

Re: camel mail: content-transfer-encoding configurable

2014-06-25 Thread cgiera
Ticket created, see https://issues.apache.org/jira/browse/CAMEL-7536. Looking forward to provide a patch. kind regards, Christoph -- View this message in context: http://camel.465427.n5.nabble.com/camel-mail-content-transfer-encoding-configurable-tp5752504p5752791.html Sent from the Camel - Us

Re: camel mail: content-transfer-encoding configurable

2014-06-24 Thread cgiera
Maybe something similar to the ContentTypeResolver is also a good solution -- View this message in context: http://camel.465427.n5.nabble.com/camel-mail-content-transfer-encoding-configurable-tp5752504p5752744.html Sent from the Camel - Users mailing list archive at Nabble.com.

Re: camel mail: content-transfer-encoding configurable

2014-06-24 Thread cgiera
Hi, ok, just for clarification what would be a good solution for this: I've not mentioned that we need the content-transfer-encoding for the attachments of the mail. Some ideas from my side: 1. use a parameter like contentType, let's say content-transfer-encoding: If this parameter is set ALL att

Re: camel mail: content-transfer-encoding configurable

2014-06-18 Thread Claus Ibsen
Hi You are welcome. We love contributions. http://camel.apache.org/support If you could make this optional, so you need to turn this on so it wont affect existing users. Then that would be the best imho. On Wed, Jun 18, 2014 at 3:15 PM, cgiera wrote: > Hello, > > the camel mail componente dete

Re: camel-mail and camel-cxf incompatible?

2014-04-20 Thread bocamel
Willem, thank you very much for the quick response! Your suggestion worked perfectly. -- View this message in context: http://camel.465427.n5.nabble.com/camel-mail-and-camel-cxf-incompatible-tp5750386p5750393.html Sent from the Camel - Users mailing list archive at Nabble.com.

Re: camel-mail and camel-cxf incompatible?

2014-04-20 Thread Willem Jiang
It looks like there some conflict between the java mail jar and  geronimo-javamail_1.4_spec.jar. Can you try to exclude the  org.apache.geronimo.specs:geronimo-javamail_1.4_spec:jar:1.7.1 just below the dependency of cxf-rt-transports-http-jetty. -- Willem Jiang Red Hat, Inc. Web: http://www.

Re: camel-mail

2013-05-19 Thread nickerox
It works adding "to" property. Many thx -- View this message in context: http://camel.465427.n5.nabble.com/camel-mail-tp5725119p5732817.html Sent from the Camel - Users mailing list archive at Nabble.com.

Re: camel-mail

2013-05-19 Thread Claus Ibsen
Hi If you see any exception then that may have details that can lead you to what is wrong etc. And make sure your username and password is correct. Also you need to set a header with the "to" eg with the email to who is to receive the email. setHeader("to", constant("some...@somewhere.com")) O

Re: camel-mail

2013-05-19 Thread nickerox
Hi Claus, I`m testing this simple java code: CamelContext ctx = new DefaultCamelContext(); ctx.addRoutes(new RouteBuilder() { @Override public void configure() throws Exception { from("direct:mail")

Re: camel-mail component is "asymmetric" !

2013-02-03 Thread Claus Ibsen
Hi Yeah you can extend MailBinding and set a custom instance on the mail endpoint. We should possible extract that as an interface, to make it easier to do custom bindings. And as well allow to configure the binding on the component level, so you can set it once, and apply for all mail endpoints i

Re: camel-mail regarding xml configuration

2013-01-11 Thread Claus Ibsen
On Fri, Jan 11, 2013 at 6:54 AM, tamil13 wrote: > I tried. but dont know how to do it. Could any one post respective xml code > for sending mail? > You can define a Camel route in XML that routes to a smtp endpoint which then sends the email. And you can have prior if needed

Re: camel-mail regarding xml configuration

2013-01-10 Thread tamil13
I tried. but dont know how to do it. Could any one post respective xml code for sending mail? -- View this message in context: http://camel.465427.n5.nabble.com/camel-mail-regarding-xml-configuration-tp5725280p5725346.html Sent from the Camel - Users mailing list archive at Nabble.com.

Re: camel-mail regarding xml configuration

2013-01-10 Thread David Karlsen
Use setHeader or configure properties on the endpoint. Den 10. jan. 2013 15:38 skrev "tamil13" følgende: > How to configure below code into camel-context.xml file? > > template = context.createProducerTemplate(); > ProducerTemplate template; > Map map = new HashMap(); > map.put("To", "davscl...@a

Re: camel-mail

2013-01-10 Thread Claus Ibsen
On Thu, Jan 10, 2013 at 3:53 PM, tamil13 wrote: > It is working now. Can we config below coding in camel-context.xml also? > What do you mean? The code below is not a Camel route (which you can configure in XML) but code that sends a message to a Camel endpoint using the producer template. And

Re: camel-mail

2013-01-10 Thread tamil13
It is working now. Can we config below coding in camel-context.xml also? ProducerTemplate template; template = context.createProducerTemplate(); Map map = new HashMap(); map.put("To", "davscl...@apache.org"); map.put("From", "jstrac...@apache.org"); map.put("Subject", "Camel rocks"); String body

Re: camel-mail

2013-01-08 Thread Claus Ibsen
Hi See for example http://camel.apache.org/walk-through-an-example.html On Tue, Jan 8, 2013 at 2:51 PM, Claus Ibsen wrote: > On Tue, Jan 8, 2013 at 2:48 PM, tamil13 wrote: >> >> Yes. We included *real mail server* detail only. This is same code except >> configuration information. >> Below cod

Re: camel-mail

2013-01-08 Thread Claus Ibsen
On Tue, Jan 8, 2013 at 2:48 PM, tamil13 wrote: > > Yes. We included *real mail server* detail only. This is same code except > configuration information. > Below code return null pointer exception also. > Is there any other code available to create and send mail using *smtp* > component? > And di

Re: camel-mail

2013-01-08 Thread tamil13
Yes. We included *real mail server* detail only. This is same code except configuration information. Below code return null pointer exception also. Is there any other code available to create and send mail using *smtp* component? -- View this message in context: http://camel.465427.n5.nabble

Re: camel-mail

2013-01-08 Thread Claus Ibsen
Hi Welcome to the community. The code below is from an unit test, which uses a mock mail server (not a real mail server). In your scenario, you should change the details to a real mail server (in case you want to send the emails for real). On Tue, Jan 8, 2013 at 2:28 PM, tamil13 wrote: > > Hi.

Re: camel mail imap :javax.mail.FolderClosedException

2011-09-16 Thread kevin707
Thanks Claus, It works with direct. Awaiting for the fix. regards, Kevin -- View this message in context: http://camel.465427.n5.nabble.com/camel-mail-imap-javax-mail-FolderClosedException-tp4796608p4810027.html Sent from the Camel - Users mailing list archive at Nabble.com.

Re: camel mail imap :javax.mail.FolderClosedException

2011-09-16 Thread Claus Ibsen
Hi The problem is likely that you use the seda in routing from the mail endpoint. Can you use direct instead? I have created a ticket to improve this in camel-mail, so closing the mail folder is an option you can turn on|off. https://issues.apache.org/jira/browse/CAMEL-4456 On Fri, Sep 16, 2011

Re: camel mail imap :javax.mail.FolderClosedException

2011-09-15 Thread kevin707
Hi Claus, Sorry for the reply in delay. I moved back to 2.5.0 and revised code following your advice. still got following exceptions: processCommit: OPENED?:true processCommit:Exchange processed, so flagging message as DELETED: AAA:closing folder processCommit:Error occurred during flagging mess

Re: camel mail imap :javax.mail.FolderClosedException

2011-09-14 Thread Claus Ibsen
Hi Could you add some logging in the finally block? As shown below: } finally { // need to ensure we release resources try { if (folder.isOpen()) { LOG.info("Closing folder in finally block"); folder.close(tru

Re: camel mail imap :javax.mail.FolderClosedException

2011-09-13 Thread kevin707
Thanks Claus, It is nice to hear from you. We are using grails plugin routing 1.1.3,which targets camel 2.5.0. Following your advice, we copied 2.8.0 code to 2.5.0 and build with mvn. still have problem: 2011-09-14 12:25:57,042 [Camel Thread 34 - seda://email_process] ERROR seda.SedaConsumer

Re: camel mail imap :javax.mail.FolderClosedException

2011-09-13 Thread Claus Ibsen
Hi What version of Camel are you using? You can try upgrading to the latest version if possible. And what do you do in the seda route? Does it take a long time before the message is completed? For example the mailsession could have timeout and closed the mailbox. On Tue, Sep 13, 2011 at 2:55 A

Re: camel-mail - need to force a close/reconnect

2011-07-11 Thread Claus Ibsen
On Mon, Jul 11, 2011 at 7:40 PM, Donald Whytock wrote: > I don't know if the POP3 and SMTP connections actually have anything > to do with each other, but if the connection locking up is an issue > I'd be inclined to check your flag and force a close after any place > you had to force an open. >

Re: camel-mail - need to force a close/reconnect

2011-07-11 Thread Donald Whytock
I don't know if the POP3 and SMTP connections actually have anything to do with each other, but if the connection locking up is an issue I'd be inclined to check your flag and force a close after any place you had to force an open. This may be something similar to what I see in my custom XMPP driv

Re: camel-mail - need to force a close/reconnect

2011-07-11 Thread Dan Checkoway
Ah, good point! I can't really see anybody wanting to recycle the connection in between messages. I think "single" essentially could mean what you originally posted about "close.after.poll=true", in that all messages picked up during that polling iteration would be processed, and delete flags wou

Re: camel-mail - need to force a close/reconnect

2011-07-11 Thread Donald Whytock
Maybe not every exchange for "single", since camel-mail will pick up all messages available at a poll. Like, if in your five seconds three messages come in, camel-mail currently would pick up all three. Or would you want that to be an option too...closing and re-opening the folder for each messag

Re: camel-mail - need to force a close/reconnect

2011-07-11 Thread Dan Checkoway
Thanks Claus. I think part of the problem is that the connection *is* open...i.e. the server doesn't disconnect you, it just starts returning errors. I think the "disconnect after poll" option would be a valuable addition, but for those of us who poll very frequently (i.e. my 5-sec poll period) m

Re: camel-mail - need to force a close/reconnect

2011-07-11 Thread Donald Whytock
Seconded. Forced disconnects/reconnects might clear up a lockup problem I've been having from time to time with my ISP's POP3 server, and I'm polling every 15 seconds. close.after.poll=true? Don On Mon, Jul 11, 2011 at 9:59 AM, Claus Ibsen wrote: > Hi > > I think we got logic in place which as

Re: camel-mail - need to force a close/reconnect

2011-07-11 Thread Claus Ibsen
Hi I think we got logic in place which asks if the connection/mailbox is opened before polling. But maybe we can improve the logic there? We may also consider adding a disconnect option, so you can explicit configure it to disconnect after the poll. So if you only poll the mailbox every 5th minut

Re: Camel Mail with attachment problem

2011-04-27 Thread Laurentiu Trica
Hello, We solved the problem. We don't use StreamDataSource anymore, we use ByteArrayDataSource. It seems to be a problem while using the StreamDataSource, although the stream was ok, because we wiretapped it before and the resulted file was good. Thanks for helping, anyway. Laurentiu On Fri, A

Re: camel-mail attachment is empty

2011-04-25 Thread Willem Jiang
Hi, I'm happy to see you find a workaround :) It looks like a bug of the DataSource? Can you try to use a new version of ServiceMix? 4.2.0 was released about years ago. Willem On 4/26/11 3:20 AM, Sorin Silaghi wrote: Hi there, Sorry to send you this directly but I keep getting erro

Re: camel-mail attachment is empty

2011-04-25 Thread Sorin Silaghi
Hi, I've done some testing and I can't see anything wrong with the stream. I have found a workaround: if I write the stream to a file first and then use FileDataSource it all works fine. I also slimmed down everything to the basics to make sure nothing else interferes and to be hone

Re: camel-mail attachment is empty

2011-04-24 Thread Willem Jiang
Can you check if your can dump the right input stream before adding it into attachment? Is there any special setting on your mail server which should also cause this kind of issue ? Willem On 4/22/11 11:00 PM, Sorin Silaghi wrote: Hi, after further testing it looks like precise

Re: camel-mail attachment is empty

2011-04-22 Thread Sorin Silaghi
Hi, after further testing it looks like precisely 4 KB are removed from the beginning of each e-mail. Does it get any stranger than this? Sorin. On Fri, Apr 22, 2011 at 4:09 PM, Willem Jiang wrote: > On 4/22/11 6:43 PM, Sorin Silaghi wrote: > >> Hi, >> >> >>I'm using FUSE

Re: camel-mail attachment is empty

2011-04-22 Thread Sorin Silaghi
Actually it seems that all the files I send get truncated. It's just that some of them get truncated all the way to nothing, but if I send one file multiple times the result is the same. On Fri, Apr 22, 2011 at 4:09 PM, Willem Jiang wrote: > On 4/22/11 6:43 PM, Sorin Silaghi wrote: > >> Hi, >> >>

Re: Camel Mail with attachment problem

2011-04-22 Thread Willem Jiang
The code looks good to me. Can you check if the stream is right? Can you dump the stream to see if it is truncated? Willem On 4/22/11 9:10 PM, Laurentiu Trica wrote: Hello, I use this code: public class ContentToAttachment extends AbstractTransparentProcessor { private String contentTyp

Re: camel-mail attachment is empty

2011-04-22 Thread Sorin Silaghi
Hi, Thanks, I tried that code and I can't see anything out of the ordinary. I have no idea what's going on, and the worst part is that it doesn't always send the files empty, just most of the time. If I try feeding it more files at a time some of them will have content but it's stil

Re: Camel Mail with attachment problem

2011-04-22 Thread Laurentiu Trica
Hello, I use this code: public class ContentToAttachment extends AbstractTransparentProcessor { private String contentType = "application/octet-stream"; public void process(Exchange exchange) throws Exception { Message msg = transferData(exchange); InputStream stream =

Re: camel-mail attachment is empty

2011-04-22 Thread Willem Jiang
On 4/22/11 6:43 PM, Sorin Silaghi wrote: Hi, I'm using FUSE ESB 4.3.1-fuse-01-09 and the camel version is 2.6.0. I just downloaded the 2.6.0 tag from the repo because I was trying to debug using trunk and I think there were some differences. I'll have a look at the unit tests also. Y

Re: camel-mail attachment is empty

2011-04-22 Thread Sorin Silaghi
Hi, I'm using FUSE ESB 4.3.1-fuse-01-09 and the camel version is 2.6.0. I just downloaded the 2.6.0 tag from the repo because I was trying to debug using trunk and I think there were some differences. I'll have a look at the unit tests also. Sorin. On Fri, Apr 22, 2011 at 11:49 AM, Clau

Re: camel-mail attachment is empty

2011-04-22 Thread Claus Ibsen
On Fri, Apr 22, 2011 at 9:33 AM, Sorin Silaghi wrote: > Hi all, > > > >           I'm trying to send an e-mail using camel-mail and I have a > problem with the attachments: they always arive empty. > Have you seen some of the unit tests in camel-mail which tests with attachments? Also what versi

Re: Camel Mail with attachment problem

2011-04-14 Thread Willem Jiang
Hi, How do you setup the attachment? I don't think converting the message body into attachment will lost the date. On 4/14/11 10:08 PM, Laurentiu Trica wrote: Hello, I have a problem using Camel Mail. I can get emails with attachments without any problem. But when I send an email with attac

Re: Camel-Mail: Subject cannot handle unicode chars?

2010-06-01 Thread Willem Jiang
Hi, Here is the unit test[1] which shows you that how to specify the charset for encoding, maybe you can take a look at it. BTW, which version of Camel are you using? The default Charset of Camel is changed to be UTF-8. [1]http://svn.apache.org/viewvc?rev=949109&view=rev Willem tide08 wrot

Re: Camel-Mail: Subject cannot handle unicode chars?

2010-06-01 Thread tide08
Sorry, for late follow up on this. As I mentioned before, I have the fix and I can submit the patch. But I am not sure if encoding is platform specific and will cause issues or/and make unit test difficult. For ex: Mail with below subject, shows up in mail envelope like - Subject = My Camel \u

Re: Camel-Mail: Subject cannot handle unicode chars?

2010-05-27 Thread Willem Jiang
Hi, In camel you can get the Charset information from exchange, I just created a JIRA[1] for it, it should be easy to fix. [1]https://issues.apache.org/activemq/browse/CAMEL-2763 Willem tide08 wrote: It looks like camel-mail cannot handle unicode chars in subject header? I have something l

Re: Camel-Mail: Alternative part does not handle charset?

2010-03-18 Thread tide08
@willem Sorry, it took longer but I have updated the patch (have not test it for 2.3.0) on JIRA. Thanks! willem.jiang wrote: > > Hi, > > I just have a look at the patch, and I can't just copy the java file > into the repository, as there are some change on the MailBinding.java > since Cam

Re: Camel-Mail: Alternative part does not handle charset?

2010-03-15 Thread Willem Jiang
Hi, I just have a look at the patch, and I can't just copy the java file into the repository, as there are some change on the MailBinding.java since Camel 2.2.0 release, so please send a diff patch which is based on the current trunk. Thanks for your contribution. Willem tide08 wrote: I al

  1   2   >