Re: [Mailman-Users] Deleting Address in accept_these_nonmembers (was Add to filter from commandline?)

From a posting back in August:
Willendrup, Peter Kjær wrote:
And Mark Sapiro replied:
I have implemented a script to add an address to
accept_these_nonmembers
in a collection of Mailman lists, and I am wondering if there is a similar mechanism for deleting an address in
accept_these_nonmembers
in a collection of Mailman lists.
Barry S. Finkel Computing and Information Systems Division Argonne National Laboratory Phone: +1 (630) 252-7277 9700 South Cass Avenue Facsimile:+1 (630) 252-4601 Building 222, Room D209 Internet: BSFinkel@anl.gov Argonne, IL 60439-4828 IBMMAIL: I1004994

Barry Finkel wrote:
mlist.accept_these_nonmembers.remove('user@example.com')
but it would probably be better to do
user = 'user@example.com' try: mlist.accept_these_nonmembers.remove(user) except ValueError: print 'User: %s not in accept_these_nonmembers' % user
or maybe just
try: mlist.accept_these_nonmembers.remove('user@example.com') except ValueError: pass
but, now you're getting into the realm of Python coding and it would be better still to write a complete Python script rather than using config_list.
-- Mark Sapiro <mark@msapiro.net> The highway is for gamblers, San Francisco Bay Area, California better use your sense - B. Dylan

Mark Sapiro wrote:
See <http://www.msapiro.net/scripts/non_members> (mirrored at <http://fog.ccsf.cc.ca.us/~msapiro/scripts/non_members> and <http://veenet.value.net/~msapiro/scripts/non_members>) for an example.
-- Mark Sapiro <mark@msapiro.net> The highway is for gamblers, San Francisco Bay Area, California better use your sense - B. Dylan

Barry Finkel wrote:
mlist.accept_these_nonmembers.remove('user@example.com')
but it would probably be better to do
user = 'user@example.com' try: mlist.accept_these_nonmembers.remove(user) except ValueError: print 'User: %s not in accept_these_nonmembers' % user
or maybe just
try: mlist.accept_these_nonmembers.remove('user@example.com') except ValueError: pass
but, now you're getting into the realm of Python coding and it would be better still to write a complete Python script rather than using config_list.
-- Mark Sapiro <mark@msapiro.net> The highway is for gamblers, San Francisco Bay Area, California better use your sense - B. Dylan

Mark Sapiro wrote:
See <http://www.msapiro.net/scripts/non_members> (mirrored at <http://fog.ccsf.cc.ca.us/~msapiro/scripts/non_members> and <http://veenet.value.net/~msapiro/scripts/non_members>) for an example.
-- Mark Sapiro <mark@msapiro.net> The highway is for gamblers, San Francisco Bay Area, California better use your sense - B. Dylan
participants (2)
-
Barry Finkel
-
Mark Sapiro