How to overcome the MessageRemovedException that we get.
1 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   Meghana_Salunkhe
Posted On:   Wednesday, June 13, 2001 03:03 AM

We are trying to develop the application for removing the messages as soon as they are read,but I get this exception MessageRemovedException,coz more than 1 person could be accessing the same mailbox.I would like to know how this exception can be avoided?Is there any way of locking the inbox?

Re: How to overcome the MessageRemovedException that we get.

Posted By:   sharona_f  
Posted On:   Thursday, August 2, 2001 12:24 AM



Hi ,
you get the exception because in pop3 there is no refresh , when you delete a mail outside the session , and then try to read it , you get MessageRemovedException.



I don't know a way to lock the Inbox.



but , my advice is to try and catch this exception , and in the catch close and open the folder - this way the folder is being refreshed.

good luck.

About | Sitemap | Contact