Command syntax problem

David Relson relson at osagesoftware.com
Fri Sep 24 02:49:35 CEST 2004


On Thu, 23 Sep 2004 17:11:54 -0700 (PDT)
Charles Hewson wrote:

> What did I miss in the man page. I have reread several times?

Hi Charles,

Doesn't look like you missed anything, except when using "-Q" there's no
need (or value) in also using "-I...".  The 119714x..... values are just
plain wrong.  Naturally, the code works fine on my 32-bit AMD processor:

[relson at osage src]$ ./bogofilter -C -D -v -M -o0.4,0.45 -Q
# bogofilter version 0.92.6

robx        = 0.520000  # (5.20e-01)
robs        = 0.017800  # (1.78e-02)
min_dev     = 0.375000  # (3.75e-01)
ham_cutoff  = 0.450000  # (4.50e-01)
spam_cutoff = 0.400000  # (4.00e-01)
ns_esf      = 1.000000  # (1.00e+00)
sp_esf      = 1.000000  # (1.00e+00)

Looking at the code for processing '-o0.4,0.45' I see it uses "double *"
parameters (see attachment).  The excessively big numbers being printed
makes me wonder if the strtod() is doing something odd or if the
printf() formats are wrong for your architecture.  

Is your SunOS machine RISC and/or 64-bit and/or big-endian???

Try the attached patch (patch.0923.SunOS.txt) and let me know what
happens.  It should give 4 lines of extra output, as in:

[relson at osage src]$ ./bogofilter -C -D -v -M -o0.4,0.45 -Q
sc 0.0000, hc 0.0000
val 0.4000
val 0.4500
sc 0.4000, hc 0.4500
# bogofilter version 0.92.6
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: cutoff.txt
URL: <http://www.bogofilter.org/pipermail/bogofilter/attachments/20040923/c2a4baa4/attachment.txt>
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: patch.0923.SunOS.txt
URL: <http://www.bogofilter.org/pipermail/bogofilter/attachments/20040923/c2a4baa4/attachment-0001.txt>


More information about the Bogofilter mailing list