public abstract class AbstractRecipientRewriteTableMailet
extends org.apache.mailet.base.GenericMailet
Constructor and Description |
---|
AbstractRecipientRewriteTableMailet() |
Modifier and Type | Method and Description |
---|---|
protected Collection<org.apache.mailet.MailAddress> |
handleMappings(Collection<String> mappings,
org.apache.mailet.MailAddress sender,
org.apache.mailet.MailAddress recipient,
javax.mail.internet.MimeMessage message)
Handle the given mappings to map the original recipient to the right one
|
abstract Collection<org.apache.mailet.MailAddress> |
processMail(org.apache.mailet.MailAddress sender,
org.apache.mailet.MailAddress recipient,
javax.mail.internet.MimeMessage message)
Process the mail
|
void |
service(org.apache.mailet.Mail mail) |
void |
setDomainList(DomainList domainList) |
public void setDomainList(DomainList domainList)
public void service(org.apache.mailet.Mail mail) throws javax.mail.MessagingException
service
in interface org.apache.mailet.Mailet
service
in class org.apache.mailet.base.GenericMailet
javax.mail.MessagingException
GenericMailet.service(org.apache.mailet.Mail)
protected Collection<org.apache.mailet.MailAddress> handleMappings(Collection<String> mappings, org.apache.mailet.MailAddress sender, org.apache.mailet.MailAddress recipient, javax.mail.internet.MimeMessage message) throws javax.mail.MessagingException
mappings
- a collection of mappings for the given recipientsender
- the sender of the mailrecipient
- the original recipient of the emailmessage
- the mail messagejavax.mail.MessagingException
public abstract Collection<org.apache.mailet.MailAddress> processMail(org.apache.mailet.MailAddress sender, org.apache.mailet.MailAddress recipient, javax.mail.internet.MimeMessage message) throws javax.mail.MessagingException
sender
- the sender of the mailrecipient
- the recipient of the mailmessage
- the mail messagejavax.mail.MessagingException
Copyright © 2002-2012 The Apache Software Foundation. All Rights Reserved.