org.apache.james.transport.mailets
Class FromRepository

java.lang.Object
  extended by org.apache.mailet.base.GenericMailet
      extended by org.apache.james.transport.mailets.FromRepository
All Implemented Interfaces:
org.apache.mailet.Mailet, org.apache.mailet.MailetConfig

public class FromRepository
extends org.apache.mailet.base.GenericMailet

Re-spools Mail found in the specified Repository. <mailet match="RecipientIs=respool@localhost" class="FromRepository"> <repositoryPath> repository path </repositoryPath> <processor> target processor </repositoryPath> <delete&t; [true|false] </delete> </mailet>

Version:
This is $Revision: 717869 $

Constructor Summary
FromRepository()
           
 
Method Summary
 java.lang.String getMailetInfo()
          Return a string describing this mailet.
 void init()
          Initialize the mailet, loading configuration information.
 void service(org.apache.mailet.Mail trigger)
          Spool mail from a particular repository.
 
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
 

Constructor Detail

FromRepository

public FromRepository()
Method Detail

init

public void init()
Initialize the mailet, loading configuration information.

Overrides:
init in class org.apache.mailet.base.GenericMailet

service

public void service(org.apache.mailet.Mail trigger)
             throws javax.mail.MessagingException
Spool mail from a particular repository.

Specified by:
service in interface org.apache.mailet.Mailet
Specified by:
service in class org.apache.mailet.base.GenericMailet
Parameters:
trigger - triggering e-mail (eventually parameterize via the trigger message)
Throws:
javax.mail.MessagingException

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


Copyright ? 2002-2009 The Apache Software Foundation. All Rights Reserved.