TLTEO
asked on
JavaMail delete message on server
HI
I am trying to delete a message, first by setting the
messages[i].setFlag(Flags. Flag.DELET ED, true);
then use folder.expunge();
But my pop3 server doe snot support this method.
Is there a method to delete a message on a mail server after reading it, using JavaMail API??
I am trying to delete a message, first by setting the
messages[i].setFlag(Flags.
then use folder.expunge();
But my pop3 server doe snot support this method.
Is there a method to delete a message on a mail server after reading it, using JavaMail API??
I think u should close the folder using folder.close(true) - the flag indicating u would like to reflect the deletion on the server
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
tks so simple and so good. apprec it. cheers