org.apache.james.transport.mailets
Class FromRepository

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

public class FromRepository
extends 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: 494012 $

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(Mail trigger)
          Spool mail from a particular repository.
 
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

FromRepository

public FromRepository()
Method Detail

init

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

Overrides:
init in class GenericMailet

service

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

Specified by:
service in interface Mailet
Specified by:
service in class GenericMailet
Parameters:
triggering - e-mail (eventually parameterize via the trigger message)
Throws:
javax.mail.MessagingException - - if an exception occurs that interferes with the mailet's normal operation

getMailetInfo

public java.lang.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 ? 2002-2009 The Apache Software Foundation. All Rights Reserved.