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 Christopher Cheng <ma...@chrisshare.net> on 2002/11/02 13:16:44 UTC

AvalonListserv / AvalonListservManager problem

I am wondering if I just update the table "lists" with a new email address, do I need to restart James? Tracing through the code, seems to me that it grabs the members in init(), but not in service, so what that means is that if something changes, it cannot detect it without restarting it. If I do it through AvalonListservManager, it just does a sql update to the table, does it tell the mailet to refresh itself?

Another shortcoming is that everytime I add/change a new mailing list, I have to launch my pico to edit config.xml, restart james before it can refresh it. Is there a command in James to reload config.xml? Even better, I think the parameters such as membersonly, attachmentsallowed, replytolist, autobracket, subjectprefix should also be saved in the database, so that a webapp can update it directly.

RE: AvalonListserv / AvalonListservManager problem

Posted by "Noel J. Bergman" <no...@devtech.com>.
Chris,

I don't know how this slipped through the cracks, but if you are interested
in helping out on the list server code, please join the james-dev mailing
list.  We'd be happy to have you help on the code.  :-)

	--- Noel

-----Original Message-----
From: Christopher Cheng [mailto:mailing-list@chrisshare.net]
Sent: Thursday, November 07, 2002 8:00
To: James Users List
Cc: noel@devtech.com
Subject: Re: AvalonListserv / AvalonListservManager problem


Actually I modified the mailet to handle dynamic list handling. I would be
more than happy if my works can be integrated into James. I am new to open
source development, should I send you the code?

In config.xml

<mailet match="IsMailingList=mailinglists" class="MyListServ">
    <repositoryName>mailinglists</repositoryName>
    <membersonly>false</membersonly>
    <attachmentsallowed>true</attachmentsallowed>
    <replytolist>true</replytolist>
    <autobracket>true</autobracket>
    <subjectprefix>SUBJECT-PREFIX</subjectprefix>
</mailet>

where mailinglists is the repository

<repository name="mailinglists"
class="org.apache.james.mailinglistrepository.MailingListsJdbcRepository"
destinationURL="db://maildb/mailinglists">
    <sqlFile>file://conf/sqlResources.xml</sqlFile>
</repository>

----- Original Message -----
From: "Noel J. Bergman" <no...@devtech.com>
To: "James Users List" <ja...@jakarta.apache.org>
Sent: Monday, November 04, 2002 7:57 AM
Subject: RE: AvalonListserv / AvalonListservManager problem


> Chris,
>
> > if I just update the table "lists" with a new email address,
> > do I need to restart James? Tracing through the code, seems
> > to me that it grabs the members in init(), but not in service,
>
> You've read the code wrong.  All that AvalonListserv does is provide an
> implementation of getMembers().  GenericListserv calls getMembers() on the
> second line of the service method.
>
> > Another shortcoming is that ...
>
> All of those items, and more, are on the To-do list.  The current list
> management code is extremely primitive.
>
> --- Noel


---------------------------------------------------------------------
To unsubscribe, e-mail: james-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: james-user-help@jakarta.apache.org


Re: AvalonListserv / AvalonListservManager problem

Posted by Christopher Cheng <ma...@chrisshare.net>.
Actually I modified the mailet to handle dynamic list handling. I would be
more than happy if my works can be integrated into James. I am new to open
source development, should I send you the code?

In config.xml

<mailet match="IsMailingList=mailinglists" class="MyListServ">
    <repositoryName>mailinglists</repositoryName>
    <membersonly>false</membersonly>
    <attachmentsallowed>true</attachmentsallowed>
    <replytolist>true</replytolist>
    <autobracket>true</autobracket>
    <subjectprefix>SUBJECT-PREFIX</subjectprefix>
</mailet>

where mailinglists is the repository

<repository name="mailinglists"
class="org.apache.james.mailinglistrepository.MailingListsJdbcRepository"
destinationURL="db://maildb/mailinglists">
    <sqlFile>file://conf/sqlResources.xml</sqlFile>
</repository>

----- Original Message -----
From: "Noel J. Bergman" <no...@devtech.com>
To: "James Users List" <ja...@jakarta.apache.org>
Sent: Monday, November 04, 2002 7:57 AM
Subject: RE: AvalonListserv / AvalonListservManager problem


> Chris,
>
> > if I just update the table "lists" with a new email address,
> > do I need to restart James? Tracing through the code, seems
> > to me that it grabs the members in init(), but not in service,
>
> You've read the code wrong.  All that AvalonListserv does is provide an
> implementation of getMembers().  GenericListserv calls getMembers() on the
> second line of the service method.
>
> > Another shortcoming is that ...
>
> All of those items, and more, are on the To-do list.  The current list
> management code is extremely primitive.
>
> --- Noel
>
>
> --
> To unsubscribe, e-mail:
<ma...@jakarta.apache.org>
> For additional commands, e-mail:
<ma...@jakarta.apache.org>
>
>


--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>


RE: AvalonListserv / AvalonListservManager problem

Posted by "Noel J. Bergman" <no...@devtech.com>.
Chris,

> if I just update the table "lists" with a new email address,
> do I need to restart James? Tracing through the code, seems
> to me that it grabs the members in init(), but not in service,

You've read the code wrong.  All that AvalonListserv does is provide an
implementation of getMembers().  GenericListserv calls getMembers() on the
second line of the service method.

> Another shortcoming is that ...

All of those items, and more, are on the To-do list.  The current list
management code is extremely primitive.

	--- Noel


--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>