Re: email listener

2011-05-31 Thread fachhoch
can you please help me write this in camel public class GmailReader{ public static void main(String args[]) throws IOException { Properties props = System.getProperties(); props.setProperty("mail.store.protocol", "imaps"); try { Sessio

Re: email listener

2011-05-31 Thread fachhoch
may be I am missing something with the configration can please give me an example of an email address with yahoo or gmail -- View this message in context: http://camel.465427.n5.nabble.com/email-listener-tp4429925p4442836.html Sent from the Camel - Users mailing list archive at Nabble.com.

Re: email listener

2011-05-31 Thread fachhoch
this is the code of my RouteBuilder public void configure() { from("imap://myemailusernam@wholehostname?password=mypassword"). choice().when(header("subject").contains("Test-Camel")). to("jms://hhs.gov.email.queue").bean(new SomeBean()); } Now I am

Re: email listener

2011-05-31 Thread fachhoch
They gave me the mail server address , I can send email , but trying to read email I get connection refused exception. .I tried telnet to the address they gave and I get connection refused ,does this mean there is a problem with mailserver connection ?,my outllok connects well also I have thunde

Re: email listener

2011-05-31 Thread Taariq Levack
Did you ask your admin for the correct settings? Can you send an email using those settings any other way, like some standard java mail stuff you found on the web? Taariq On 31 May 2011, at 4:36 PM, fachhoch wrote: > I tried imap its not working, I get the same connection refused exception ,

Re: email listener

2011-05-31 Thread fachhoch
I tried imap its not working, I get the same connection refused exception , Is there any tool I can use to test the connection ? -- View this message in context: http://camel.465427.n5.nabble.com/email-listener-tp4429925p4442180.html Sent from the Camel - Users mailing list archive at Nabble.co

Re: email listener

2011-05-27 Thread Taariq Levack
Also try IMAP See here for details; http://camel.apache.org/mail.html If the defaults are no good, your admin guy should be able to help. Taariq On 27 May 2011, at 9:02 PM, fachhoch wrote: > I tried based on your suggestions I got ConnectException connection refused > :connect > java.net.Conne

Re: email listener

2011-05-27 Thread fachhoch
I tried based on your suggestions I got ConnectException connection refused :connect java.net.ConnectException: Connection refused: connect I am sure email address is correct and password is correct , Please tell me what could cause connection problems and I am testing this with my work emai

Re: email listener

2011-05-26 Thread Jim Talbut
Some time ago someone wrote here about an actual SMTP listener component for Camel, I think it was part of Apache James. The project that made me interested in it got canned, so I don't know whether it ever vecame usable. Jim On 26/05/2011 21:57, Donald Whytock wrote: from("pop3://m...@emailh

Re: email listener

2011-05-26 Thread Donald Whytock
from("pop3://m...@emailhost.com?password=password") choice().when(header("subject").contains("keyword")) to("jms://queuespec"); That's roughly the java. I think it can also be done in XML with no java at all. Don On Thu, May 26, 2011 at 4:11 PM, fachhoch wrote: > I want  an email listene