|
From: | Chris Burdess |
Subject: | Re: [Classpathx-discuss] Getting newsgroup list in real-time |
Date: | Fri, 5 May 2006 17:21:03 +0100 |
Cedric Hyppolite wrote:
Here is a patch for NNTPRootFolder + plus an additional interface to be added in gnu.mail.providers.nntp.To use it just cast the 'DefaultFolder' to NNTPRootFolder : ListFolderListener listener = new ListFolderListener() { public void foundFolder(String folderName) { System.out.println("Found folder :" + folderName); } }; ((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 licence header and ChangeLog entry, and updating the makefile to include the new source file.
Thanks -- 犬 Chris Burdess "They that can give up essential liberty to obtain a little safety deserve neither liberty nor safety." - Benjamin Franklin
[Prev in Thread] | Current Thread | [Next in Thread] |