[Mailman-Users] how to test template customization
Russell Clemings
rclemings at gmail.com
Tue Aug 20 19:14:22 EDT 2019
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 person at dom.ain the same as PERSON at 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 <rclemings at 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 <rclemings at 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 <mark at 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 <mark at msapiro.net> The highway is for gamblers,
>>> San Francisco Bay Area, California better use your sense - B. Dylan
>>> ------------------------------------------------------
>>> Mailman-Users mailing list Mailman-Users at 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
>> <russell at clemings.com>
>> ===============================================
>>
>
>
> --
> ===============================================
> Russell Clemings
> <russell at clemings.com>
> ===============================================
>
--
===============================================
Russell Clemings
<russell at clemings.com>
===============================================
More information about the Mailman-Users
mailing list