You are viewing a plain text version of this content. The canonical link for it is here.
Posted to server-dev@james.apache.org by ch...@apache.org on 2001/06/24 15:18:37 UTC
cvs commit: jakarta-james/src/java/org/apache/james/transport/mailets AvalonListserv.java AvalonListservManager.java
charlesb 01/06/24 06:18:36
Modified: . build.xml
src/conf james-config.xml
src/java/org/apache/james Constants.java
src/java/org/apache/james/transport/mailets
AvalonListserv.java AvalonListservManager.java
Log:
Correct config to match ListServ code and tart up javadocs
Revision Changes Path
1.73 +2 -1 jakarta-james/build.xml
Index: build.xml
===================================================================
RCS file: /home/cvs/jakarta-james/build.xml,v
retrieving revision 1.72
retrieving revision 1.73
diff -u -r1.72 -r1.73
--- build.xml 2001/06/11 09:29:01 1.72
+++ build.xml 2001/06/24 13:18:36 1.73
@@ -514,12 +514,13 @@
-->
<target name="local-xdocs" depends="xdocs">
+ <mkdir dir="${docs.dir}"/>
<delete>
<fileset dir="${docs.dir}">
<exclude name="api/**"/>
</fileset>
</delete>
- <mkdir dir="${docs.dir}"/>
+
<copy todir="${docs.dir}">
<fileset dir="${build.docs}" />
1.7 +11 -4 jakarta-james/src/conf/james-config.xml
Index: james-config.xml
===================================================================
RCS file: /home/cvs/jakarta-james/src/conf/james-config.xml,v
retrieving revision 1.6
retrieving revision 1.7
diff -u -r1.6 -r1.7
--- james-config.xml 2001/06/21 17:20:16 1.6
+++ james-config.xml 2001/06/24 13:18:36 1.7
@@ -13,8 +13,8 @@
CONFIRM? comment in the left
margin.
- This is $Revision: 1.6 $
- Committed on $Date: 2001/06/21 17:20:16 $ by: $Author: charlesb $
+ This is $Revision: 1.7 $
+ Committed on $Date: 2001/06/24 13:18:36 $ by: $Author: charlesb $
-->
<config>
@@ -139,14 +139,15 @@
<!-- Sample listserv wrapping a local avalon list of users. -->
<mailet match="CommandForListserv=james@localhost"
class="AvalonListservManager">
- <membersPath> file://var/users/list-james </membersPath>
+ <repositoryName>list-james</repositoryName>
</mailet>
<mailet match="RecipientIs=james@localhost" class="AvalonListserv">
<membersonly> false </membersonly>
<attachmentsallowed> true </attachmentsallowed>
<replytolist> true </replytolist>
- <membersPath>file://var/users/list-james</membersPath>
+ <repositoryName>list-james</repositoryName>
+ <subjectprefix>JamesList</subjectprefix>
</mailet>
<!-- Sends remaining mails to the transport processor for either
@@ -464,6 +465,12 @@
<!-- The User Storage block -->
<users-store>
+
+ <!-- Note: Two user repositories are required for default configuration:
+ LocalUsers - the users for whom you are providing POP3, IMAP or NNTP
+ AUTH service
+ list-james - the users of the james@localhost mailiinglist
+ -->
<!-- File-based user repository -->
<repository name="LocalUsers"
class="org.apache.james.userrepository.UsersFileRepository">
1.3 +2 -3 jakarta-james/src/java/org/apache/james/Constants.java
Index: Constants.java
===================================================================
RCS file: /home/cvs/jakarta-james/src/java/org/apache/james/Constants.java,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -r1.2 -r1.3
--- Constants.java 2001/05/21 09:48:57 1.2
+++ Constants.java 2001/06/24 13:18:36 1.3
@@ -12,11 +12,10 @@
* The Software Version, Software Name and Build Date are set by ant during
* the build process.
*
- * @version 1.0.0, 24/04/1999
* @author <a href="mailto:fede@apache.org">Federico Barbieri</a>
*
- * This is $Revision: 1.2 $
- * Committed on $Date: 2001/05/21 09:48:57 $ by: $Author: charlesb $
+ * @version This is $Revision: 1.3 $
+ * Committed on $Date: 2001/06/24 13:18:36 $ by: $Author: charlesb $
*/
public class Constants {
1.2 +11 -10 jakarta-james/src/java/org/apache/james/transport/mailets/AvalonListserv.java
Index: AvalonListserv.java
===================================================================
RCS file: /home/cvs/jakarta-james/src/java/org/apache/james/transport/mailets/AvalonListserv.java,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- AvalonListserv.java 2001/05/11 10:01:02 1.1
+++ AvalonListserv.java 2001/06/24 13:18:36 1.2
@@ -19,17 +19,18 @@
import org.apache.mailet.*;
/**
- * MailingListServer capability
+ * MailingListServer capability.
+ *
+ * <p>Requires a configuration element in the .conf.xml file of the form:
+ * <br><repositoryName>name of user repository configured in UsersStore block </repositoryName>
+ * <br><membersonly>
+ * <br><attachmentsallowed>
+ * <br><replytolist>
+ * <br><subjectprefix>
*
- * Requires a configuration element in the .conf.xml file of the form:
- * <repository destinationURL="file://path-to-root-dir-for-repository"
- * type="USERS"
- * model="SYNCHRONOUS"/>
- * <membersPath>
- * <membersonly>
- * <attachmentsallowed>
- * <replytolist>
- * <subjectprefix>
+ * @author <a href="sergek@lokitech.com">Serge Knystautas </a>
+ * @version This is $Revision: 1.2 $
+ * Committed on $Date: 2001/06/24 13:18:36 $ by: $Author: charlesb $
*/
public class AvalonListserv extends GenericListserv {
1.2 +8 -7 jakarta-james/src/java/org/apache/james/transport/mailets/AvalonListservManager.java
Index: AvalonListservManager.java
===================================================================
RCS file: /home/cvs/jakarta-james/src/java/org/apache/james/transport/mailets/AvalonListservManager.java,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- AvalonListservManager.java 2001/05/11 10:01:03 1.1
+++ AvalonListservManager.java 2001/06/24 13:18:36 1.2
@@ -21,13 +21,14 @@
/**
* Adds or removes an email address to a listserv.
*
- * Sample configuration:
- * <pre>
- * <mailet match="CommandForListserv=james@list.working-dogs.com" class="AvalonListservManager">
- * <membersPath>file://../var/list-james</membersPath>
- * </mailet>
- * </pre>
- * @author Serge Knystautas <se...@lokitech.com>
+ * <p>Sample configuration:
+ * <br><mailet match="CommandForListserv=james@list.working-dogs.com" class="AvalonListservManager">
+ * <br><repositoryName>name of user repository configured in UsersStore block </repositoryName>
+ * <br></mailet>
+ *
+ * @author <a href="sergek@lokitech.com">Serge Knystautas </a>
+ * @version This is $Revision: 1.2 $
+ * Committed on $Date: 2001/06/24 13:18:36 $ by: $Author: charlesb $
*/
public class AvalonListservManager extends GenericListservManager {
---------------------------------------------------------------------
To unsubscribe, e-mail: james-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: james-dev-help@jakarta.apache.org