|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectde.malowa.greylister.trap.SpamTrap
de.malowa.greylister.trap.ConcreteSpamTrap
public final class ConcreteSpamTrap
Concrete implementation of a spam trap. If an email arrives for a special
recipient known as a spam trap, the mail will be redirected to an other
recipient. The mail can then be used for further analysis.
The spam trap addresses will be read from the database defined in
jgreylister.properties
:
useSpamtrap=false spamtrap.dbms=hsqldb spamtrap.server=localhost spamtrap.database=provider spamtrap.user=sa spamtrap.token=
Constructor Summary | |
---|---|
ConcreteSpamTrap(java.sql.Connection connection)
Constructor of the concrete spam trap. |
Method Summary | |
---|---|
void |
cleanUp()
Clears the internal cache of spamming clients. |
java.lang.String |
getAction(java.lang.String recipient)
Retrieves the final spam recipient for the given spam trap. |
boolean |
isSpamLover(java.lang.String recipient)
Checks the mail address für being a spam trap |
boolean |
sentSpamLately(SMTPInformation recipient)
Looks up the sending IP if it is already known for spamming. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ConcreteSpamTrap(java.sql.Connection connection)
connection
- to the spam trap databaseMethod Detail |
---|
public boolean sentSpamLately(SMTPInformation recipient)
SpamCount
.
sentSpamLately
in class SpamTrap
recipient
- information of SMTP dialog
public void cleanUp()
cleanUp
in class SpamTrap
public boolean isSpamLover(java.lang.String recipient)
isSpamLover
in class SpamTrap
recipient
- email address to check
public java.lang.String getAction(java.lang.String recipient)
getAction
in class SpamTrap
recipient
- email address of a spam trap
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |