If I read the docs of copyTo correctly you should be able to change to add
a header with the copyTo value at runtime.

*Camel 2.10:* Consumer only. After processing a mail message, it can be
copied to a mail folder with the given name. You can override this
configuration value, with a header with the key copyTo, allowing you to
copy messages to folder names configured at runtime.

Is that an option?


Bart Horré
Anova r&d bvba

On Tue, Feb 3, 2015 at 3:02 PM, Mezai 279 <mezai....@gmail.com> wrote:

> Thanks Bart Horre!
> Here i want to change a particular attribute in the <from it self
>
> <from uri="imaps://{{mailScanner.
>
> imap.host}}:{{mailScanner.imap.port}}?username={{mailScanner.email}}&amp;password={{mailScanner.email.password}}&amp;delete=true&amp;unseen=true&amp;closeFolder=false&amp;disconnect=false&amp;consumer.delay=60000&amp;copyTo=
> *folder2*"/>
>
> copyTo should be changed dynamically each time it is polling the mail
> server.
>
> I believe recipient list will not be helpful here.
>
>
>
>
> -Thanks
> Sasi
>
>
> On Tue, Feb 3, 2015 at 7:10 PM, Bart Horré <b...@anova.be> wrote:
>
> > Hi,
> >
> > you could use a recipient list to dynamically identify the endpoint.
> >
> > http://camel.apache.org/recipient-list.html
> >
> > Bart Horré
> > Anova r&d bvba
> >
> > On Tue, Feb 3, 2015 at 10:39 AM, Mezai 279 <mezai....@gmail.com> wrote:
> >
> > > I m planning to write a route which will have to move messages from
> inbox
> > > to four different folders folder1, folder2, folder3, folder4 every 5
> > > minutes. How can i do this?
> > >
> > > <from
> > >
> > >
> >
> uri="imaps://{{mailScanner.imap.host}}:{{mailScanner.imap.port}}?username={{mailScanner.email}}&amp;password={{mailScanner.email.password}}&amp;delete=true&amp;unseen=true&amp;closeFolder=false&amp;disconnect=false&amp;consumer.delay=60000&amp;copyTo=
> > > *folder2*"/>
> > >
> > > I need to dynamically change folder2 to folder1, folder4 every 5
> miutes.
> > >
> > > -Thanks
> > > Sasi
> > >
> >
>

Reply via email to