org.apache.james.transport.mailets
Class AvalonListservManager

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

public class AvalonListservManager
extends GenericListservManager

Adds or removes an email address to a listserv.

Sample configuration:
<mailet match="CommandForListserv=james@list.working-dogs.com" class="AvalonListservManager">
<repositoryName>name of user repository configured in UsersStore block </repositoryName>
</mailet>

Version:
This is $Revision: 494012 $

Constructor Summary
AvalonListservManager()
           
 
Method Summary
 boolean addAddress(MailAddress address)
          Add an address to the list.
 boolean existsAddress(MailAddress address)
          Indicates whether an address already exists on the listserv.
 java.lang.String getMailetInfo()
          Return a string describing this mailet.
 void init()
          Initialize the mailet
 boolean removeAddress(MailAddress address)
          Remove an address from the list.
 
Methods inherited from class org.apache.james.transport.mailets.GenericListservManager
service
 
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

AvalonListservManager

public AvalonListservManager()
Method Detail

init

public void init()
Initialize the mailet

Overrides:
init in class GenericMailet

addAddress

public boolean addAddress(MailAddress address)
Add an address to the list.

Specified by:
addAddress in class GenericListservManager
Parameters:
address - the address to add
Returns:
true if successful, false otherwise

removeAddress

public boolean removeAddress(MailAddress address)
Remove an address from the list.

Specified by:
removeAddress in class GenericListservManager
Parameters:
address - the address to remove
Returns:
true if successful, false otherwise

existsAddress

public boolean existsAddress(MailAddress address)
Description copied from class: GenericListservManager
Indicates whether an address already exists on the listserv. Returns whether the address exists.

Specified by:
existsAddress in class GenericListservManager

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.