|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectde.malowa.suggestions.delay.SenderSpecificRule
public class SenderSpecificRule
Prefers mails coming from "good" top level domains and harms mails form "bad" top level domains. The top level domain is extracted from the sender's hostname.
Constructor Summary | |
---|---|
SenderSpecificRule()
Creates the rule |
Method Summary | |
---|---|
int |
getDelayTime(SMTPInformation info)
Returns the delay in minutes for the given SMTP mail header. |
int |
getDelayTimeWithHistory(SMTPInformation info,
MailHistory history)
Returns the delay in minutes for the given SMTP mail header. |
void |
update()
Will be called regularly. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public SenderSpecificRule()
Method Detail |
---|
public int getDelayTime(SMTPInformation info)
DelayRule
getDelayTime
in interface DelayRule
info
- SMTP information to utilize
DelayRule.getDelayTime(de.malowa.greylister.SMTPInformation)
public int getDelayTimeWithHistory(SMTPInformation info, MailHistory history)
DelayRule
DelayRule.getDelayTime(SMTPInformation)
without considering history.
getDelayTimeWithHistory
in interface DelayRule
info
- SMTP information to utilizehistory
- the history of past delivery attempts to utilize
DelayRule.getDelayTimeWithHistory(de.malowa.greylister.SMTPInformation,
de.malowa.greylister.MailHistory)
public void update()
DelayRule
update
in interface DelayRule
DelayRule.update()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |