|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.mailet.GenericMailet
org.apache.james.transport.mailets.UsersRepositoryAliasingForwarding
Receives a Mail from JamesSpoolManager and takes care of delivery of the
message to local inboxes.
Available configurations are:
Constructor Summary | |
UsersRepositoryAliasingForwarding()
|
Method Summary | |
String |
getMailetInfo()
Return a string describing this mailet. |
void |
init()
A convenience method which can be overridden so that there's no need to call super.init(config). |
String |
processMail(MailAddress sender,
MailAddress recipient,
MimeMessage message)
Return null when the mail should be GHOSTed, the username string when it should be changed due to the ignoreUser configuration. |
void |
service(Mail mail)
Delivers a mail to a local mailbox. |
Methods inherited from class org.apache.mailet.GenericMailet |
destroy, 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 |
Constructor Detail |
public UsersRepositoryAliasingForwarding()
Method Detail |
public void service(Mail mail) throws MessagingException
service
in interface Mailet
service
in class GenericMailet
mail
- the mail being processed
MessagingException
- if an error occurs while storing the mailpublic String getMailetInfo()
getMailetInfo
in interface Mailet
getMailetInfo
in class GenericMailet
public String processMail(MailAddress sender, MailAddress recipient, MimeMessage message) throws MessagingException
sender
- recipient
- message
-
MessagingException
public void init() throws MessagingException
GenericMailet
A convenience method which can be overridden so that there's no need to call super.init(config).
Instead of overriding init(MailetConfig), simply override this method and it will be called by GenericMailet.init(MailetConfig config). The MailetConfig object can still be retrieved via getMailetConfig().
init
in class GenericMailet
MessagingException
- if an exception occurs that interrupts the mailet's normal operationGenericMailet.init()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |