Command syntax problem

Charles Hewson cahewson at eskimo.com
Fri Sep 24 23:09:07 CEST 2004


On Thu, 23 Sep 2004, David Relson wrote:

> 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
>

I had added the -Q to get more information because I was not getting the
expecter results from the file in -I.

Results after patch:

[cahewson] ./Bogofilter-new/bin/bogofilter -C -D -v -M -o0.45,0.4 -Q
sc 0.0000, hc 0.0000
val 1197288.0000
val 1197293.0000
sc 1197288.0000, hc 1197293.0000
# bogofilter version 0.92.6

Charles



More information about the Bogofilter mailing list