ready for prime-time
[org.ibex.mail.git] / src / org / ibex / mail / target / Script.java
index 4e06040..5564ba6 100644 (file)
@@ -55,14 +55,17 @@ public class Script extends Target {
     // FIXME: this should extend org.ibex.core.Ibex
     public static class ScriptEnv extends JS {
 
-        private static PropertyFile prefs;
+        private static PropertyFile prefs = null;
+            /*
         static {
             try {
+                // FIXME
                 prefs = new PropertyFile(new File("/etc/org.ibex.mail.properties"));
             } catch (IOException e) {
                 Log.error(ScriptEnv.class, e);
             }
         }
+            */
 
         /** lets us put multi-level get/put/call keys all in the same method */
         private class Sub extends JS {
@@ -92,7 +95,7 @@ public class Script extends Target {
             if (name.equals("mail")) { return getSub("mail"); }
             if (name.equals("mail.my")) { return getSub("mail.my"); }
             if (name.equals("mail.my.prefs")) { return prefs; }
-            if (name.equals("mail.my.mailbox")) { return FileSystem.Mailbox.getForUser("megacz"); }
+            //if (name.equals("mail.my.mailbox")) { return Mailbox.getForUser("megacz"); }
             return super.get(name);
         }