Hi

You can see the patterns camel-mail uses for date and time at
https://github.com/apache/camel/blob/main/components/camel-mail/src/main/java/org/apache/camel/component/mail/MailConverters.java#L50

On Mon, Jun 28, 2021 at 10:10 AM Claus Ibsen <claus.ib...@gmail.com> wrote:
>
> 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}}&amp;password={{spring.mail.password}}&amp;delete=false&amp;searchTerm.toSentDate=${date:now-24h:yyyy-MM-dd}&amp;consumer.delay=10000
> > > <http://imap.gmail.com:993?username=%7B%7Bspring.mail.username%7D%7D&amp;password=%7B%7Bspring.mail.password%7D%7D&amp;delete=false&amp;searchTerm.toSentDate=$%7Bdate:now-24h:yyyy-MM-dd%7D&amp;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



-- 
Claus Ibsen
-----------------
http://davsclaus.com @davsclaus
Camel in Action 2: https://www.manning.com/ibsen2

Reply via email to