Hi,

Which version of Camel are you using?
Which version of Mail jar are you using?

There are some bugs with the Geronimo mail jar, so we switch to javax.mail last year, please make sure you are using the javax.mail.jar.

Willem


Vilito Exquisitus wrote:
Hi all,

I am having a problem doing something that seems rather simple, read email
from an IMAP server (dovecot).   I have dovecot deployed on a Ubuntu server
and verified the setup using Thunderbird email client. I can send and
receive emails from the test account.  However, when I tried to get the
emails from this account using Camel, it doesn't work.  If I change the
account setting to my gmail account, it works.

So it seems like dovecot is working fine with an email client, and I have
even tested it using telnet to list folders and that works too.  I came here
after googling abit and trying for a few hours.  I hope I am not missing
something obvious.

Thanks a lot.

.v

the route is:
from("imap://<my-server>?username=testuser" +
        "&password=somepw&deleteProcessedMessages=false" +
        "&processOnlyUnseenMessages=true&consumer.delay=60000")
    .process(new MyProcessor());

The class my processor is in Groovy:
/// ----------------------------------------
package com.esl.ecas.model.service;
import org.apache.camel.Exchange;
import org.apache.camel.Message;

class MyProcessor implements org.apache.camel.Processor{
  public void process(Exchange exchng) throws Exception {
    println("MyProcessor.process(): ${exchng}");
    Message inMesg = exchng.getIn();
    println("->In Message: ${inMesg}");
  }     
}


Reply via email to