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.
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.