public class IsInWhiteList extends AbstractSQLWhitelistMatcher
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>
WhiteListManagerdatasource, sqlQueries, theJDBCUtil| Constructor and Description |
|---|
IsInWhiteList() |
| Modifier and Type | Method and Description |
|---|---|
protected String |
getSQLSectionName() |
protected String |
getTableCreateQueryName() |
protected String |
getTableName() |
void |
init() |
protected boolean |
matchedWhitelist(org.apache.mailet.MailAddress recipientMailAddress,
org.apache.mailet.Mail mail) |
getPrimaryName, initSqlQueries, match, setDataSource, setFilesystem, setUsersRepositorypublic void init()
throws javax.mail.MessagingException
init in class AbstractSQLWhitelistMatcherjavax.mail.MessagingExceptionprotected String getSQLSectionName()
getSQLSectionName in class AbstractSQLWhitelistMatcherAbstractSQLWhitelistMatcher.getSQLSectionName()protected boolean matchedWhitelist(org.apache.mailet.MailAddress recipientMailAddress,
org.apache.mailet.Mail mail)
throws javax.mail.MessagingException
matchedWhitelist in class AbstractSQLWhitelistMatcherjavax.mail.MessagingException#matchedWhitelist(org.apache.mailet.MailAddress, org.apache.mailet.Mail)protected String getTableCreateQueryName()
getTableCreateQueryName in class AbstractSQLWhitelistMatcher#getTableCreateQueryName()protected String getTableName()
getTableName in class AbstractSQLWhitelistMatcherAbstractSQLWhitelistMatcher.getTableName()Copyright © 2002-2012 The Apache Software Foundation. All Rights Reserved.