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/
directory.

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 <m...@msapiro.net>        The highway is for gamblers,
San Francisco Bay Area, California    better use your sense - B. Dylan
------------------------------------------------------
Mailman-Users mailing list Mailman-Users@python.org
https://mail.python.org/mailman/listinfo/mailman-users
Mailman FAQ: http://wiki.list.org/x/AgA3
Security Policy: http://wiki.list.org/x/QIA9
Searchable Archives: http://www.mail-archive.com/mailman-users%40python.org/
Unsubscribe: 
https://mail.python.org/mailman/options/mailman-users/archive%40jab.org

Reply via email to