[Mailman-Users] Administrative Hold

Jim Tittsler jwt at OnJapan.net
Sun Jul 4 14:13:58 CEST 2004


On Sat, Jul 03, 2004 at 09:14:18AM -0400, Speedy Gonzalis wrote:
> Is there a way in 2.1 to set subscriptions on administrative
> hold via the command line?

By "administrative hold" do you mean you want to set your
@aol.com users to "no mail" status?

$ bin/withlist -l mylist
>>> for member in \
...  m.getDeliveryStatusMembers((MailList.MemberAdaptor.ENABLED,)):
...    if member.rfind('@aol.com') > 0:
...        m.setDeliveryStatus(member, MailList.MemberAdaptor.BYADMIN)
... {return}
>>> m.Save()
>>> {ctrl-D}

Or you could make a function for withlist that takes a member's
address on the command line and do the looping in a shell
script.

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