spamicity
Tom Allison
tallison at tacocat.net
Wed Nov 20 13:43:01 CET 2002
Con Tassios wrote:
> I have bogofilter successfully filtering (most) spam into a seperate folder.
>
> One spam I just received displays the following if I pipe it to bogofilter -vv
>
>
>
> How did bogofilter/procmail decide this is spam when the spamicity is 0.000000?
>
>
> procmail entry:
>
> :0HB
> * ? bogofilter
> {
> :0c
> | bogofilter -s
>
> :0
> mail/spam
> }
>
> :0EHBc
> | bogofilter -n
>
>
>
>
> ---------------------------------------------------------------------
> FAQ: http://bogofilter.sourceforge.net/bogofilter-faq.html
> To unsubscribe, e-mail: bogofilter-unsubscribe at aotto.com
> For summary digest subscription: bogofilter-digest-subscribe at aotto.com
> For more commands, e-mail: bogofilter-help at aotto.com
Here's a guess:
"* ? foo" only matches on an exitcode of '0'
bogofilter exits '0' when spam.
But if it exits with anything else (including an internal error
code) your script will dump it into non-spam and presumeably
deliver it.
Can you check the procmail log to see if there was an error with
bogofilter? In your case, any error would result in deliver.
It might be better if, assuming bogofilter exits with a '1' for
non-spam to look for that specifically in this line:
:0EHBc
| bogofilter -n
(I think you add "* $? ?? ^^1^^")
And allow all failures to be delivered without any inputs into
bogofilter.
--
A strong conviction that something must be done is the parent of many
bad measures.
-- Daniel Webster
More information about the Bogofilter
mailing list