ImapSearchParameter.Arrived() How it works?

0 votes
asked Aug 10, 2011 by nipanesanjay (210 points)
edited Aug 10, 2011

Hi,

We are using ImapSearchParameter.Arrived(userAccountToExtract.DateUpdated, userAccountToExtract.BacklogEmailStartDatetime) for fetching emails. We are saving userAccountToExtract.BacklogEmailStartDatetime as local time before invoking this call. The current value for this date is "2011-07-05 11:57:48" and we want to fetch emails before this date and starting from "2010-02-10 14:53:13". But when we invoked this Arrived call, it also retrieving emails received after this date like "2011-07-05 11:58:48" and "2011-07-05 11:59:48".

Please suggest.

Applies to: Rebex Secure Mail

1 Answer

0 votes
answered Aug 10, 2011 by Lukas Matyska (59,010 points)
edited Aug 10, 2011

The IMAP protocol defines Arrived search for dates only (not times). This is what RFC says (IMAP command for Arrived search is ON):

      ON <date>
         Messages whose internal date (disregarding time and timezone)
         is within the specified date.

I suggest you to invoke Arrived search and additionally filter the result by times required.

...