de.malowa.suggestions.cleanup
Class DynamicIPRule
java.lang.Object
de.malowa.suggestions.cleanup.DynamicIPRule
- All Implemented Interfaces:
- CleanUpRule
public class DynamicIPRule
- extends java.lang.Object
- implements CleanUpRule
Deletes database entries from the database from dynamic IP ranges.
If the entries passed the greylist: One day after last mail when they come
from the ranges of T-Com, arcor or alice. Three day after last mail when the
hostname contains 'ppp', 'dsl', 'pool', 'dhcp' or 'ppp'.
If the entries did not pass the greylist: Three hours after if no further
delivery attempt occured from the ISPs mentioned above. One hour if the
hostname contains the strings mentioned above.
- Author:
- Marcel Lohmann
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DynamicIPRule
public DynamicIPRule()
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
- Returns:
- date at which the entry will be removed from database or
null
if date can not be determined - See Also:
CleanUpRule.dateToRemoveNoRetry(de.malowa.greylister.SMTPInformation,
de.malowa.greylister.MailHistory)
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
- Returns:
- date at which the entry will be removed from database or
null
if date can not be determined - See Also:
CleanUpRule.dateToRemovePassedEntry(de.malowa.greylister.SMTPInformation,
de.malowa.greylister.MailHistory)