-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Hello,
I'm trying to remove the moderator flag on some users via the command line so that these users are allowed to post to lists where the moderator flag is set by default. I found this posting from Feb. 2005, but this doesn't appear to be working for me: http://mail.python.org/pipermail/mailman-users/2005-February/042396.html My script in the Mailman base directory: > # DU mailman Modules > # This should live in the base Mailman install directory to be seen by the > withlist Mailman binary. > > from Mailman import mm_cfg > from Mailman.Errors import NotAMemberError > > # Set a member's moderator flag to on or off > # e.g. to disable moderation: setMemberModeratedFlag listname, email_address, > '' > def setMemberModeratedFlag (mlist, addr, mod): > #print "Setting moderator flag to ",mod," for ",addr > mlist.setMemberOption (addr, mm_cfg.Moderate, mod) > mlist.Save() My input: # withlist -l -r du.setMemberModeratedFlag testlist myemailaddress '' Importing du... Running du.setMemberModeratedFlag()... Loading list testlist (locked) Unlocking (but not saving) list: testlist Finalizing (I also tried replacing the double quotes with "off"). This does not actually remove the flag for this address - posting to the list by this address still gets a bounce back saying that moderator approval is required. Any ideas? - -- Joe Auty NetMusician: web publishing software for musicians http://www.netmusician.org [email protected] -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.7 (Darwin) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFJUIlmCgdfeCwsL5ERAluCAJ47WJ/VqizlT/IhZw1M1wQkwEOYYQCdHC7I E2rRQqJpGWP5jZHSVdPfvoU= =20IC -----END PGP SIGNATURE----- ------------------------------------------------------ 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
