procmail & 3-state configuration

Dave Lovelace dave at firstcomp.biz
Mon Dec 22 19:26:53 CET 2003


It looks like I need to lower my cutoff.  I'd really, REALLY rather not
see any false positives get lost in the pile, though; what I'd like
to do is use 3-state classification, route spam (high values) to one file
(which I'd glance through as I now do), unsures to a second file (to be
really looked at), and good mail (low values) to be delivered as usual.

I'm not a procmail expert.  I've read the various procmail man pages & some
other stuff, as well as the bogofilter man page.  What I don't understand
is how to do this without 2 separate passes through bogofilter, with
no ham cutoff but with 2 different spam cutoffs.

It seems as though I ought to be able to assign the exit code from bogofilter
to a variable, and then do numeric comparisons on that.  I haven't seen
anything that helps me know how to do either part of this.  I suppose I
could generate an X-Bogosity header & then grep (with procmail's builtin grep)
for ".9" and ".8" and so forth, one after the other; this at least would be
much, much faster than running bogofilter twice, but it seems to me there's
got to be something better than that.

Does anyone do anything like this or know enough about procmail to offer
help?  Thanks.

-- 
- Dave Lovelace
  dave at firstcomp.biz
  davel at cyberspace.org




More information about the Bogofilter mailing list