This project is read-only.

Date difference in received time and date of message from imapx

Feb 18, 2014 at 3:15 AM
I am using the same code from your Vb.Net code repository to get the messages in inbox like

sFolder = iClient.Folders.Inbox
            _messages = Enumerable.ToList(Of Message)(Enumerable.OrderByDescending(Of Message, Nullable(Of DateTime))(sFolder.Search("ALL", -1, -1), Function(m As Message)
                                                                                                                                                         Return m.Date
                                                                                                                                                     End Function))
and I am iterating with _messages using

For Each m In _messages


While accessing it is returing some date not exactly displyed in inbox

why ??
Feb 19, 2014 at 7:36 AM
Hi sureshbarathan,

I think the problem lies in the time zones. They will be dropped parsing the date, which causes the time difference. I'll make an update to fix this.

Best regards,