Hung Phan wrote:
>
>Is there a command to approve all waiting requests for add-in as
>member?
Not per se, but you could do it with a withlist script such as
------------------------------------------------------
"""Approve all pending subscriptions.
Save as bin/approve_all_subs.py
Run via
bin/withlist -r approve_all_subs listname
or
bin/withlist -a -r approve_all_subs
to do all lists.
"""
from Mailman import mm_cfg
def approve_all_subs(mlist):
if not mlist.Locked():
mlist.Lock()
ids = mlist.GetSubscriptionIds()
for id in ids:
mlist.HandleRequest(id, mm_cfg.SUBSCRIBE)
mlist.Save()
mlist.Unlock()
------------------------------------------------------
--
Mark Sapiro <[EMAIL PROTECTED]> The highway is for gamblers,
San Francisco Bay Area, California better use your sense - B. Dylan
------------------------------------------------------
Mailman-Users mailing list
[email protected]
http://mail.python.org/mailman/listinfo/mailman-users
Mailman FAQ: http://wiki.list.org/x/AgA3
Searchable Archives: http://www.mail-archive.com/mailman-users%40python.org/
Unsubscribe:
http://mail.python.org/mailman/options/mailman-users/archive%40jab.org
Security Policy: http://wiki.list.org/x/QIA9