This appears to do what I want -- removes everything except the names of the list subscriptions:
diff --git a/mailpasswds b/mailpasswds index f194dc6..5f91f34 100644 --- a/mailpasswds +++ b/mailpasswds @@ -151,19 +151,8 @@ def main(): continue # Group by the lower-cased address, since Mailman always # treates per...@dom.ain the same as per...@dom.ain. - try: - password = mlist.getMemberPassword(member) - except Errors.NotAMemberError: - # Here's a member with no passwords, which I think was - # possible in older versions of Mailman. Log this and - # move on. - syslog('error', 'password-less member %s for list %s', - member, mlist.internal_name()) - continue - - - optionsurl = mlist.GetOptionsURL(member) - + password = '' + optionsurl = '' lang = mlist.getMemberLanguage(member) info = (listaddr, password, optionsurl, lang) userinfo.setdefault(member, []).append(info) @@ -221,8 +210,7 @@ def main(): i18n.set_language(poplang) # Craft table header after language was set header = '%-40s %-10s\n%-40s %-10s' % ( - _('List'), _('Password // URL'), '----', '--------') - + _('Your subscriptions'), _(''), '----', ' ') header = tounicode(header, enc) # Add the table to the end so it doesn't get wrapped/filled text += (header + '\n' + NL.join(table)) On Tue, Aug 20, 2019 at 3:06 PM Russell Clemings <rclemi...@gmail.com> wrote: > OK, so I also want to remove the passwords themselves from the monthly > reminder (we're running all of our lists through Drupal and don't want > people logging into the Mailman interface anyway). > > Is this (from 2008) still the best way to do that? I gather that it will > need to be a patch that is reinstalled with every Mailman update but I've > already got another one of those so no big deal. > > https://mail.python.org/pipermail/mailman-users/2008-September/063158.html > > > > > On Tue, Aug 20, 2019 at 2:53 PM Russell Clemings <rclemi...@gmail.com> > wrote: > >> Thanks, worked perfectly (and a good thing, because there were in fact >> some garbles). >> >> On Tue, Aug 20, 2019 at 2:45 PM Mark Sapiro <m...@msapiro.net> wrote: >> >>> On 8/20/19 2:34 PM, Russell Clemings wrote: >>> > I'm trying to customize cronpass.txt. (I understand that it needs to >>> go in >>> > templates/site/en/cronpass.txt.) >>> > >>> > I think I've got it basically figured out, but I'd like to test it >>> before >>> > we get to the end of the month and a couple thousand possibly messed-up >>> > monthly password reminders go out. Is there a way to test it, e.g. >>> sending >>> > a copy just to myself? >>> >>> Create (or use an existing) test list with only you as a member. Make >>> sure the list's send_reminders is Yes and your options "Get password >>> reminder email for this list?" for the list is Yes and then install your >>> templates/site/en/cronpass.txt and run Mailman's >>> >>> cron/mailpasswds -l LISTNAME >>> >>> with your test list's LISTNAME to mail reminders for only that list. >>> >>> -- >>> Mark Sapiro <m...@msapiro.net> The highway is for gamblers, >>> San Francisco Bay Area, California better use your sense - B. Dylan >>> ------------------------------------------------------ >>> Mailman-Users mailing list Mailman-Users@python.org >>> https://mail.python.org/mailman/listinfo/mailman-users >>> Mailman FAQ: http://wiki.list.org/x/AgA3 >>> Security Policy: http://wiki.list.org/x/QIA9 >>> Searchable Archives: >>> http://www.mail-archive.com/mailman-users%40python.org/ >>> Unsubscribe: >>> https://mail.python.org/mailman/options/mailman-users/rclemings%40gmail.com >>> >> >> >> -- >> =============================================== >> Russell Clemings >> <russ...@clemings.com> >> =============================================== >> > > > -- > =============================================== > Russell Clemings > <russ...@clemings.com> > =============================================== > -- =============================================== Russell Clemings <russ...@clemings.com> =============================================== ------------------------------------------------------ Mailman-Users mailing list Mailman-Users@python.org https://mail.python.org/mailman/listinfo/mailman-users Mailman FAQ: http://wiki.list.org/x/AgA3 Security Policy: http://wiki.list.org/x/QIA9 Searchable Archives: http://www.mail-archive.com/mailman-users%40python.org/ Unsubscribe: https://mail.python.org/mailman/options/mailman-users/archive%40jab.org