setJavaMailProviderName(
conf.getString("javaMailProviderName"));
setJavaMailFolderName(conf.getString("javaMailFolderName"));
setRecurse(conf.getBoolean("recursesubfolders"));
HierarchicalConfiguration recipientNotFound = conf.configurationAt("recipientnotfound");
setDeferRecipientNotFound(
recipientNotFound.getBoolean("[@defer]"));
setRejectRecipientNotFound(
recipientNotFound.getBoolean("[@reject]"));
setLeaveRecipientNotFound(
recipientNotFound.getBoolean("[@leaveonserver]"));
setMarkRecipientNotFoundSeen(
recipientNotFound.getBoolean("[@markseen]"));
setDefaultDomainName(conf.getString("defaultdomain", "localhost"));
setFetchAll(conf.getBoolean("fetchall"));
HierarchicalConfiguration fetched = conf.configurationAt("fetched");
setLeave(fetched.getBoolean("[@leaveonserver]"));
setMarkSeen(fetched.getBoolean("[@markseen]"));
HierarchicalConfiguration remoterecipient = conf.configurationAt("remoterecipient");
setRejectRemoteRecipient(
remoterecipient.getBoolean("[@reject]"));
setLeaveRemoteRecipient(
remoterecipient.getBoolean("[@leaveonserver]"));
setMarkRemoteRecipientSeen(
remoterecipient.getBoolean("[@markseen]"));
HierarchicalConfiguration blacklist = conf.configurationAt("blacklist");
setBlacklist(conf.getString("blacklist",""));
setRejectBlacklisted(blacklist.getBoolean("[@reject]"));
setLeaveBlacklisted(blacklist.getBoolean("[@leaveonserver]"));
setMarkBlacklistedSeen(blacklist.getBoolean("[@markseen]"));
HierarchicalConfiguration userundefined = conf.configurationAt("userundefined");
setRejectUserUndefined(userundefined.getBoolean("[@reject]"));
setLeaveUserUndefined(
userundefined.getBoolean("[@leaveonserver]"));
setMarkUserUndefinedSeen(
userundefined.getBoolean("[@markseen]"));
HierarchicalConfiguration undeliverable = conf.configurationAt("undeliverable");
setLeaveUndeliverable(
undeliverable.getBoolean("[@leaveonserver]"));
setMarkUndeliverableSeen(
undeliverable.getBoolean("[@markseen]"));
if (conf.getKeys("remotereceivedheader").hasNext())
{
HierarchicalConfiguration remotereceivedheader = conf.configurationAt("remotereceivedheader");
setRemoteReceivedHeaderIndex(
remotereceivedheader.getInt("[@index]"));
setRejectRemoteReceivedHeaderInvalid(
remotereceivedheader.getBoolean("[@reject]"));
setLeaveRemoteReceivedHeaderInvalid(
remotereceivedheader.getBoolean("[@leaveonserver]"));
setMarkRemoteReceivedHeaderInvalidSeen(
remotereceivedheader.getBoolean("[@markseen]"));
}
if (conf.getKeys("maxmessagesize").hasNext())
{
HierarchicalConfiguration maxmessagesize = conf.configurationAt("maxmessagesize");
setMaxMessageSizeLimit(
maxmessagesize.getInt("[@limit]") * 1024);
setRejectMaxMessageSizeExceeded(
maxmessagesize.getBoolean("[@reject]"));
setLeaveMaxMessageSizeExceeded(
maxmessagesize.getBoolean("[@leaveonserver]"));
setMarkMaxMessageSizeExceededSeen(
maxmessagesize.getBoolean("[@markseen]"));
}
if (getLogger().isDebugEnabled())
{
getLogger().info(