Can we fetch the emails from pop3 or imap based on date?

Hi all,

By uisng your porduct can we fetch the emails from pop3 or imap based on date?

if yes please tell me how we can achieve this by using your dll.

Hi,


I am sorry, currently the ImapClient and Pop3Client gets all the messages from a folder using ListMessages() method. But you may apply filter after getting all the messages.

Example:
// Get headers of all messages from imap server
ImapMessageInfoCollection msgInfoColl = client.ListMessages();
foreach (ImapMessageInfo msgInfo in msgInfoColl)
{
if (msgInfo.Date <= someDate)
{
// download using FetchMessage() method
}
}

I have also added two new feature requests in our system for applying the filters. We will notify you when these features will become available. Sorry for the inconvenience.

19427 - ImapClient - Add filter criteria in ListMessages() method
21173 - Pop3Client - Add filter criteria in ListMessages() method

The issues you have found earlier (filed as 19427;21173) have been fixed in [this update ](http://www.aspose.com/community/files/51/.net-components/aspose.network-for-.net/entry288556.aspx).

This message was posted using Notification2Forum from Downloads module by aspose.notifier.