[Mailman-Users] How to detect if a new list is created

Mark Sapiro mark at msapiro.net
Wed Sep 25 10:27:17 EDT 2019

On 9/25/19 7:12 AM, Peter Heitzer wrote:
> Is there a simple method to detect if a new list was created?
> As mailman updates the alias file (/var/lib/mailman/data/aliases in our installation) with any new list I thought of 
> checking the modify date of the aliases file.
> Is this a sufficient method?

It should work, or you could check the mod date of Mailman's lists/

What I would do is save the output of an 'ls' of Mailman's lists/
directory and set up a cron to 'ls' the directory, compare it to the
saved 'ls' and if different, update the saved 'ls' and email me.

Mark Sapiro <mark at msapiro.net>        The highway is for gamblers,
San Francisco Bay Area, California    better use your sense - B. Dylan

More information about the Mailman-Users mailing list