bogofilter's exit codes

Gyepi SAM gyepi at praxis-sw.com
Mon Jul 28 20:50:51 CEST 2003


On Mon, Jul 28, 2003 at 10:05:07AM -0700, Malcolm Dew-Jones wrote:

> I would suggest that the error code return the calculated
> probability as a percent (i.e. 0-100), and errors return a much
> higher value, (e.g. 200 and above).  That way scripts can examine the
> probability and use it any way they wish.

> We patch bogofilter to do this, Our patch is just a hack that ...

I am definitely opposed to introducing this into the main code.

It flouts the long accepted semantics of exit codes for an experimental feature.

I would invoke bogofilter with the -v switch and parse the 'X-Bogosity:' header with a sed or perl scriptlet.

-Gyepi




More information about the bogofilter-dev mailing list