• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Ron McLeod
  • Paul Clapham
  • Tim Cooke
  • Devaka Cooray
Sheriffs:
  • Liutauras Vilda
  • paul wheaton
  • Rob Spoor
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • Piet Souris
  • Mikalai Zaikin
Bartenders:
  • Carey Brown
  • Roland Mueller

how to delete imap folder with javamail

 
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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 ]
 
If somebody says you look familiar, tell them you are in porn. Or in these tiny ads:
We need your help - Coderanch server fundraiser
https://coderanch.com/wiki/782867/Coderanch-server-fundraiser
reply
    Bookmark Topic Watch Topic
  • New Topic