Robert Menschel wrote:
> 
> I'm hoping someone can help me with mass-check, or more specifically with
> hit-frequencies.
> 
> I've installed Cygwin on my W/XP-H box. Within Cygwin I've installed SA,
> not to use for mail filtering (that happens on my servers), but
> specifically for mass-check.
> 
> Directory structure:
> C:\cygwin
>      /home
>         /owner
>            /Mail-SpamAssassin-2.60
>              /blib
>              /build
>              /contrib
>              /lib
>              /old
>              /qmail
>              /rules
>              /spamd
>              /sql
>              /t
>              /tools
>              /masses
>                 /corpora
>                 /graphs
>                 /rule-qa
>                 /tenpass
>                 /tmp
>                 /corpus.ham
>                 /corpus.spam
>                 /results
> 
> In the masses directory, along with all of the SA-provided code, I have
> created my own masscheck.sh shell script, which contains the commands:
> 
> mv    $testfile            spamassassin/user_prefs
> echo                     >>spamassassin/user_prefs
> echo "use_bayes       0" >>spamassassin/user_prefs
> echo "auto_learn      0" >>spamassassin/user_prefs
> echo "required_hits   9" >>spamassassin/user_prefs
> echo "skip_rbl_checks 1" >>spamassassin/user_prefs
> rm -f ham.log spam.log
> 
> 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.

> 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
_______________________________________________
Spamassassin-talk mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/spamassassin-talk

Reply via email to