org.apache.james.transport.mailets
Class ToProcessor
java.lang.Object
|
+--org.apache.mailet.GenericMailet
|
+--org.apache.james.transport.mailets.ToProcessor
- All Implemented Interfaces:
- Mailet, MailetConfig
- public class ToProcessor
- extends GenericMailet
This mailet redirects the mail to the named processor
Sample configuration:
spam
Notice attached to the message (optional)
- Author:
- Federico Barbieri , Serge Knystautas
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ToProcessor
public ToProcessor()
init
public void init()
throws MailetException
- Initialize the mailet
- Overrides:
init
in class GenericMailet
- Throws:
MailetException
- if the processor parameter is missing
service
public void service(Mail mail)
throws MessagingException
- Deliver a mail to the processor.
- Specified by:
service
in interface Mailet
- Specified by:
service
in class GenericMailet
- Parameters:
mail
- the mail to process
- Throws:
MessagingException
- in all cases
getMailetInfo
public String getMailetInfo()
- Return a string describing this mailet.
- Specified by:
getMailetInfo
in interface Mailet
- Overrides:
getMailetInfo
in class GenericMailet
- Returns:
- a string describing this mailet
"Copyright © 1999-2002 Apache Jakarta Project. All Rights Reserved."