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}");
  }     
}

-- 
View this message in context: 
http://old.nabble.com/Cannot-get-Camel-to-work-with-Dovecot-IMAP-tp28381349p28381349.html
Sent from the Camel - Users mailing list archive at Nabble.com.

Reply via email to