[Mailman-Users] Custom footer based on sender's email
Rob Jackson
robertj at linux4free.com
Thu May 11 19:13:49 CEST 2006
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 at value.net]
Sent: Wednesday, May 10, 2006 12:42 PM
To: Rob Jackson; mailman-users at 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 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