[Mailman-Users] Help: how to extract a list's description using abash or Python script (Mailman version 2.1.9)
mark at msapiro.net
Sat Jun 2 08:20:21 CEST 2012
Mehdi Mortezai wrote:
>I need to generate a monthly report on all my mailing lists that includes
>each list's name, description, admin, and members. I have come up with a
>bash script using some Python scripts for Mailman that generates most of
>the reporting but could not find a script or a way to extract a list's
Mailman's bin/list_lists produces a list of all the installations list
names and descriptions.
>Any hint/help for pointing out how to extract the description of any list
>via a bash script will be very much appreciated.
# assume $1 is the list name
/usr/lib/mailman/bin/list_lists | grep -i " $1 " |\
sed -r "s/\s*\S+ - //"
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