Re: GnU mBox

Countach <[email protected]>
Newsgroups gmane.comp.java.classpath.extensions.javamail
Message-ID <[email protected]>
Hi,

I think that code I gave you has a bug. In 
MboxFolder.canonicalNameToLocal it first replaces "/" with the local 
separator, and then compares to "//". This code can never execute.

The lines should be swapped....

Like this.....
        if (name.startsWith("//"))
          {
            rtn = rtn.substring(2);
          }
        String rtn = name.replace('/', File.separatorChar);

Not this....

        String rtn = name.replace('/', File.separatorChar);
        if (name.startsWith("//"))
          {
            rtn = rtn.substring(2);
          }
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.