Munging the listinfo.html page automagically.

So I see that if I edit the list's listinfo.html page using the list's own "HTML Page Editing" feature, the new edited file suddenly appears in:
~mailman/lists/the-list-name/en/listinfo.html
Slick.
So if I wanted to make a programatic change to select group of new lists, would it really be just as easy as...
pipe ~mailman/templates/site/en/listinfo.html
---> through a filter script ---->
to write ~mailman/lists/the-list-name/en/listinfo.html
It seems to work. But are there any gottchas waiting to bite me if I take this simplistic approach? BTW -- I like that the template file has an embedded revision number...
<!-- $Revision: 5865 $ -->
so the script could refuse to filter a version of the template that it is not expecting.
(Using Mailman version: 2.1.20)
-- Cordially, the UNH Mailing List Server Admins Bill Costa, Adjunct Admin (603) 862-3056

On 09/28/2017 01:14 PM, The Mailing List Server Admin wrote:
So if I wanted to make a programatic change to select group of new lists, would it really be just as easy as...
pipe ~mailman/templates/site/en/listinfo.html
---> through a filter script ---->
to write ~mailman/lists/the-list-name/en/listinfo.html
It seems to work. But are there any gottchas waiting to bite me if I take this simplistic approach?
Probably not. The only issue would be if the list's preferred_language was other than English or if the list supported non-English languages in which case you would also want appropriate non-English templates in ~mailman/lists/the-list-name/LC/listinfo.html for the supported language codes.
See <https://wiki.list.org/x/4030605> for, among other things, the search rules for templates.
-- 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
-
The Mailing List Server Admin