[Mailman-Users] Help: how to extract a list's description using abash or Python script (Mailman version 2.1.9)

Mehdi Mortezai mehdi.mortezai at csueastbay.edu
Mon Jun 4 18:31:57 CEST 2012


Thanks much for the code, Mark!

Mehdi


-----Original Message-----
From: Mark Sapiro [mailto:mark at msapiro.net]
Sent: Friday, June 01, 2012 11:20 PM
To: Mehdi Mortezai; mailman-users at python.org
Subject: Re: [Mailman-Users] Help: how to extract a list's description
using abash or Python script (Mailman version 2.1.9)

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 description.


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.


#!/bin/bash
# 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 mailing list