return null from slash() instead of throwing an exception
authoradam <adam@megacz.com>
Mon, 16 Aug 2004 01:59:12 +0000 (01:59 +0000)
committeradam <adam@megacz.com>
Mon, 16 Aug 2004 01:59:12 +0000 (01:59 +0000)
darcs-hash:20040816015912-5007d-d450c69b8efce51e744b2509ac4186335a978804.gz

src/org/ibex/mail/target/Mailbox.java

index b3ce1ff..48e7a45 100644 (file)
@@ -53,7 +53,7 @@ public abstract class Mailbox extends Target {
         public int count(Query q) { int count = 0; for(Mailbox.Iterator it = iterator(q); it.next();) count++; return count; }
         public void rename(String newName) { throw new MailException("not supported"); }
         public void  destroy(boolean recursive) { throw new MailException("not supported"); }
-        public Mailbox slash(String name, boolean create) { throw new MailException("not supported"); }
+        public Mailbox slash(String name, boolean create) { return null; }
         public String[] children() { return new String[] { }; }
         public void move(Query q, Mailbox dest) {
             for(Mailbox.Iterator it = iterator(q);it.next();) { dest.add(it.cur()); it.delete(); }