de.malowa.suggestions.black
Class DWspammerRule

java.lang.Object
  extended by de.malowa.suggestions.black.DWspammerRule
All Implemented Interfaces:
BlacklistRule

public class DWspammerRule
extends java.lang.Object
implements BlacklistRule

Blocks all mails where the sender address starts with the string 'dw' and where the domain part (without top level domain) follows this initial string. This is a common indication for real spammers.

Author:
Marcel Lohmann

Constructor Summary
DWspammerRule()
           
 
Method Summary
 boolean shouldBeBlacklisted(SMTPInformation info)
          Implement the method to determine blacklisting.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DWspammerRule

public DWspammerRule()
Method Detail

shouldBeBlacklisted

public boolean shouldBeBlacklisted(SMTPInformation info)
Description copied from interface: BlacklistRule
Implement the method to determine blacklisting.

Specified by:
shouldBeBlacklisted in interface BlacklistRule
Parameters:
info - can be used for decision.
Returns:
true if the mail should be blocked
See Also:
BlacklistRule.shouldBeBlacklisted(de.malowa.greylister.SMTPInformation)