classpathx-javamail
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Classpathx-javamail] Gnu mail bug


From: Countach
Subject: [Classpathx-javamail] Gnu mail bug
Date: Mon, 21 Feb 2005 10:32:15 +1100
User-agent: Mozilla Thunderbird 1.0 (Windows/20041206)


Hi,

You seem to have changed my patch resulting in a bug.

My patch said:

 protected MboxFolder(MboxStore store, String name, boolean inbox)
 {
   super(store);
   this.name = name;
   if (0 < name.length() && name.charAt(0) == '/') {
     file = new File(canonicalNameToLocal(name));
   } else {
     file = new File(store.getMailRootDir(), canonicalNameToLocal(name));
   }


But the cvs code seems to say:

 protected MboxFolder(MboxStore store, String name, boolean inbox)
 {
   super(store);
   this.name = name;
   file = new File(store.getMailRootDir(), canonicalNameToLocal(name));

The trouble is, this only allows for relative names. My original patch checked for the leading '/' so that you could use relative or absolute paths.





reply via email to

[Prev in Thread] Current Thread [Next in Thread]