diff options
| author | bwarsaw | 2003-01-02 05:40:57 +0000 |
|---|---|---|
| committer | bwarsaw | 2003-01-02 05:40:57 +0000 |
| commit | 5a94d21f7ca4393e65ac5b4e3c39e932901bb5a8 (patch) | |
| tree | 3fdc981b6c7e5dad35dac1faa7399b47f2734e88 | |
| parent | e6a123f6ce2d3738b4b32a74a94f003eeb012109 (diff) | |
| download | mailman-5a94d21f7ca4393e65ac5b4e3c39e932901bb5a8.tar.gz mailman-5a94d21f7ca4393e65ac5b4e3c39e932901bb5a8.tar.zst mailman-5a94d21f7ca4393e65ac5b4e3c39e932901bb5a8.zip | |
main(): Treat addresses case-insensitively for grouping purposes.
| -rwxr-xr-x | cron/mailpasswds | 16 |
1 files changed, 7 insertions, 9 deletions
diff --git a/cron/mailpasswds b/cron/mailpasswds index a009e92b5..2c36313d1 100755 --- a/cron/mailpasswds +++ b/cron/mailpasswds @@ -1,19 +1,19 @@ #! @PYTHON@ # -# Copyright (C) 1998,1999,2000,2001,2002 by the Free Software Foundation, Inc. +# Copyright (C) 1998-2003 by the Free Software Foundation, Inc. # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License # as published by the Free Software Foundation; either version 2 # of the License, or (at your option) any later version. -# +# # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # GNU General Public License for more details. -# +# # You should have received a copy of the GNU General Public License -# along with this program; if not, write to the Free Software +# along with this program; if not, write to the Free Software # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. """Send password reminders for all lists to all users. @@ -136,15 +136,13 @@ def main(): for mlist in byhost[host]: listaddr = mlist.GetListEmail() for member in mlist.getMembers(): - # BAW: we group by cpaddress because although it's highly - # likely, there's no guarantee that person@list1 is the same - # as PERSON@list2. Sigh. - cpaddress = mlist.getMemberCPAddress(member) + # Group by the lower-cased address, since Mailman always + # treates person@dom.ain the same as PERSON@dom.ain. password = mlist.getMemberPassword(member) optionsurl = mlist.GetOptionsURL(member) lang = mlist.getMemberLanguage(member) info = (listaddr, password, optionsurl, lang) - userinfo.setdefault(cpaddress, []).append(info) + userinfo.setdefault(member, []).append(info) # Now that we've collected user information for this host, send each # user the password reminder. for addr in userinfo.keys(): |
