class SpamAssassin extends GenericMailet {

    @Override
    public void init() throws MessagingException {
        spamdHost = Optional.ofNullable(getInitParameter(SPAMD_HOST))
            .filter(Predicate.not(Strings::isNullOrEmpty))
            .orElse(DEFAULT_HOST);

        spamdPort = MailetUtil.getInitParameterAsStrictlyPositiveInteger(getInitParameter(SPAMD_PORT), DEFAULT_PORT);
        Port.assertValid(spamdPort);
    }

    @Inject public  SpamAssassin(MetricFactory metricFactory, UsersRepository usersRepository);

}