0 votes
by (210 points)
edited

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
by (72.7k points)
edited

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.

...