
Sorry about that. I could be going about this all wrong. Also, I am fairly new to python, I normally do perl, so learning how this softwar works has been just a little difficult. Here it is. +++ /u1/mailman/Mailman/Handlers/Decorate.py 2006-05-10 11:36:43.000000000 -0600 @@ -188,6 +188,12 @@ del msg['content-disposition'] msg['Content-Type'] = 'multipart/mixed' + #Testing to replace footer + pl = msg.get_payload(decode=True) + re.sub('AZ', 'new text', pl) + msg.set_payload(pl) + + def decorate(mlist, template, what, extradict={}): -----Original Message----- From: Mark Sapiro [mailto:msapiro@value.net] Sent: Wednesday, May 10, 2006 12:42 PM To: Rob Jackson; mailman-users@python.org Subject: RE: [Mailman-Users] Custom footer based on sender's email Rob Jackson wrote:
This is the diff on the Decorate.py
191,196d190 < #Testing to replace footer < pl = msg.get_payload(decode=True) < re.sub('AZ', 'new text', pl) < msg.set_payload(pl) < <
Please either give me a unified context diff (diff -u) or at least tell me what Mailman version this is. -- Mark Sapiro <msapiro@value.net> The highway is for gamblers, San Francisco Bay Area, California better use your sense - B. Dylan