[Mailman-Users] Umbrella/Parent Lists

Jon Carnes jonc at nc.rr.com
Wed May 21 04:13:23 CEST 2003


On Thu, 2003-05-08 at 15:51, Wesley T. Perdue wrote:

> My script lacks one feature I need: I'd like it to be driven by membership changes in the child lists, rather than cron-driven.  That is, when someone joins or leaves my software list, I'd like my eng list to be automatically updated.  I'm not a Python programmer (I'm barely a Perl programmer), so it may take me a while to figure out how to implement this feature.  Arbitrarily rebuilding all parent lists on a frequent basis is a waste of resources on my already busy server; plus, it introduces a time delay in the parent-list-updating.
> 
I had some clients with that same concern.  The fix is easy.  Modify
your script (still kicked off by cron), to start with a grep of the
Mailman log files looking for removes or adds to list memberships. If
you find any then continue running the script - otherwise exit.

The resources used are minimal if there are no changes to the sub-lists.

Once you get brave, you can hack the Mailman cgi code to kick off your
scripts when there is an add or remove in one of the sub-lists - but the
cron actually takes up less resources (unless your lists rarely change) 

Good Luck - Jon Carnes





More information about the Mailman-Users mailing list