Re: Exception when listing all NNTP folders

Hash9 <[email protected]> Thu, 25 Aug 2005 10:54:37 +0100
Newsgroups gmane.comp.java.classpath.extensions.javamail
Message-ID <[email protected]>
On Thu, 2005-08-25 at 10:03 +0100, Chris Burdess wrote:
> Hash9 wrote:
> > When attempting to list all NNTP folders on news.mozilla.org I get the
> > following Exception.
> >
> > Exception in thread "main" java.lang.StringIndexOutOfBoundsException:
> > String index out of range: -1
> >         at java.lang.String.substring(String.java:1768)
> >         at gnu.inet.nntp.GroupIterator.nextGroup(GroupIterator.java:86)
> >         at gnu.mail.providers.nntp.NNTPRootFolder.list(
> > 		NNTPRootFolder.java:97)
> >         at javax.mail.Folder.list(Folder.java:290)
> > Java Result: 1
> >
> > Any help would be appreciated.
> 
> OK, I see the problem. It will be fixed in the next release.
> 
> For the time being please set the session property mail.nntp.listall to 
> "true", this will avoid the problem.

Thanks :)

Hash9