• Post Reply Bookmark Topic Watch Topic
  • New Topic

Message not getting deleted from server + Java Mail

 
Jigar Naik
Ranch Hand
Posts: 762
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

I am reading a mail from my mail box using java mail

When i am setting the Flag of particular mail to SEEN and DELETED,It is not getting deleted from server.

bellow is my code.


do i have to do something extra ???
 
Rob Spoor
Sheriff
Posts: 20820
68
Chrome Eclipse IDE Java Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Have you closed your folder as well? That one takes a boolean parameter that specifies whether or not to expunge all deleted emails. It seems that by default it does not expunge (which is of course the safe way).
 
Jigar Naik
Ranch Hand
Posts: 762
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
yeah true...

i did not close the folder, i got to know from SUN FAQ later on.

thanks a lot..
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!