-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Hi,
I don't know if this is a bug or not but I thought I had better report it anyways. I initially had lots of problems getting the new spf.py filter in Gordon's pythonfilter 0.5 working properly... getting lots of stuff in my maillog like this: Jan 31 19:28:56 uridium courierfilter: Uncaught exception in "spf.py" dofilter function: exceptions.AttributeError:'module' object has no attribute 'check' Jan 31 19:28:56 uridium courierfilter: File "/etc/courier/filters/active/pythonfilter", line 169, in process_message Jan 31 19:28:56 uridium courierfilter: reply_code = i_filter[1]( message_body, message_control ) Jan 31 19:28:56 uridium courierfilter: File "/usr/lib/pythonfilter/spf.py", line 55, in dofilter Jan 31 19:28:56 uridium courierfilter: results = spf.check(i=ip,s=sender,h=helo) I tracked the problem to the 'import spf' statement at the very top of the file; it appears that my copy of Python (default install of Red Hat Linux 8.0) is confusing Jon's spf.py (the filter) with the module, spf.py, contained within the pyspf distribution. I renamed Jon's spf.py to spfcheck.py and all seems to work okay now. Of course, this may be a problem with my Python setup (such as a Python include path of '.:/usr/blah:/usr/lib/blah' with the cwd taking precedence) but as my setup is fairly common, default install of Python 2.2.1 on Red Hat Linux, I thought I should bring it to the attention of all concerned. Regards, Terry ,_, (O,O) Terry Froy - [EMAIL PROTECTED] | ICQ: 16139632 - IRC: LiteForce ( ) PGP Key ID: 1024D/5AA316A0 | WWW: http://www.terryfroy.com/ ="="=============================================================== This message has been signed with GnuPG - http://www.gnupg.org/ =================================================================== -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.3 (GNU/Linux) iD8DBQFAHAgdpSya/lqjFqARAgp4AJ44oWEOEMgzB1ai5aYpjnz48P3PWgCgl3HG TR5rlKIAO1V/UUPY785PuTc= =tulk -----END PGP SIGNATURE----- ------------------------------------------------------- The SF.Net email is sponsored by EclipseCon 2004 Premiere Conference on Open Tools Development and Integration See the breadth of Eclipse activity. February 3-5 in Anaheim, CA. http://www.eclipsecon.org/osdn _______________________________________________ courier-users mailing list [EMAIL PROTECTED] Unsubscribe: https://lists.sourceforge.net/lists/listinfo/courier-users
