public static final int GRAYLIST_MINWAIT = 1000 * 60 * 60; // one hour
public static final int GRAYLIST_MAXWAIT = 1000 * 60 * 60 * 24 * 5; // five days
- public static final Graylist graylist =
- new Graylist(Mailbox.STORAGE_ROOT+"/db/graylist.sqlite");
-
- public static final Whitelist whitelist =
- new Whitelist(Mailbox.STORAGE_ROOT+"/db/whitelist.sqlite");
+ public static final Graylist graylist;
+ public static final Whitelist whitelist;
+ static {
+ try {
+ graylist = new Graylist(Mailbox.STORAGE_ROOT+"/db/graylist.sqlite");
+ whitelist = new Whitelist(Mailbox.STORAGE_ROOT+"/db/whitelist.sqlite");
+ } catch (Exception e) {
+ throw new RuntimeException(e);
+ }
+ }
public static final int MAX_MESSAGE_SIZE =
Integer.parseInt(System.getProperty("org.ibex.mail.smtp.maxMessageSize", "-1"));