how can i create a new folder
2 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   Elena_Santander
Posted On:   Monday, September 9, 2002 12:56 AM

Hi,

I want to save de messages in a new folder which name is teh id of the user, But I canĀ“t create tehe folder correctly. Anyone knows where I find information??


Regards E.

Re: how can i create a new folder

Posted By:   gurpreet_ahluwalia  
Posted On:   Wednesday, September 18, 2002 05:37 AM

hi elena


u mean creating folders with javamail api's


or


creating folder on your system....




with java mail api....





Folder folder=store.getFolder("anynamehere");



if(!folder.exists())


{


folder.create(Folder.HOLDS_MESSAGES);


}



u can create folders only when using IMAP and not in POP3





or creating folder on ur system....




File dir=new File("c:/anynamehere/");


dir.mkdirs();





is this what u wanted


BYEE

Re: how can i create a new folder

Posted By:   John_Zukowski  
Posted On:   Monday, September 9, 2002 09:43 PM

POP doesn't support folders.
About | Sitemap | Contact