On Thu, 8 Jan 2009, JVlad wrote:

> >>Hi,
> >>
> >>Spamassassin 3.2 works very good for me. Now I want to write a plugin in
> >>Perl that will be executed by spamassassin after each email is processed.
> >>This script would have to know <sender address>, <sender ip>, and <score
> >>assigned by SA>. Is it possible?
>
> >Many mail packages have built in SA support. What are you using?
> >(apologies if this has been stated I missed the start of this thread)
> >Amavis, Qmail and even some widoze mail app's have options.
>
> sendmail + spamassassin milter (written by Georg C. F. et al)
> everything works great so far,
> except I need to save the spamassassin results (score+sender) and do this
> synchronously, right after the score is calculated.
> I'd even write a plugin for spamassassin but I don't see where to start and
> I'm not sure
> if the plugin api would allow me to do what I want.

All that info is available in the milter. If you're willing to do some "c"
programming, you could modify the milter to do some postprocessing after
it gets the results back from spamd. If you were to work in hooks to
"Sendmail::Milter" then you could code your add-ins in Perl.

-- 
Dave Funk                                  University of Iowa
<dbfunk (at) engineering.uiowa.edu>        College of Engineering
319/335-5751   FAX: 319/384-0549           1256 Seamans Center
Sys_admin/Postmaster/cell_admin            Iowa City, IA 52242-1527
#include <std_disclaimer.h>
Better is not better, 'standard' is better. B{

Reply via email to