[prev in list] [next in list] [prev in thread] [next in thread] 

List:       mailman-users
Subject:    Re: [Mailman-Users] Global NOMAIL?
From:       Jeff Barger <jeff () look ! net>
Date:       2004-06-30 19:52:25
Message-ID: 02263A83-CACF-11D8-A589-000A959666F6 () look ! net
[Download RAW message or body]


On Jun 30, 2004, at 3:18 PM, Tracey McCartney wrote:

> Hi:
>
> I am the admin and one of three mods for an announce-only list.  Is 
> there an e-mail command I can use to set everyone on the list to 
> NOMAIL temporarily so that I can then turn mail back on for a few 
> people in order to do some testing?  The list has about 435 
> subscribers, and using the web interface to set everyone's mail bit 
> will get a little tedious.

You can use withlist to do it. Let's say the list is named 'testlist':

# ./withlist -i -l testlist
Loading list testlist (locked)
The variable `m' is the testlist MailList instance
 >>> for member in 
m.getDeliveryStatusMembers((MailList.MemberAdaptor.ENABLED,)):
...          m.setDeliveryStatus(member,MailList.MemberAdaptor.BYADMIN)
...
 >>> m.Save()
 >>>
Unlocking (but not saving) list: testlist


-Jeff


------------------------------------------------------
Mailman-Users mailing list
Mailman-Users@python.org
http://mail.python.org/mailman/listinfo/mailman-users
Mailman FAQ: http://www.python.org/cgi-bin/faqw-mm.py
Searchable Archives: http://www.mail-archive.com/mailman-users%40python.org/
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic