[Mailman-Users] [PATCH] Subscription Confirmation via VERP (was: Re: Subscribing to several lists at once? / Customized confirmation subjects)

Axel Beckert beckert+mailman-users at ecos.de
Mon Dec 8 21:57:41 CET 2003


Hi!

At least one problem is solved now:

Am Mon, Dec 08, 2003 at 08:51:47PM +0100, Axel Beckert schrieb:
> > The new ones look just like this:
> > 
> > |  confirm xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
> > 
> > Is it easily possible to customize this subject to be a little bit
> > more understandable for a non-english speaking, non-technical
> > audience, e.g. by a descriptive prefix in the configured language? Or
> > do I need to patch Mailman and/or create new locales?
> 
> Default.py suggests to use VERP_CONFIRMATIONS:
> 
> # For nicer confirmation emails, use a VERP-like format which encodes the
> # confirmation cookie in the reply address.  This lets us put a more user
> # friendly Subject: on the message, but requires cooperation from the MTA.
> # Format is like VERP_FORMAT above, but with the following substitutions:
> 
> But doing an "find Mailman -type f -print0 | xargs -0 fgrep
> VERP_CONFIRMATIONS" shows that this feature only seems to be
> implemented for invitations.

This patch works for me at least for a few short tests:

> diff -C3 MailList.py.backup MailList.py
*** MailList.py.backup  Mon Dec  8 21:04:18 2003
--- MailList.py Mon Dec  8 21:52:30 2003
***************
*** 836,843 ****
                  text=text, lang=lang)
              # BAW: See ChangeMemberAddress() for why we do it this way...
              del msg['subject']
!             msg['Subject'] = 'confirm ' + cookie
!             msg['Reply-To'] = self.GetRequestEmail()
              msg.send(self)
              who = formataddr((name, email))
              syslog('subscribe', '%s: pending %s %s',
--- 836,847 ----
                  text=text, lang=lang)
              # BAW: See ChangeMemberAddress() for why we do it this way...
              del msg['subject']
!             if mm_cfg.VERP_CONFIRMATIONS:
!                 msg['Subject'] = 'Please confirm your subscription'
!                 msg['Reply-To'] = self.GetConfirmEmail(cookie)
!             else:
!                 msg['Subject'] = 'confirm ' + cookie
!                 msg['Reply-To'] = self.GetRequestEmail()
              msg.send(self)
              who = formataddr((name, email))
              syslog('subscribe', '%s: pending %s %s',

Next challenge (for me as a really bloody Python newbie who is used to
hack Perl :) is to get the subject out of the locales.

HTH.

            Kind regards, Axel Beckert
-- 
-------------------------------------------------------------
Axel Beckert      ecos electronic communication services gmbh
it security solutions * dynamic web applications * consulting

Mail:       Tulpenstrasse 5       D-55276 Dienheim near Mainz
E-Mail:     beckert at ecos.de       Voice:     +49 6133 939-220
WWW:        http://www.ecos.de/   Fax:       +49 6133 939-333
-------------------------------------------------------------




More information about the Mailman-Users mailing list