[Mailman-Users] public/private listinfo pages

Mark Sapiro mark at msapiro.net
Tue Jun 22 22:56:04 CEST 2010

Anthony R. Thompson wrote:
>* Then do the following, either manually or probably more likely on a 
>regular basis via cron:
>rm -f /path/to/index.inc; ls -1 /var/lib/mailman/archives/private | 
>egrep -v mbox | perl -ne 'chomp; s#/$##; print qq^<li><a 
>href="/mailman/listinfo/$_">$_</a></li>\n^;' >> /path/to/index.inc
>(with that ls -1 command being all on one line)

or maybe

rm -f /path/to/index.inc; /path/to/mailman/bin/list_lists --bare | perl
-ne 'chomp; print qq^<li><a
href="/mailman/listinfo/$_">$_</a></li>\n^;' >> /path/to/index.inc

i.e. with list_lists --bare, there's no need to worry about things in
the directory that aren't list names or to strip trailing slashes from
the directory names that are list names
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