de.malowa.suggestions.pass
Class InsaneMailserverRule

java.lang.Object
  extended by de.malowa.suggestions.pass.InsaneMailserverRule
All Implemented Interfaces:
PassRule

public class InsaneMailserverRule
extends java.lang.Object
implements PassRule

Lets pass mails if this is minimum the 6th attempt and the attempt is half an hour after first attempt.


Constructor Summary
InsaneMailserverRule()
           
 
Method Summary
 boolean shouldBeWhitelisted(SMTPInformation info, MailHistory history)
          Implementation must return true if the current delivery attempt should bypass the greylist delay.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

InsaneMailserverRule

public InsaneMailserverRule()
Method Detail

shouldBeWhitelisted

public boolean shouldBeWhitelisted(SMTPInformation info,
                                   MailHistory history)
Description copied from interface: PassRule
Implementation must return true if the current delivery attempt should bypass the greylist delay. One can use the SMTP session information and the past history for making a decision.

Specified by:
shouldBeWhitelisted in interface PassRule
Parameters:
info - information of current SMTP session
history - history of past SMTP sessions
Returns:
true if the attempt should bypass greylisting
See Also:
PassRule.shouldBeWhitelisted(de.malowa.greylister.SMTPInformation, de.malowa.greylister.MailHistory)