Re: Read emails

2015-07-10 Thread bbenny93
Thanks, it seems to be exactly what I'm looking for. However I'm having difficulties to compile the examples. I get this error when I do /mvn compile/: Non-resolvable parent POM: Could not find artifact org.apache.camel:examples:pom:2.14-SNAPSHOT and 'parent.relativePath' points at wrong local POM

Re: Read emails

2015-07-10 Thread bbenny93
Ok thanks. Will I need to do that for any mail server? Or do you know one I could use without any setup (I have no idea if it's easy to do)? So I could get a grasp of camel functionalities with mails more easily. Benjamin. -- View this message in context: http://camel.465427.n5.nabble.com/Rea

Re: Read emails

2015-07-10 Thread bbenny93
Hi, thank you for your reply. I had already allowed imap in gmail. I tried with a yahoo address too but it's not working either, I don't know what I'm doing wrong. Also I've tried this to send an email... not working either :( I wrote this: from("file:data/inbox").setHeader("subject",constant("

Read emails

2015-07-10 Thread bbenny93
I'm totally new to Camel and I just wanted to try something simple like reading emails from a gmail address and put them in a folder. To do so I've just modified the example from the chapter1 of the /Camel in Action/ book, but every time I launch it I get a connection time out. My java file looks