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>
WhiteListManager
datasource, 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, setUsersRepository
public void init() throws javax.mail.MessagingException
init
in class AbstractSQLWhitelistMatcher
javax.mail.MessagingException
protected String getSQLSectionName()
getSQLSectionName
in class AbstractSQLWhitelistMatcher
AbstractSQLWhitelistMatcher.getSQLSectionName()
protected boolean matchedWhitelist(org.apache.mailet.MailAddress recipientMailAddress, org.apache.mailet.Mail mail) throws javax.mail.MessagingException
matchedWhitelist
in class AbstractSQLWhitelistMatcher
javax.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 AbstractSQLWhitelistMatcher
AbstractSQLWhitelistMatcher.getTableName()
Copyright © 2002-2012 The Apache Software Foundation. All Rights Reserved.