[Mailman-Users] Custom footer based on sender's email

Rob Jackson robertj at linux4free.com
Thu May 4 18:03:51 CEST 2006


Actually I just learned that not only do I need to add a footer, I have to
remove the current footer of the incoming message.  I got custom footer
piece to work now, but now I actually need to edit the body of the message.
What might be the best way of doing this?

-Rob


-----Original Message-----
From: Mark Sapiro [mailto:msapiro at value.net] 
Sent: Wednesday, May 03, 2006 6:18 PM
To: Rob Jackson; mailman-users at python.org
Subject: Re: [Mailman-Users] Custom footer based on sender's email

Rob Jackson wrote:

>I need to figure out how to add a footer to an e-mail coming from a
specific
>user.   I just can't seem to figure this out.   I have created a module to
>weed out the address, but now I need to munge the body of the message.


You will need to do several things.

1) set OWNERS_CAN_ENABLE_PERSONALIZATION = Yes in mm_cfg.py so you can do

2) set the list's personalize option (in Non-digest options) to Yes so you
will be sending separately to each recipient, then

3) see Mailman/Handlers/Decorate.py for the current code that adds
personalized headers and footers. You either have to make your changes here
or in Mailman/Handlers/SMTPDirect.py in the verpdeliver() function.

-- 
Mark Sapiro <msapiro at value.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