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.
191,196d190 < #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:[EMAIL PROTECTED] Sent: Wednesday, May 10, 2006 11:27 AM To: Rob Jackson; mailman-users@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 with: > >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 <[EMAIL PROTECTED]> The highway is for gamblers, San Francisco Bay Area, California better use your sense - B. Dylan ------------------------------------------------------ Mailman-Users mailing list Mailman-Users@python.org http://mail.python.org/mailman/listinfo/mailman-users Mailman FAQ: http://www.python.org/cgi-bin/faqw-mm.py Searchable Archives: http://www.mail-archive.com/mailman-users%40python.org/ Unsubscribe: http://mail.python.org/mailman/options/mailman-users/archive%40jab.org Security Policy: http://www.python.org/cgi-bin/faqw-mm.py?req=show&file=faq01.027.htp