how to get a list of available groups
Ron Smits <[email protected]>
| Newsgroups | gmane.comp.java.classpath.extensions.javamail |
|---|---|
| Message-ID | <[email protected]> |
goodday
I am currently playing with the nntp provider. After making a connection
and selecting the defaultFolder there seems to be no way to get a list
of all the groups available on the server.
Running the following
Folder root= store.getDefaultFolder();
root.open(Folder.READ_ONLY);
Folder t[] = root.list();
System.out.println ("found " + t.length + " folders");
the output will show:
nntp: <200 news.xs4all.nl NNRP Service Ready (posting ok).
nntp: >LIST SUBSCRIPTIONS
nntp: <215 Subscriptions in form "group"
nntp: <.
found 0 folders
According to the code list should have thrown an exception. But that
never arrived.
any ideas?