classpathx-javamail
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Classpathx-javamail] how to get a list of available groups


From: Ron Smits
Subject: Re: [Classpathx-javamail] how to get a list of available groups
Date: Wed, 04 Feb 2004 19:55:25 +0100

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





reply via email to

[Prev in Thread] Current Thread [Next in Thread]