does the X-Bogosity line mess up spamicity calculations?

David Relson relson at osagesoftware.com
Thu Aug 5 02:58:05 CEST 2004


On Wed, 4 Aug 2004 17:52:18 -0700
Chris Wilkes wrote:

> On Wed, Aug 04, 2004 at 09:24:32PM -0300, Trevor Smith wrote:
> > But these messages already have an X-Bogosity line in them. Is this
> > undesirable? Does it matter at all? Does it matter a bit, but not
> > enough to really matter?
> 
> David pointed this out to me a while ago:
> 
> # s=/tmp/mail.txt
> # echo "X-Bogosity: No, tests=bogofilter, spamicity=0.000000,
> version=0.91.4" > $s# echo "Hi There" >> $s
> # echo "" > $s
> # echo "Body" >> $s
> # cat $s
> # bogofilter -I $s -vvv
> 
> You can see it skips the X-Bogosity header.
> 
> Chris

Alternatively, as a script (without a temp file):

#!/bin/sh

cat <<EOF | bogofilter  -vvv
To: receiver at domain.com
From: sender at domain.com
X-Bogosity: No, tests=bogofilter, spamicity=0.000000, version=0.92.4

Body
EOF



More information about the Bogofilter mailing list