oddity.
David Relson
relson at osagesoftware.com
Mon Apr 14 15:34:28 CEST 2003
At 01:12 AM 4/14/03, michael at optusnet.com.au wrote:
>Secondly, calling bogofilter(double *) twice isn't safe. It gives
>different results depending on how often it's been called. This is
>puzzling to me. Anyone know why that would be so??
>
>[root db]# (echo spam/8/1048940498 ; echo spam/8/1048945768) | bogofilter
>-c /tmp/bogofilter.cf -d d/0 -v -b
>spam/8/1048940498 X-Bogosity: No, tests=bogofilter, spamicity=0.841708,
>version=0.11.1.8
>spam/8/1048945768 X-Bogosity: No, tests=bogofilter, spamicity=0.637994,
>version=0.11.1.8
>[root db]# (echo spam/8/1048945768 ; echo spam/8/1048940498) | bogofilter
>-c /tmp/bogofilter.cf -d d/0 -v -b
>spam/8/1048945768 X-Bogosity: No, tests=bogofilter, spamicity=0.787672,
>version=0.11.1.8
>spam/8/1048940498 X-Bogosity: No, tests=bogofilter, spamicity=0.821849,
>version=0.11.1.8
>
>most curious.
Michael,
A bit of investigation shows that having a "^From " line is necessary to
the correct operation of bulk mode. Without it, the lexer doesn't function
properly. Can you confirm that your problem messages lack the "^From " line?
When the "^From " line is missing it appears that the lexer needs to be
poked/prodded to handle a second invocation. I'll dig deeper into what's
going on, but it may be a few days ...
David
More information about the Bogofilter
mailing list