de.malowa.rules.cleanup
Class DefaultCleanUpRule
java.lang.Object
de.malowa.rules.cleanup.DefaultCleanUpRule
- All Implemented Interfaces:
- CleanUpRule
public final class DefaultCleanUpRule
- extends java.lang.Object
- implements CleanUpRule
This concrete implementation of the interface CleanUpRule defines the
standard cleanup times based on the whitepaper by Evan Harris
- Author:
- Marcel Lohmann
- See Also:
- "http://projects.puremagic.com/greylisting/whitepaper.html"
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DefaultCleanUpRule
public DefaultCleanUpRule()
dateToRemoveNoRetry
public java.util.Date dateToRemoveNoRetry(SMTPInformation info,
MailHistory history)
- Description copied from interface:
CleanUpRule
- Must return a date when the current greylist entry should be removed from
list. Date is used for entries that did not pass greylisting; another
successful delivery attempt has to occur before that date. Has to return
null
when another rule should be used to specify date.
- Specified by:
dateToRemoveNoRetry
in interface CleanUpRule
- Parameters:
info
- will be ignoredhistory
- will be ignored
- Returns:
- the date 4 hours in the future
dateToRemovePassedEntry
public java.util.Date dateToRemovePassedEntry(SMTPInformation info,
MailHistory history)
- Description copied from interface:
CleanUpRule
- Must return a date when the current greylist entry should be removed from
list. Date is used for entries that passed greylisting but are considered
"ancient". Has to return
null
when another rule should be
used to specify date.
- Specified by:
dateToRemovePassedEntry
in interface CleanUpRule
- Parameters:
info
- will be ignoredhistory
- will be ignored
- Returns:
- the date 36 days in the future