Thx Mark. That worked.
-jm
Mark Sapiro wrote:
Jim McIver wrote:
I've found a mod.py that will show users in a list that have the
moderator bit set.
# mod.py
>from Mailman import mm_cfg
import sys
def mod(list):
for member in list.getMembers():
if list.getMemberOption(member, mm_cfg.Moderate):
print member, "is moderated"
How can I modify this to show users "don't" have the moderator bit set?
Search FAQ...no luck.
First, I hope you realize that this is a 'withlist' script to be run
via bin/withlist.
To make it show unmoderated members, insert the word not in the
condition and the message
if not list.getMemberOption(member, mm_cfg.Moderate):
print member, "is not moderated"
------------------------------------------------------
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