Travis Derouin wrote:
>
>Cool, what's the best way of doing this?
Your earlier, rapid response with the number of bouncing members and
their domains leads me to believe you got that info with
bin/list_members, so here's a withlist script to do it.
--cut here-----------------------------------------------------
"""Enable delivery for all bouncing members.
Save as bin/reset_bounce.py
Run via
bin/withlist -r reset_bounce <listname>
or
bin/withlist -a -r reset_bounce
to do all lists.
"""
from Mailman import MemberAdaptor
def reset_bounce(mlist):
if not mlist.Locked():
mlist.Lock()
count = 0
for member in mlist.getMembers():
if mlist.getDeliveryStatus(member) == MemberAdaptor.BYBOUNCE:
mlist.setDeliveryStatus(member, MemberAdaptor.ENABLED)
count += 1
mlist.Save()
mlist.Unlock()
print 'List %s: Reset %d bouncing members.' % (mlist.real_name,
count)
--cut here------------------------------------------------------
--
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://www.python.org/cgi-bin/faqw-mm.py
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://www.python.org/cgi-bin/faqw-mm.py?req=show&file=faq01.027.htp