use of org.apache.jsieve.ConfigurationManager in project zm-mailbox by Zimbra.
the class RuleManager method createSieveFactory.
private static SieveFactory createSieveFactory() {
// Initialize custom jSieve extensions
ConfigurationManager mgr;
try {
mgr = new ZimbraConfigurationManager();
} catch (SieveException e) {
ZimbraLog.filter.error("Unable to initialize mail filtering extensions.", e);
return null;
}
Map<String, String> commandMap = mgr.getCommandMap();
commandMap.putAll(JsieveConfigMapHandler.getCommandMap());
Map<String, String> testMap = mgr.getTestMap();
testMap.putAll(JsieveConfigMapHandler.getTestMap());
return mgr.build();
}
Aggregations