Hi,
Hi Alessandro,
TimeZone localZone = TimeZone.CurrentTimeZone;<o:p></o:p>
TimeSpan ts = localZone.GetUtcOffset(DateTime.Now);
MailQueryBuilder builder = new MailQueryBuilder();
DateTime before = DateTime.Now - ts;
DateTime since = DateTime.Now.AddMinutes(-30) - ts;
builder.InternalDate.Before(before, DateComparisonType.ByDateTime);
builder.InternalDate.Since(since, DateComparisonType.ByDateTime);
ImapClient client = new ImapClient("imap.gmail.com", 993, "username", "password");
client.SecurityOptions = SecurityOptions.Auto;
client.SelectFolder("Inbox");
ImapMessageInfoCollection messages = client.ListMessages(builder.GetQuery());
foreach(ImapMessageInfo info in messages)
{
MailMessage mail = client.FetchMessage(info.UniqueId);
Console.WriteLine(mail.Subject);
}
Hello,
Hi Alessandro,
The issues you have found earlier (filed as EMAILNET-34809) have been fixed in this update.
This message was posted using Notification2Forum from Downloads module by Aspose Notifier.