|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface DelayRule
Is used to determine the delay time in minutes a mail server has to wait
before passing the greylisting. The delay time of (all) GreylistRules is
added. The resulting delay is written to the greylist database.
For runtime performance a DelayRule should calculate the delay time in memory
without retrieving data from external sources. Therefore the necessary data
should be read while initializing the rule. The method update()
will
be called regularly to reread this data. The in memory calculation is not
mandantory.
See RuleEvaluator
on how to integrate your own rules
to the program. See de.malowa.suggestions.delay
for working and
usable examples.
Method Summary | |
---|---|
int |
getDelayTime(SMTPInformation mail)
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. |
Method Detail |
---|
int getDelayTime(SMTPInformation mail)
mail
- SMTP information to utilize
int getDelayTimeWithHistory(SMTPInformation info, MailHistory history)
getDelayTime(SMTPInformation)
without considering history.
info
- SMTP information to utilizehistory
- the history of past delivery attempts to utilize
void update()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |