|
From: | Ron Smits |
Subject: | [Classpathx-javamail] how to get a list of available groups |
Date: | Wed, 04 Feb 2004 17:38:48 +0100 |
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?
[Prev in Thread] | Current Thread | [Next in Thread] |