Just try it out On Mon, Jun 28, 2021 at 9:32 AM Bikash Kaushik <kaushikbikas...@gmail.com> wrote: > > Yes, I checked this. > > So, is it possible to search mail on a particular date Ex: "2021-06-27" or > it works only in "now-24h" format > > On Mon, Jun 28, 2021 at 12:39 PM Claus Ibsen <claus.ib...@gmail.com> wrote: > > > Hi > > > > See the documentation and its examples > > https://camel.apache.org/components/latest/mail-component.html > > > > On Mon, Jun 28, 2021 at 7:23 AM Bikash Kaushik > > <kaushikbikas...@gmail.com> wrote: > > > > > > Dear Team, > > > > > > I want to fetch mail using the filter on a sent date. Below code I'm > > > trying, but getting error : > > > > > > <from uri="imaps:// > > > > > imap.gmail.com:993?username={{spring.mail.username}}&password={{spring.mail.password}}&delete=false&searchTerm.toSentDate=${date:now-24h:yyyy-MM-dd}&consumer.delay=10000 > > <http://imap.gmail.com:993?username=%7B%7Bspring.mail.username%7D%7D&password=%7B%7Bspring.mail.password%7D%7D&delete=false&searchTerm.toSentDate=$%7Bdate:now-24h:yyyy-MM-dd%7D&consumer.delay=10000> > > > "/> > > > > > > *Error : Unparseable date.* > > > > > > -- > > > > > > > > > *Regards,* > > > *Bikash Kaushik* > > > > > > > > -- > > Claus Ibsen > > ----------------- > > http://davsclaus.com @davsclaus > > Camel in Action 2: https://www.manning.com/ibsen2 > > > > > -- > > > *Regards,* > *Bikash Kaushik*
-- Claus Ibsen ----------------- http://davsclaus.com @davsclaus Camel in Action 2: https://www.manning.com/ibsen2