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.

asked 10 Aug '11, 13:20

nipanesanjay's gravatar image

nipanesanjay
171
accept rate: 0%


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.

link

answered 10 Aug '11, 14:23

Lukas%20Matyska's gravatar image

Lukas Matyska ♦♦
90117
accept rate: 28%

edited 10 Aug '11, 14:24

Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Tags:

×76

Asked: 10 Aug '11, 13:20

Seen: 209 times

Last updated: 10 Aug '11, 14:24