Hello, I'm not a python programmer, but I can get around. Anyway, I started to play with the "/bin/withlist" program to get a command-line method to change passwords. My changepw.py program looks like:
import string def changepw(mlist, addr, newpasswd): addr = string.lower(addr) if mlist.passwords.has_key(addr): mlist.passwords[string.lower(addr)] = newpasswd mlist.Save() else: print 'No address matched:', addr and when I run it: [mailman@server bin]$ ./withlist -l -r changepw list addr newpass Loading list: list (locked) Importing changepw ... Running changepw.changepw() ... Unlocking (but not saving) list: list Finalizing So why doesn't it save the changes to the list after the password is changed?? Thanks, ajay -------------------------------------------------------------------- Satyajot (Ajay) Sharma [EMAIL PROTECTED] -------------------------------------------------------------------- ------------------------------------------------------ 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