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

Mark Sapiro msapiro at value.net
Thu May 11 20:25:39 CEST 2006


Rob Jackson wrote:
>
>I used to be getting an error when I had it other
>places, and then when I moved it to the end, the error went away,


Because you were no longer executing the code.


>well it is
>back now that I am actualy hitting the code before it exits.  Here is my
>error.  Thanks for helping out with my ignorance.
>
>"May 11 11:54:49 2006 (11951) Uncaught runner exception: global name 're' is
>not defined"
>
>What is the best way to define 're'


@@ -17,6 +17,7 @@

 """Decorate a message by sticking the header and footer around it."""

+import re
 import logging

 from email.MIMEText import MIMEText


-- 
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