[Mailman-Users] List without moderation

Jim Tittsler jwt at OnJapan.net
Fri Jul 2 11:02:22 CEST 2004


On Tue, Jun 29, 2004 at 09:50:58PM +0530, Yogesh Talekar wrote:
> the question is how do i do it from command line??
> 
> I cannot use Web interface du to some restrictions!

Mailman is tough to administer if you don't have access to the
web interface, and are not comfortable with falling back to
using Python to directly script what you want.  You could clear
every subscriber's moderate flag using the bin/withlist utility
which provides a framework for manipulating the Mailman list
object(s).  Search the list archives for 'withlist' for
examples.

Create a file called unmoderate_all.py containing:

from Mailman import mm_cfg

def unmoderate_all(m):
    for member in m.members:
        m.setMemberOption(member, mm_cfg.Moderate, mm_cfg.No)

and invoke using withlist, giving the name of your list:

$ bin/withlist -l -r umoderate_all mylist


-- 
Jim Tittsler             http://www.OnJapan.net/      GPG: 0x01159DB6
Python Starship          http://Starship.Python.net/
Ringo MUG Tokyo          http://www.ringo.net/rss.html





More information about the Mailman-Users mailing list