[Mailman-Users] Usiing the withlist with default_member_moderation and accept-these_nonmembers

Jim Tittsler jwt at onjapan.net
Thu Sep 30 06:52:42 CEST 2004


On Sep 29, 2004, at 05:58, Kory Wheatley wrote:

> but the "accept_these_nonmembers" object I'm having troubles with.  
> When I try to add an email address, it shows up in the configuration 
> like this:
> w
> e
> b
> @
> i
> s
> u
> .
> e
> d
> u
>
> How can I get the whole thing on one line.  There's my python code
>
> import sys
> #Run this script with
> #withlist -l -r change_values mylist
> #   def change_values(mlist):
>    print 'LIST ', mlist.internal_name()
>    print '    Default Member Moderation Before: ', 
> mlist.default_member_moderation
>    print '    Accepted Non Members Before: ', 
> mlist.accept_these_nonmembers
>    mlist.default_member_moderation = 1
>    mlist.accept_these_nonmembers  =  "root at mm.isu.edu'

accept_these_nonmembers is a list, not a simple string.  To add an 
entry:
     mlist.accept_these_nonmembers.append("root at mm.isu.edu")
or, if you are trying to (re)set it:
     mlist.accept_these_nonmembers = ["root at mm.isu.edu"]


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