On 10/12/2013 08:11 PM, Ron Guerin wrote:
> Related to my previous question, is there a command-line suitable way to
> get the ban_list for a given list?


cd mailman
bin/dumpdb lists/<listname>/config.pck | grep -A15 ban_list

or

bin/withlist <listname>
Loading list <listname> (unlocked)
The variable `m' is the <listname> MailList instance
>>> m.ban_list

depending on exactly what you want and how many entries are in the
ban_list, one or the other of the above may do, or you may want say

def show_ban_list(mlist):
    for entry in mlist.ban_list:
        print entry

saved as bin/show_ban_list.py and run via

bin/withlist -r show_ban_list <listname>

-- 
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
https://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: 
https://mail.python.org/mailman/options/mailman-users/archive%40jab.org

Reply via email to