org.apache.james.transport.mailets
Class UsersRepositoryAliasingForwarding
java.lang.Object
org.apache.mailet.base.GenericMailet
org.apache.james.transport.mailets.AbstractVirtualUserTableMailet
org.apache.james.transport.mailets.UsersRepositoryAliasingForwarding
- All Implemented Interfaces:
- org.apache.mailet.Mailet, org.apache.mailet.MailetConfig
public class UsersRepositoryAliasingForwarding
- extends AbstractVirtualUserTableMailet
Receives a Mail from JamesSpoolManager and takes care of delivery of the
message to local inboxes.
Available configurations are:
true: specify wether the user aliases should
be looked up or not. Default is false.
true: enable the forwarding. Default to
false.
LocalAdmins: specific users repository
name. Default to empty. If empty does lookup the default userRepository.
Method Summary |
java.lang.String |
getMailetInfo()
Return a string describing this mailet. |
void |
init()
|
java.util.Collection |
processMail(org.apache.mailet.MailAddress sender,
org.apache.mailet.MailAddress recipient,
javax.mail.internet.MimeMessage message)
Return null when the mail should be GHOSTed, the username string when it
should be changed due to the ignoreUser configuration. |
Methods inherited from class org.apache.mailet.base.GenericMailet |
arrayToString, checkInitParameters, destroy, getInitParameter, getInitParameter, getInitParameter, getInitParameterNames, getMailetConfig, getMailetContext, getMailetName, init, log, log |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
UsersRepositoryAliasingForwarding
public UsersRepositoryAliasingForwarding()
getMailetInfo
public java.lang.String getMailetInfo()
- Return a string describing this mailet.
- Specified by:
getMailetInfo
in interface org.apache.mailet.Mailet
- Overrides:
getMailetInfo
in class org.apache.mailet.base.GenericMailet
- Returns:
- a string describing this mailet
processMail
public java.util.Collection processMail(org.apache.mailet.MailAddress sender,
org.apache.mailet.MailAddress recipient,
javax.mail.internet.MimeMessage message)
throws javax.mail.MessagingException
- Return null when the mail should be GHOSTed, the username string when it
should be changed due to the ignoreUser configuration.
- Specified by:
processMail
in class AbstractVirtualUserTableMailet
- Parameters:
sender
- recipient
- message
-
- Returns:
- collection of recipients
- Throws:
javax.mail.MessagingException
init
public void init()
throws javax.mail.MessagingException
- Overrides:
init
in class org.apache.mailet.base.GenericMailet
- Throws:
javax.mail.MessagingException
- See Also:
org.apache.mailet.GenericMailet#init()
Copyright ? 2002-2009 The Apache Software Foundation. All Rights Reserved.