|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.apache.mailet.GenericMatcher | +--org.apache.james.transport.matchers.NESSpamCheck
This is based on a sample filter.cfg for a Netscape Mail Server to stop spam.
Field Summary | |
protected org.apache.oro.text.regex.Perl5Matcher |
matcher
|
protected java.lang.Object[][] |
patterns
|
Constructor Summary | |
NESSpamCheck()
|
Method Summary | |
void |
init()
A convenience method which can be overridden so that there's no need to call super.init(config). |
java.util.Collection |
match(Mail mail)
Called by the matcher container to allow the matcher to process a message. |
Methods inherited from class org.apache.mailet.GenericMatcher |
destroy, getCondition, getMailetContext, getMatcherConfig, getMatcherInfo, getMatcherName, init, log, log |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
protected org.apache.oro.text.regex.Perl5Matcher matcher
protected java.lang.Object[][] patterns
Constructor Detail |
public NESSpamCheck()
Method Detail |
public void init()
GenericMatcher
init
in class GenericMatcher
org.apache.mailet.GenericMatcher
MatcherException
- if an exception occurs that interrupts the matcher's normal operationpublic java.util.Collection match(Mail mail) throws javax.mail.MessagingException
GenericMatcher
match
in class GenericMatcher
org.apache.mailet.GenericMatcher
mail
- - the Mail object that contains the MimeMessage and
routing informationjavax.mail.MessagingException
- - if an exception occurs that interferes with the mailet's normal operation
occurred
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |