Re: Getting newsgroup list in real-time
Cedric Hyppolite <[email protected]> Wed, 2 Aug 2006 21:20:43 +0200
| Newsgroups | gmane.comp.java.classpath.extensions.discuss |
|---|---|
| Message-ID | <[email protected]> |
When actually using this listener, I found out that receiving the =20
Folder object instead of just its name is better. I keep a mapping of =20=
the news server folder structure with reference to javamail Folder =20
objects.
I modified my copy, but I guess it would be better to modify the CVS =20
repository if you think that this feature is useful for other people.
Thanks,
C=C3=A9dric
Le 5 mai 06 =C3=A0 18:21, Chris Burdess a =C3=A9crit :
> Cedric Hyppolite wrote:
>> Here is a patch for NNTPRootFolder + plus an additional interface =20
>> to be added in gnu.mail.providers.nntp.
>>
>> To use it just cast the 'DefaultFolder' to NNTPRootFolder :
>>
>> ListFolderListener listener =3D new ListFolderListener() =
{
>> public void foundFolder(String folderName) {
>> System.out.println("Found folder :" + =
folderName);
>> } =09
>> };
>> ((NNTPRootFolder) root).list(listener);
>>
>>
>> With this I am able to get 4000 group names in the first minute
>> instead of waiting around 10 minutes to get the full 40000 groups.
>
> I committed this patch, after applying GNU formatting, adding a =20
> licence header and ChangeLog entry, and updating the makefile to =20
> include the new source file.
>
> Thanks
> --=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
>
>
>
>