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}}&password={{mailScanner.email.password}}&delete=true&unseen=true&closeFolder=false&disconnect=false&consumer.delay=60000&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}}&password={{mailScanner.email.password}}&delete=true&unseen=true&closeFolder=false&disconnect=false&consumer.delay=60000&copyTo= > > *folder2*"/> > > > > I need to dynamically change folder2 to folder1, folder4 every 5 miutes. > > > > -Thanks > > Sasi > > >