org.apache.james.transport.mailets
Class FromRepository
java.lang.Object
org.apache.mailet.GenericMailet
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: 382444 $
Method Summary |
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 java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
FromRepository
public FromRepository()
init
public void init()
- Initialize the mailet, loading configuration information.
- Overrides:
init
in class GenericMailet
service
public void service(Mail trigger)
throws MessagingException
- Spool mail from a particular repository.
- Specified by:
service
in interface Mailet
- Specified by:
service
in class GenericMailet
- Parameters:
trigger
- - the Mail object that contains the MimeMessage and
routing information
- Throws:
MessagingException
- - if an exception occurs that interferes with the mailet's normal operation
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-2006 Apache Jakarta Project. All Rights Reserved."