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

Rob Jackson robertj at linux4free.com
Wed May 10 19:52:04 CEST 2006

This is the diff on the Decorate.py  I have also tried putting it other
placed throught the script without success.  There will be an if statement
that will grap the senders e-mail address so this only happens to mail
coming from my global gateway.

<     #Testing to replace footer
<     pl = msg.get_payload(decode=True)
<     re.sub('AZ', 'new text', pl)
<     msg.set_payload(pl)

-----Original Message-----
From: Mark Sapiro [mailto:msapiro at value.net] 
Sent: Wednesday, May 10, 2006 11:27 AM
To: Rob Jackson; mailman-users at python.org
Subject: RE: [Mailman-Users] Custom footer based on sender's email

Rob Jackson wrote:

>Ok, I have been trying to use this in several places without success.  
>I have added to the Decorate.py and even tried to add it to my custom 
>module used for a global incoming gateway.  I replaced the re.sub line
>re.sub('AZ', 'new text', pl)
>In the message that I send, I only put AZ in the body of the message.  
>I do not get any errors, but nothing happens to the message.  The AZ 
>does not get replaced.

I need to see more context around what you are doing to understand what's
failing. Something like a 'diff -u' between your modified Decorate.py and
the base.

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