How to detect if a new list is created
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?
Dipl.-Inform(FH) Peter Heitzer, peter.heitzer@rz.uni-regensburg.de
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 <mark@msapiro.net> The highway is for gamblers, San Francisco Bay Area, California better use your sense - B. Dylan
participants (2)
-
Mark Sapiro
-
Peter Heitzer