• 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
  • Tim Cooke
  • Liutauras Vilda
  • Jeanne Boyarsky
Sheriffs:
  • Paul Clapham
  • Rob Spoor
  • Junilu Lacar
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Piet Souris
  • Carey Brown
Bartenders:

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 ]
 
reply
    Bookmark Topic Watch Topic
  • New Topic