I want to delete some messages in my mailbox.
When a message is read the DELETED flag was set as,
message.setFlag(Flags.Flag.DELETED,true);
folder.Expunge();
As per the documentation,folder.Expunge() method will look for all the messages in the folder whose DELETED flag is set.
But with the above code Exception was thrown as
method folder.Expunge() not supported by the implementation.
How should I delete the messages I want,or get through this problem?
Thanks
Vikas