// 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 {
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);
}