1 message in net.sourceforge.lists.courier-users[courier-users] Courier pythonfilter ...
FromSent OnAttachments
Lloyd ZusmanNov 25, 2006 9:47 am 
Actions with this message:
Paste this link in email or IM:
Paste this link in email or IM:
Atom feed for this thread
Paste this URL into your reader:
Subject:[courier-users] Courier pythonfilter custom startup code?Actions...
From:Lloyd Zusman (lj@asfast.com)
Date:Nov 25, 2006 9:47:38 am
List:net.sourceforge.lists.courier-users

I'm using Gordon Messmer's excellent pythonfilter package[*]. What I'd like to do is to cause special code to be invoked during its startup for the purpose of making common data available to all the filters.

For example, there is a subset of domains that I host for which I want to do special spam filtering. I'd like to read this list at startup and store the set of domains in some sort of data structure that would be available to all of the filter modules.

Is this possible without changing the pythonfilter code, or will I have to hack in this capability?

Thanks in advance.

[*] http://www.dragonsdawn.net/~gordon/courier-patches/courier-pythonfilter