I'm using the ActiveUp.Net.Mail to connect gmail and get mails from Inbox . I want to get mails after a specific date , hour and minute . I tryed for a specific date and it worked succesfully but when I added a time on my query it was stopped This is my code
private MessageCollection GetMailsSinceDate(string mailBox , DateTime dt)
{
Mailbox mails = Client.SelectMailbox(mailBox);
MessageCollection messages = mails.SearchParse("SENTSINCE 02-Dec-2014");
return messages;
}
This code works ,but if I use :
MessageCollection messages = mails.SearchParse("SENTSINCE 02-Dec-2014 13:07:29");
This exception appears : Command "search SENTSINCE 02-Dec-2014 13:07:29" failed : 141202032754582 BAD Could not parse command
Can anyone help me please ! Thanks