Hi to everyone
(Hope your're able to understand me, with my poor English). Well my problem is: I've written a class that can receive mails from a pop mailserver. But now I want to delete them after I have received them. But how can I handle that? It would be nice if someone could explain me that. (Perhaps a very small problem?!). I looked already the FQA here:
http://www.jguru.com/faq/view.jsp?EID=17035. But I have still the same problem. Thank you very much for helping.
regards
matthias
folder.delete(true); <- give me an exeption like this: javax.mail.MethodNotSupportedException: Expunge not supported
message[i].setFlag(Flags.Flag.DELETED, true); <- if I add this line the messages are still on the server. (If I fetch the mails with mozilla - mail ... the mails are completly removed.) Here is my code: