Approve all waiting request for add-in as member
Hello, folks
Is there a command to approve all waiting requests for add-in as
member? Since it is the beginning of school year, parents begin to
signup for mailing list. I understand there is the submit & confirm
option so the parents can auto subscribe themselves.
Thanks,
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 mark@msapiro.net The highway is for gamblers, San Francisco Bay Area, California better use your sense - B. Dylan
participants (2)
-
Hung Phan
-
Mark Sapiro