Thanks much for the code, Mark!

Mehdi


-----Original Message-----
From: Mark Sapiro [mailto:m...@msapiro.net]
Sent: Friday, June 01, 2012 11:20 PM
To: Mehdi Mortezai; mailman-users@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 <m...@msapiro.net>        The highway is for gamblers,
San Francisco Bay Area, California    better use your sense - B. Dylan
------------------------------------------------------
Mailman-Users mailing list Mailman-Users@python.org
http://mail.python.org/mailman/listinfo/mailman-users
Mailman FAQ: http://wiki.list.org/x/AgA3
Security Policy: http://wiki.list.org/x/QIA9
Searchable Archives: http://www.mail-archive.com/mailman-users%40python.org/
Unsubscribe: 
http://mail.python.org/mailman/options/mailman-users/archive%40jab.org

Reply via email to