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

Constructor Summary
ToProcessor()
           
 
Method Summary
 String getMailetInfo()
          Return a string describing this mailet.
 void init()
          Initialize the mailet
 void service(Mail mail)
          Deliver a mail to the processor.
 
Methods inherited from class org.apache.mailet.GenericMailet
destroy, 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

ToProcessor

public ToProcessor()
Method Detail

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."