This project is read-only.

Can We Paas Date With Time in SINCE Query For Fetching Mail?

Topics: Help requests
Sep 1, 2012 at 1:23 PM
Edited Sep 1, 2012 at 1:32 PM
Can We Paas Date With Time in SINCE Query For Fetching Mail?

And how actualy since query runs ?

means suppose i have to fetch mails of 1st sept after 1pm then if i enter Date(1-SEP-2012) in since query then it will fetch all mails from 1st sept from current date's time, Write??

 in query i pass, 

 

// in formatDate = '1-SEP-2012'

 string query = "SINCE " + formatDate + " ALL";
                      // this query variable is defind the last synch_date with Gmail account
            ImapX.MessageCollection emails = client.Folders["INBOX"].Search(query, true);

 

 so plz chk wheter we pass the time also with date in SINCE qurey?

Thanks U rokkxx...! :) Best Luck

 

 

 

 

Coordinator
Sep 1, 2012 at 4:41 PM

It's not possible. Please reffer to the specification:

SINCE <date>
         Messages whose internal date (disregarding time and timezone)
         is within or later than the specified date.