[Mailman-Users] add 'Member Name' in body of welcome email

Mark Sapiro mark at msapiro.net
Wed Jun 9 17:40:17 CEST 2010


Jeff Johnson wrote:
>
>I did edit the source as follows:
>        text += Utils.maketext(
>            'subscribeack.txt',
>            {'real_name'   : self.real_name,
>             'host_name'   : self.host_name,
>             'welcome'     : welcome,
>             'umbrella'    : umbrella,
>             'emailaddr'   : self.GetListEmail(),
>             'listinfo_url': self.GetScriptURL('listinfo', absolute=True),
>             'optionsurl'  : self.GetOptionsURL(name, absolute=True),
>             'password'    : password,
>             'user'        : self.getMemberCPAddress(name),
>             'username'    : self.getMemberName(),


And if you look at what you quoted from me below, you'll see the above
needs to be

             'username'    : self.getMemberName(name),



>             }, lang=pluser, mlist=self)
[...]
>On Jun 8, 2010, at 11:31 PM, Mark Sapiro wrote:
>
>> Mark Sapiro wrote:
>>> 
>>> If you can patch the code, you could make %(username)s work by adding
>>> 
>>>            'username'    : self.getMemberName(),
>>> 
>>> to the dictionary passed to Utils.maketext() in the definition of the
>>> SendSubscribeAck() method of the Deliverer class in
>>> Mailman/Deliverer.py.
>> 
>> 
>> Ooops!  That should be
>> 
>>             'username'    : self.getMemberName(name),
>> 
>> Sorry for any confusion.

-- 
Mark Sapiro <mark at msapiro.net>        The highway is for gamblers,
San Francisco Bay Area, California    better use your sense - B. Dylan



More information about the Mailman-Users mailing list