FileDocCategorySizeDatePackage
Owner.javaAPI DocApache James 2.3.12762Fri Jan 12 12:56:30 GMT 2007org.apache.james.transport.mailets.listservcommands

Owner

public class Owner extends BaseCommand
This command will send email to the current owner(s) of this mailing list
version
CVS $Revision: 494012 $ $Date: 2007-01-08 11:23:58 +0100 (Mo, 08 Jan 2007) $
since
2.2.0

Fields Summary
protected List
m_listOwner
Constructors Summary
Methods Summary
public voidinit(org.apache.james.transport.mailets.ICommandListservManager commandListservManager, org.apache.avalon.framework.configuration.Configuration configuration)
Perform any required initialization

param
configuration
throws
ConfigurationException


                 
            
        super.init(commandListservManager, configuration);
        try {
            m_listOwner.add(new MailAddress(getCommandListservManager().getListOwner()));
        } catch (ParseException e) {
            throw new ConfigurationException(e.getMessage(), e);
        }
    
public voidonCommand(org.apache.mailet.Mail mail)
Process this command to your hearts content

param
mail
throws
MessagingException

        getMailetContext().sendMail(mail.getSender(), m_listOwner, mail.getMessage());