Hi all,
I'm using a route that gets new messages from an imap consumer. Something
like this:
<from
uri="imap://mailserver?username={{usr}}橪;password={{pwd}}橪;mapMailMessage=false"/>
<bean ref=emailSerializer">
<to uri="activemq:queue:mailQueue"/>
The emails get processed and being sent to the queue, passing from unread to
read (UNSEEN to SEEN) but what I would like to do is moving the processed
email into a "processed" folder on the mailbox.
I tried to get this in two ways, according to the documentation of the Camel
Mail component:
- added the copyTo=processed parameter to the imap uri, but it seems to have
no effect (the folder processed exists in the mailbox)
- adding the postProcessAction=myPostProcess where myPostProcess has to
implement the org.apache.camel.component.mail.MailBoxPostProcessAction but:
1) the MailBoxPostProcessAction is not recognized as an existent interface
2) the postProcessAction is not recognized as a valid parameter
I am using Camel 2.14.0.
Can you please help me with this?
Is there some configuration that I am missing?
Thank you,
A.
I'm using a route that gets new messages from an imap consumer. Something
like this:
<from
uri="imap://mailserver?username={{usr}}橪;password={{pwd}}橪;mapMailMessage=false"/>
<bean ref=emailSerializer">
<to uri="activemq:queue:mailQueue"/>
The emails get processed and being sent to the queue, passing from unread to
read (UNSEEN to SEEN) but what I would like to do is moving the processed
email into a "processed" folder on the mailbox.
I tried to get this in two ways, according to the documentation of the Camel
Mail component:
- added the copyTo=processed parameter to the imap uri, but it seems to have
no effect (the folder processed exists in the mailbox)
- adding the postProcessAction=myPostProcess where myPostProcess has to
implement the org.apache.camel.component.mail.MailBoxPostProcessAction but:
1) the MailBoxPostProcessAction is not recognized as an existent interface
2) the postProcessAction is not recognized as a valid parameter
I am using Camel 2.14.0.
Can you please help me with this?
Is there some configuration that I am missing?
Thank you,
A.