| |
|
| org.apache.james.transport.mailets.GenericListserv org.apache.james.transport.mailets.JDBCListserv
JDBCListserv | public class JDBCListserv extends GenericListserv (Code) | | Rewrites recipient addresses based on a database table. The connection
is configured by passing the URL to a conn definition. You need to set
the table name to check (or view) along with the source and target columns
to use. For example,
<mailet match="All" class="JDBCListserv">
<data_source>maildb</datasource>
<listserv_id>mylistserv</listserv_id>
<listserv_table>source_email_address</listserv_table>
<members_table>target_email_address</members_table>
</mailet>
This mailet will cache the settings available when first initialized. If you wish
it to reload for each message, add the init parameter
<cache_settings>false</cache_settings>
|
attachmentsAllowed | protected boolean attachmentsAllowed(Code) | | |
cacheSettings | protected boolean cacheSettings(Code) | | |
datasource | protected DataSourceComponent datasource(Code) | | |
membersOnly | protected boolean membersOnly(Code) | | |
replyToList | protected boolean replyToList(Code) | | |
getListservAddress | public MailAddress getListservAddress() throws MessagingException(Code) | | The email address that this listserv processes on. If returns null, will use the
recipient of the message, which hopefully will be the correct email address assuming
the matcher was properly specified.
|
getMailetInfo | public String getMailetInfo()(Code) | | Return a string describing this mailet.
a string describing this mailet |
getMembers | public Collection getMembers() throws MessagingException(Code) | | Returns a Collection of MailAddress objects of members to receive this email
|
getSubjectPrefix | public String getSubjectPrefix() throws MessagingException(Code) | | An optional subject prefix which will be surrounded by [].
|
init | public void init() throws MessagingException(Code) | | Initialize the mailet
|
isAttachmentsAllowed | public boolean isAttachmentsAllowed() throws MessagingException(Code) | | Returns whether this listserv allow attachments
|
isMembersOnly | public boolean isMembersOnly() throws MessagingException(Code) | | Returns whether this list should restrict to senders only
|
isReplyToList | public boolean isReplyToList() throws MessagingException(Code) | | Returns whether listserv should add reply-to header
whether listserv should add a reply-to header |
loadSettings | protected void loadSettings() throws MessagingException(Code) | | Loads the configuration settings for this mailet from the database.
throws: MessagingException - if a problem occurs while accessing the database orthe required parameters are not present |
|
|
|