Gnu mail bug

Countach <[email protected]>
Newsgroups gmane.comp.java.classpath.extensions.javamail
Message-ID <[email protected]>
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.
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.