• Post Reply Bookmark Topic Watch Topic
  • New Topic

how to delete imap folder with javamail  RSS feed

 
Stone Yen
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
I am trying to delete a imapfolder.
after folder.delete()
the system did not throw any exception.
and when i use javamail to list subscribed folder, i cannot see the deleted folder.
It seems I successfully deleted the folder.

However,
if I use outlook to view this imap account.
that "deleted" folder is still there in the folder list.
then i tried the update folder list.
that "deleted" folder is still there in the folder list.
when i selected that should be deleted folder. then outlook told me the folder is not exist on the server.

what should i do??


crying for help....

Best regards,
Stone Yen
 
Stone Yen
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
found why.

before folder.delete(), folder.setSubscribed(false) need to be executed first.
then outlook will know folder is deleted, and remove the deleted folder from the folder list.

Stone
[ May 27, 2004: Message edited by: Stone Yen ]
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!