return null from slash() instead of throwing an exception
[org.ibex.mail.git] / 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(); }