Search in sources :

Example 1 with ConfigurationManager

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();
}
Also used : SieveException(org.apache.jsieve.exception.SieveException) ConfigurationManager(org.apache.jsieve.ConfigurationManager)

Aggregations

ConfigurationManager (org.apache.jsieve.ConfigurationManager)1 SieveException (org.apache.jsieve.exception.SieveException)1