You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@spamassassin.apache.org by Justin Mason <jm...@jmason.org> on 2009/01/08 22:37:03 UTC

Re: custom post-processing. Howto?

Theo Van Dinter writes:
> On Thu, Jan 08, 2009 at 11:12:47PM +0300, JVlad wrote:
> > Thanks, but is there a way to get this perl script executed as part of 
> > Spamassassin work and pass there score, ip, and address?
> > Does spamassassin support such post-processing plugins?
> 
> Yes, though unfortunately writing plugins is rather badly documented. :(
> If you "grep -r call_plugins" through the tarball, you'll find all the plugin
> calls.
> 
> You'd probably want check_end or finish_tests, possibly log_scan_result
> if you use spamd.  You can get some idea of how to do plugins via looking at
> the code in lib/Mail/SpamAssassin/Plugin ...

or read the perldoc for Mail::SpamAssassin::Plugin .  All of the plugin
instrumentation hooks are documented there ;)

I think log_scan_result is your best bet.

--j.