[Mailman-Users] question about list locking

Richard Haas rhaas at rhaas.us
Tue Oct 4 14:30:46 CEST 2011


Is there a relatively standard way to place a lock on a Mailman list with
bourne/bash/etc. scripts?

I see the interactive method using Mailman's *withlist* script (as described
here http://www.gnu.org/s/mailman/site.html), but I need to place a lock so
that an unattended perl script can prune older messages from the list's
.mbox archive, nightly or weekly via cron.

Yes, one might code the call to the perl mbox pruning script in python with
os.system() or commands.getoutput(), and then call withlist via cron to get
the perl to run while the list is locked -- but that seems like rolling a
lot together just to get a lock placed on a list. :-)

Is there a more straightforward way to lock/unlock a mailing list?

Thanks for any insight.

 Richard Haas <rhaas at rhaas.us>
 GnuPG public key ID: 1CB7F0E2

More information about the Mailman-Users mailing list