de.malowa.rules.black
Interface BlacklistRule

All Known Implementing Classes:
AKSTCspammerRule, BadCocoNutsRule, DWspammerRule

public interface BlacklistRule

This interface can be used to define your own rules for blocking delivery attempts. See RuleEvaluator how your own rules can be added to the program. See de.malowa.suggestions.black for full functional and usable examples.

Warning: Use this kind of rule rarely! You have to be absolutely sure that it only triggers for known spammers. The mail will be blocked and the delivering server will not try again. If you are unsure, DO NOT BLOCK the mail.

Author:
Marcel Lohmann

Method Summary
 boolean shouldBeBlacklisted(SMTPInformation info)
          Implement the method to determine blacklisting.
 

Method Detail

shouldBeBlacklisted

boolean shouldBeBlacklisted(SMTPInformation info)
Implement the method to determine blacklisting.

Parameters:
info - can be used for decision.
Returns:
true if the mail should be blocked