Quantcast
Channel: Aspose.Email Product Family
Viewing all articles
Browse latest Browse all 1367

MailQueryBuilder issue with date and Imap

$
0
0
Hi,
I'm trying to use MailQueryBuilder with IMAP server. My query is very simple:

Dim builder As MailQueryBuilder = New MailQueryBuilder()
builder.InternalDate.Before(DateTime.Now, DateComparisonType.ByDateTime)
builder.InternalDate.Since(DateTime.Now.AddMinutes(-30, DateComparisonType.ByDateTime)

In the last few days, the query it seemed to work fine. Today I sent a test email and this email it's not returned by the query.

If I check the date in the headers of the message I see this value:

- 29 May 2015 13:54:34 +0000

If i check the header of the message in my webmail I see this value:

- 29 May 2015 13:54:34 +0200


If I fetch the message with the following code I obtain the correct date (29/05/2015 15.54.34):

imap.SelectFolder(ImapFolderInfo.InBox)
Dim messages = imap.ListMessages

Dim msg = imap.FetchMessage(messages(messages.Count - 1).UniqueId)
Dim msgDate = testMsg.Date + testMsg.TimeZoneOffset

So I cannot use the MailQueryBuilder because the query doesn't retrieve all the messages correctly. There are already reports about it? It 'something that you are correcting? I know the for the POP3 the MailQueryBuilder should be fixed. It's so for the IMAP?

Thanks,
Alessandro


Viewing all articles
Browse latest Browse all 1367

Trending Articles