[Mailman-Developers] mailpasswds and SuppressPasswordReminder

Jon Parise jon at csh.rit.edu
Sun Feb 2 21:14:22 EST 2003


It looks like the "massive rewrite" that occured between revisions 2.5
and 2.5 of cron/mailpasswds removed the SuppressPasswordReminder
check.

Attached is a totally untested patch provided simply to suggest a
possible fix.

-- 
Jon Parise (jon at csh.rit.edu)  ::  http://www.csh.rit.edu/~jon/
-------------- next part --------------
Index: mailpasswds
===================================================================
RCS file: /cvsroot/mailman/mailman/cron/mailpasswds,v
retrieving revision 2.14
diff -u -r2.14 mailpasswds
--- mailpasswds	2 Jan 2003 05:40:57 -0000	2.14
+++ mailpasswds	3 Feb 2003 02:12:47 -0000
@@ -136,6 +136,10 @@
         for mlist in byhost[host]:
             listaddr = mlist.GetListEmail()
             for member in mlist.getMembers():
+                # The user may have disabled password reminders for this list
+                if mlist.getMemberOption(member,
+                                         mm_cfg.SuppressPasswordReminder):
+                    continue
                 # Group by the lower-cased address, since Mailman always
                 # treates person at dom.ain the same as PERSON at dom.ain.
                 password = mlist.getMemberPassword(member)


More information about the Mailman-Developers mailing list