Bryan Hoover wrote:
> > perl ./mass-check -c ./spamassassin -j 1 --loghits --mid --mbox ./corpus.ham/*  
> > >ham.log
> > perl ./mass-check -c ./spamassassin -j 1 --loghits --mid --mbox ./corpus.spam/* 
> > >spam.log
> > perl ./hit-frequencies -x -c /home/Owner/sa-masses/spamassassin
> 
> The answer, as it appears in the hit-frequencies code, may be in the x
> parameter.

I've continued looking at the hit-frequencies code.  I jumped to
conclusions on the above -- I see now that I was wrong -- sorry Robert,
if that sent you looking in the wrong direction.

This problem has piqued my interest though.  I wonder if directory
rights could be involved.  From the code, it does look like whether the
missing information gets output depends on whether the corresponding
rule is there -- the implication being, the stats are there from the
ham/spam log files, but hit-frequencies is not seeing the rules files. 
This is speculation, intuition at this point though, as it's late, and
I'm still looking...

Bryan
> 
> > When I run hit-frequencies with any -c parameter I've tried, I get the
> > header line
> > > OVERALL     SPAM      HAM     S/O   SCORE  NAME
> > >   81383    65609    15774    0.806   0.00    0.00  (all messages)
> > (the counts are right -- my corpus today is 65609s/15774h), and no
> > rule-specific detail.
> >
> > What do I need to do to have hit-frequencies report on the stats for my
> > specific rules?
> 
> The options pivoting output code reads:
> 
> if ($opt_p) {
>   if ($opt_f) {
>     printf "%7s %7s %7s  %6s  %6s  %6s  %s\n",
>         "OVERALL%", "FNEG%", "FPOS%", "S/O", "RANK", "SCORE", "NAME";
>   } else {
>     printf "%7s %7s  %7s  %6s  %6s  %6s  %s\n",
>         "OVERALL%", "SPAM%", "HAM%", "S/O", "RANK", "SCORE", "NAME";
>   }
>   printf "%7d  %7d  %7d  %7.3f %6.2f  %6.2f  (all messages)\n",
>         $hdr_all, $hdr_spam, $hdr_ham,
>         soratio ($num_spam,$num_ham), 0, 0;
> 
>   $hdr_spam = ($num_spam / $hdr_all) * 100.0;
>   $hdr_ham = ($num_ham / $hdr_all) * 100.0;
>   $hdr_all = 100.0;             # this is obvious
>   printf "%7.3f  %7.4f  %7.4f  %7.3f %6.2f  %6.2f  (all messages as
> %%)\n",
>         $hdr_all, $hdr_spam, $hdr_ham,
>         soratio ($num_spam,$num_ham), 0, 0;
> 
> } elsif ($opt_x) {
>   printf "%7s  %7s  %7s  %6s  %6s  %s\n",
>         "OVERALL", "SPAM", "HAM", "S/O", "SCORE", "NAME";
>   printf "%7d  %7d  %7d  %7.3f %6.2f  %6.2f  (all messages)\n",
>         $hdr_all, $hdr_spam, $hdr_ham,
>         soratio ($num_spam,$num_ham), 0, 0;
> 
> } else {
>   printf "%10s  %10s  %10s  %s\n",
>         "OVERALL", "SPAM", "HAM", "NAME";
>   printf "%10d  %10d  %10d  (all messages)\n",
>         $hdr_all, $hdr_spam, $hdr_ham;
> }
> 
> Looks like that -x, should be -p which implies -x as well.
> 
> Bryan
> >
> > Many thanks, and a Happy New Year to all!
> >
> > Bob Menschel
> >
> > -------------------------------------------------------
> > This SF.net email is sponsored by: IBM Linux Tutorials.
> > Become an expert in LINUX or just sharpen your skills.  Sign up for IBM's
> > Free Linux Tutorials.  Learn everything from the bash shell to sys admin.
> > Click now! http://ads.osdn.com/?ad_id=1278&alloc_id=3371&op=click
> 
> --
> Were I to wish for anything I would not wish for wealth and power, but
> for the passion of the possible, that eye which everywhere, ever young,
> ever burning, sees posibility. - (Soren Kierkegaard - Either/Or)
> 
> http://www.wecs.com/content.htm
> 
> This signature file is generated by Pick-a-Tag !
> Written by Jeroen van Vaarsel
> http://www.google.com/search?hl=en&ie=ISO-8859-1&q=pick-a-tag
> 
> -------------------------------------------------------
> This SF.net email is sponsored by: IBM Linux Tutorials.
> Become an expert in LINUX or just sharpen your skills.  Sign up for IBM's
> Free Linux Tutorials.  Learn everything from the bash shell to sys admin.
> Click now! http://ads.osdn.com/?ad_id=1278&alloc_id=3371&op=click

-- 
What is a poet?  An unhappy man who hides deep anguish in his heart, but
whose lips are so formed that when the sigh and cry pass through them,
it sounds like lovely music. - (Soren Kierkegaard - Either/Or)

http://www.wecs.com/content.htm

This signature file is generated by Pick-a-Tag !
Written by Jeroen van Vaarsel
http://www.google.com/search?hl=en&ie=ISO-8859-1&q=pick-a-tag



-------------------------------------------------------
This SF.net email is sponsored by: IBM Linux Tutorials.
Become an expert in LINUX or just sharpen your skills.  Sign up for IBM's
Free Linux Tutorials.  Learn everything from the bash shell to sys admin.
Click now! http://ads.osdn.com/?ad_id=1278&alloc_id=3371&op=click
_______________________________________________
Spamassassin-talk mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/spamassassin-talk

Reply via email to