Related to my previous question, is there a command-line suitable way to get the ban_list for a given list?
Thanks!
- Ron
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 mark@msapiro.net The highway is for gamblers, San Francisco Bay Area, California better use your sense - B. Dylan
participants (2)
-
Mark Sapiro
-
Ron Guerin