Giulio Troccoli wrote:
Thanks Stefano.

However, the documentation hasn't got anything about CommandListservProcessor, which is the one I'm interested in.

CommandListservProcessor processes messages intended for the list serv mailing list.
For command handling, see CommandListservManager

This class is based on the existing list serv processor shipped with James.

To configure the CommandListservProcessor place this configuratin in the root processor:

<mailet match="[EMAIL PROTECTED]" class="CommandListservProcessor">
 <membersonly>false</membersonly>
 <attachmentsallowed>true</attachmentsallowed>
 <replytolist>true</replytolist>
 <repositoryName>list-announce</repositoryName>
 <subjectprefix>Announce</subjectprefix>
 <autobracket>true</autobracket>
 <listOwner>[EMAIL PROTECTED]</listOwner>
 <listName>announce</listName>
 <addFooter>true</addFooter>
</mailet>


CommandListservManager info:

CommandListservManager is the default implementation of [EMAIL PROTECTED] ICommandListservManager}. It loads all the configured [EMAIL PROTECTED] IListServCommand}s and delegates to them at runtime.

It isn't responsible for procesing messages sent to the main mailing list, but is responsible for
individual commands sent by users, such as: info, subscribe, etc...

Requests sent to the CommandListservManager take the form of:

<listName>-<commandName>@domain

If the command isn't recognized an error will be sent using onError.

The configuration for this mailet sould be in the 'root' processor block.

<mailet match="[EMAIL PROTECTED]" class="CommandListservManager">
 <listName>announce</listName>
 <displayName>Announce mailing list</displayName>
 <listOwner>[EMAIL PROTECTED]</listOwner>
 <repositoryName>list-announce</repositoryName>
 <listDomain>localhost</listDomain>

 <commandpackages>

<commandpackage>org.apache.james.transport.mailets.listservcommands</commandpackage>
 </commandpackages>

 <commands>
    <command name="subscribe" class="Subscribe"/>
    <command name="subscribe-confirm" class="SubscribeConfirm"/>
    <command name="unsubscribe" class="UnSubscribe"/>
    <command name="unsubscribe-confirm" class="UnSubscribeConfirm"/>
    <command name="error" class="ErrorCommand"/>
    <command name="owner" class="Owner"/>
    <command name="info" class="Info"/>
 </commands>
</mailet>


There is another thing. I am using James 2.2.0 and from the documentation it looks like the CommandListserv stuff was introduced with James 2.3.0. So is it the documentation wrong, or did I somehow added some 2.3 functionality to 2.3?

It was added in 2.2.0: no improvements have been done in 2.3.0, but we are slow updating docs, so in the docs it only appeared in 2.3.0, and it is still incomplete.

Stefano


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to