Problem when reading an email in multiple sessions from same email server

i have an issue about Aspose Email. In my web application multiple sessions reading email from same email server. after download the each email it will delete the email from the server. two sessions should not download the same email. but because to the delay of delete sessions downloading the same emails duplicatly. any solution/idea for this issue?

This message was posted using Email2Forum by Awais Hafeez.


Thanks for writing to Aspose.Email support team.

We have analyzed the requirement and found that some customized logic should be used to achieve the target. For example, some database can be used where email ids from the server are maintained, and each session may get the id from this database server and mark the email id is PROCESSED etc. In this case each session should first get the email id from database and then download the email from the server. Similarly, session variables can also be used to maintain such lists for avoiding repeated downloading of emails.

Please feel free to write us back if you have any other query in this regard.