Greetings Python folks,

I appologize for the off-topic and totally
lame question I'm about to ask, but I figure
Jason has a lot of experience with this
considering that I'm using TMDA code:

How do I make my custom python script load
the custom email module that comes with TMDA
instead of the default python email module?

My script is here:

/var/qmail/queue-filters/myscript.py

And the TMDA email module has been copied to here:

/var/qmail/queue-filters/pythonlib/email

But it doesn't appear to be loading because I
put a print statement in Parser.py's HeaderParser
init function, and the print output never shows
up when I run my script...

I'm importing the module functions like this
from my custom script:

 from email.Message import Message
 from email.Parser import HeaderParser


Any tips? Reference material I can read about
overloading built in modules? Debug tactics?

Thanks!

-- 
Jesse Guardiani, Systems Administrator
WingNET Internet Services,
P.O. Box 2605 // Cleveland, TN 37320-2605
423-559-LINK (v)  423-559-5145 (f)
http://www.wingnet.net


_________________________________________________
tmda-workers mailing list ([EMAIL PROTECTED])
http://tmda.net/lists/listinfo/tmda-workers

Reply via email to