29-Jan-03 at 15:15, [EMAIL PROTECTED] ([EMAIL PROTECTED]) wrote : > Helo mailman users, > how can I change all member-passwords of an existing list to the same? > I don't want to do that by the webfrontend because I have to change a > lot of passwords and all members should get the same!
-- withlist is your friend. As another example, say you wanted to change the password for a particular user on a particular list. You could put the following function in a file called `changepw.py': from Mailman.Errors import NotAMember def changepw(mlist, addr, newpasswd): try: mlist.setMemberPassword(addr, newpasswd) mlist.Save() except NotAMember: print 'No address matched:', addr and run this from the command line: % bin/withlist -l -r changepw mylist [EMAIL PROTECTED] foobar -- |-Simon White, Internet Services Manager, Certified Check Point CCSA. |-MTDS Internet, Security, Anti-Virus, Linux and Hosting Solutions. |-MTDS 14, rue du 16 novembre, Agdal, Rabat, Morocco. |-MTDS tel +212.3.767.4861 - fax +212.3.767.4863 ------------------------------------------------------ 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/ This message was sent to: archive@jab.org Unsubscribe or change your options at http://mail.python.org/mailman/options/mailman-users/archive%40jab.org