try to prevent NPEs when deleting messages
[org.ibex.mail.git] / src / org / ibex / mail / Target.java
index 0fea645..346861c 100644 (file)
@@ -3,7 +3,7 @@ import java.io.*;
 import org.ibex.js.*;
 
 /** base class for mail message "destinations" */
-public class Target {
-    public static final Target root = Script.root;
-    public void accept(Message m) throws IOException, MailException { /* FIXME */ }
+public class Target extends JS {
+    public static final Target root = Script.root();
+    public void accept(Message m) throws IOException, MailException { throw new MailException("Target.accept() unimplemented"); }
 }