
[Lyndon Drake]
Is it at all likely that the email commands will be extended to accomodate more functionality by email?
I'd say "yes", and then welcome any patches to implement this :) A patch against current CVS to make the "password" mail command mail a user's password to her when no args are given follows: Index: MailCommandHandler.py =================================================================== RCS file: /export/public/cvsroot/mailman/Mailman/MailCommandHandler.py,v retrieving revision 1.51 diff -u -r1.51 MailCommandHandler.py --- MailCommandHandler.py 1999/06/13 07:07:22 1.51 +++ MailCommandHandler.py 1999/06/13 15:03:15 @@ -265,10 +265,22 @@ self.__NoMailCmdResponse = 0 def ProcessPasswordCmd(self, args, cmd, mail): - if len(args) <> 2: - self.AddError("Usage: password <oldpw> <newpw>") + if len(args) not in [0,2]: + self.AddError("Usage: password [<oldpw> <newpw>]") return sender = mail.GetSender() + if len(args) == 0: + # Mail user's password to user + user = self.FindUser(sender) + if user and self.passwords.has_key(user): + self.AddToResponse("You are subscribed as %s,\n" + " with password: %s" % + (user, self.passwords[user]), + trunc=0) + else: + self.AddError("Found no password for %s" %sender, trunc=0) + return + # Try to change password try: self.ConfirmUserPassword(sender, args[0]) self.ChangeUserPassword(sender, args[1], args[1]) -- Harald