Re: how to get a list of available groups

Ron Smits <[email protected]>
Newsgroups gmane.comp.java.classpath.extensions.javamail
Message-ID <[email protected]>
On Wed, 2004-02-04 at 18:52, Chris Burdess wrote:
> Ron Smits wrote:

>  From the documentation:
> 
> mail.nntp.listall
> If set to true, calling Folder.list on the root folder will
> actually attempt to list all newsgroups. Since there are upwards of 
> 30,000
> newsgroups on Usenet, this option should be used with caution. 
> Otherwise a
> small subset of default newsgroups are returned.


Yes I found that and played with it and still did not get anything I
wanted so I started digging in NNTPStore and I know I am stupid (cover
my ass remark) but.....

The function called from NNTPRootFolder to test the setting of this is
ns.isListAll(). this calls the function propertyIsTrue which calls the
function getProperty. This function (we all still here) will call
session.getProperty ("mail.nntp."+key). But the key from isListAll is
the fully qualified property. Which makes the property we are trying to
get mail.nntp.mail.nntp.listall which fails so we try
mail.mail.nntp.listall which fails also. So the function will return
null. From here we cascade back telling everybody we don't have that
key.

am I nutz? I will change isListAll to just use the key "listall". see if
that helps

Ron
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.