Using Folder.list() with POP3
1 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   Anonymous
Posted On:   Monday, March 26, 2001 04:36 AM

Folder folder = store.getFolder("INBOX");
folder.open(Folder.READ_ONLY);
System.out.println(">>>>>>>>>>>>>>>>>");
Folder ff[] = folder.list();
for (int t = 0; t < ff.length; t ++) {
System.out.println(ff[t].getFullName());
}

The above code throws the following exception at folder.list():
javax.mail.MessagingException: not a directory.

Can someone help?

Re: Using Folder.list() with POP3

Posted By:   John_Zukowski  
Posted On:   Monday, March 26, 2001 05:56 AM

POP only supports a single folder, the INBOX.
About | Sitemap | Contact