de.malowa.suggestions.white
Class SecretAddressRule

java.lang.Object
  extended by de.malowa.suggestions.white.SecretAddressRule
All Implemented Interfaces:
WhitelistRule

public class SecretAddressRule
extends java.lang.Object
implements WhitelistRule

A rule that accepts every mail if the recipient address starts with the current date in the format 'ddMMyyyy'. For example '31122008news@example.org' when today is December 31th, 2008.

Author:
Marcel Lohmann

Constructor Summary
SecretAddressRule()
          Creates the rule
 
Method Summary
 boolean shouldBeWhitelisted(SMTPInformation info)
          Implement the method to determine whitelisting.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SecretAddressRule

public SecretAddressRule()
Creates the rule

Method Detail

shouldBeWhitelisted

public boolean shouldBeWhitelisted(SMTPInformation info)
Description copied from interface: WhitelistRule
Implement the method to determine whitelisting.

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