[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Classpathx-javamail] GnU mBox
From: |
Countach |
Subject: |
Re: [Classpathx-javamail] GnU mBox |
Date: |
Thu, 17 Feb 2005 14:25:20 +1100 |
User-agent: |
Mozilla Thunderbird 1.0 (Windows/20041206) |
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);
}