remove FileBasedMailbox.get(JS), be sure to set the path
authoradam <adam@megacz.com>
Mon, 22 Jun 2009 00:11:26 +0000 (00:11 +0000)
committeradam <adam@megacz.com>
Mon, 22 Jun 2009 00:11:26 +0000 (00:11 +0000)
darcs-hash:20090622001126-5007d-9b1d3f152201bcc859b94c265acd4b87b2b5e538.gz

src/org/ibex/mail/FileBasedMailbox.java

index 2adf9cd..c965b9a 100644 (file)
@@ -35,13 +35,10 @@ public class FileBasedMailbox extends Mailbox.Default implements MailTree {
     public void         rename(String subdir, MailTree newParent, String newName) { throw new RuntimeException("FIXME not implemented"); }
     public Mailbox      getMailbox() { return this; }
 
     public void         rename(String subdir, MailTree newParent, String newName) { throw new RuntimeException("FIXME not implemented"); }
     public Mailbox      getMailbox() { return this; }
 
-    public JS get(JS key) throws JSExn {
-        return (JS)slash(JSU.toString(key), true);
-    }
-
     // FIXME: should be a File()
     public static synchronized MailTree getFileBasedMailbox(String path, boolean create) {
         if (path.endsWith(".sqlite")) path = path.substring(0, path.length()-".sqlite".length());
     // FIXME: should be a File()
     public static synchronized MailTree getFileBasedMailbox(String path, boolean create) {
         if (path.endsWith(".sqlite")) path = path.substring(0, path.length()-".sqlite".length());
+       path = new File(path).getAbsolutePath().toString();
         try {
             MailTree ret = instances.get(path);
             if (ret == null) {
         try {
             MailTree ret = instances.get(path);
             if (ret == null) {