org.apache.james.transport.matchers
Class IsInWhiteList

java.lang.Object
  extended by org.apache.mailet.base.GenericMatcher
      extended by org.apache.james.transport.matchers.IsInWhiteList
All Implemented Interfaces:
org.apache.mailet.Matcher, org.apache.mailet.MatcherConfig

public class IsInWhiteList
extends org.apache.mailet.base.GenericMatcher

Matches recipients having the mail sender in the recipient's private whitelist .

The recipient name is always converted to its primary name (handling aliases).

Configuration string: The database name containing the white list table.

Example:


    <mailet match="IsInWhiteList=db://maildb" class="ToProcessor">
       <processor> transport </processor>
    </mailet>
 

Since:
2.3.0
Version:
SVN $Revision: $ $Date: $
See Also:
WhiteListManager

Constructor Summary
IsInWhiteList()
           
 
Method Summary
 void init()
           
 java.util.Collection match(org.apache.mailet.Mail mail)
           
 
Methods inherited from class org.apache.mailet.base.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
 

Constructor Detail

IsInWhiteList

public IsInWhiteList()
Method Detail

init

public void init()
          throws javax.mail.MessagingException
Overrides:
init in class org.apache.mailet.base.GenericMatcher
Throws:
javax.mail.MessagingException
See Also:
org.apache.mailet.GenericMailet#init()

match

public java.util.Collection match(org.apache.mailet.Mail mail)
                           throws javax.mail.MessagingException
Specified by:
match in interface org.apache.mailet.Matcher
Specified by:
match in class org.apache.mailet.base.GenericMatcher
Throws:
javax.mail.MessagingException
See Also:
org.apache.mailet.GenericMatcher#match(Mail)


Copyright ? 2002-2009 The Apache Software Foundation. All Rights Reserved.