Is it possible to read only new message and store the message details to database.
Hi Mukesh,
Thank you for contacting Aspose support team.
Aspoe.Email API’s ImapClient provides the capability to open a connection to the server and wait for arrival of an email message. This allows to avoid polling the server again and again for any incoming email. Please give a try to the following sample code and let us know the feedback.
Aspose.Email does not support connecting to database, hence you may develop your own logic to save it to database like saving the metadata in different fields and saving complete message in the blob field. Please have a look on the following article to have a general idea of saving message to database.
Please feel free to write us back if you have any other query in this regard.