add whitelisting code
[org.ibex.mail.git] / src / org / ibex / mail / target / Script.java
index 46c58f3..248700e 100644 (file)
@@ -134,6 +134,7 @@ public class Script extends JS.Obj implements Target {
             case "mail.my.prefs": try {
                     return new org.ibex.js.Directory(new File("/etc/org.ibex.mail.prefs"));
             } catch (IOException e) { throw new JSExn(e.toString()); }
+            case "mail.whitelist": return JSReflection.wrap(org.ibex.mail.protocol.SMTP.whitelist);
             case "mail.my.mailbox":
                 FileBasedMailbox root = FileBasedMailbox.getFileBasedMailbox(Mailbox.STORAGE_ROOT, true);
                 return root.slash("user", true).slash("megacz", true);