public void init(MailetConfig config) throws MessagingException {
super.init(config);
try {
final ConfigurationManager configurationManager = new ConfigurationManager();
final int logLevel;
if (verbose) {
logLevel = CommonsLoggingAdapter.TRACE;
} else if (quiet) {
logLevel = CommonsLoggingAdapter.FATAL;
} else {
logLevel = CommonsLoggingAdapter.WARN;
}
log = new CommonsLoggingAdapter(this, logLevel);
configurationManager.setLog(log);
factory = configurationManager.build();
} catch (SieveConfigurationException e) {
throw new MessagingException("Failed to load standard Sieve configuration.", e);
}
}