Quantcast
Channel: ImapX 2
Viewing all articles
Browse latest Browse all 1952

Edited Unassigned: I want emails according to the dates [1916]

$
0
0
Hi Im using IMAPX and this is my code
I cant retrieve the emails from todays date I somehow am getting emails from 23/1/2013
```
string query = "Since" + DateTime.Now.ToString("dd-MMM-yyyy");
ImapX.Message[] messages = client.Folders["INBOX"].Search("ALL",ImapX.Enums.MessageFetchMode.Full,10);
for (int i = messages.Length-1; i > 0; i--)
{
dtView1.Rows.Add(messages[i].Date,messages[i].From,messages[i].Subject, "");
}
len = messages.Length;
lblError.Text = len.ToString();
```
I want the messages to be arranged according to the date and time. I tried using MessageCollection but then it takes a lot of time and I need to retrieve emails only of the past three days from now.
I would be really grateful if you could help me with the same.

Viewing all articles
Browse latest Browse all 1952

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>