Re: Getting newsgroup list in real-time

Cedric Hyppolite <[email protected]> Fri, 5 May 2006 14:24:49 +0200
Newsgroups gmane.comp.java.classpath.extensions.discuss
Message-ID <[email protected]>
Le 5 mai 06 =C3=A0 14:12, Chris Burdess a =C3=A9crit :

> Cedric Hyppolite wrote:
>> I am trying to list all newsgroup available from a server. I found =20=

>> that the API
>> does not allow the listing of groups before the complete list is =20
>> retrieved.
>>
>> There is no getFolders() method on the NNTPRootFolder that would =20
>> allow the listing of currently
>> known newgroups. For Mail the listing of folder is not that long, =20
>> but for NewsGroups it takes a while.
>>
>> I am missing something obvious ?
>>
>> How could I get this information? Adding a ListListener parameter =20
>> to the list() method, or a getFolders() method which could return =20
>> the result of the current/last listing.
>
> Does listSubscribed do what you want?

I don't think so. listSubscribed is for listing folders/newsgroup =20
that we know exists (from newsrc file) from a previous listing or =20
session.

What I want is to get the list of newsgroup in real time so the user =20
does not wait 10 minutes before being able to browse the list of =20
groups available on a server,
and starting making up a list of groups to subscribe to.

Cedric


> --=20
> =E7=8A=AC Chris Burdess
>   "They that can give up essential liberty to obtain a little safety
>   deserve neither liberty nor safety." - Benjamin Franklin
>
>
>
>