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);
}