Bug 2965 - hit-frequencies -x headers are wrong
Summary: hit-frequencies -x headers are wrong
Status: RESOLVED FIXED
Alias: None
Product: Spamassassin
Classification: Unclassified
Component: Masses (show other bugs)
Version: 2.63
Hardware: All All
: P5 trivial
Target Milestone: 2.70
Assignee: SpamAssassin Developer Mailing List
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-01-24 19:54 UTC by Bob Menschel
Modified: 2004-01-26 14:55 UTC (History)
0 users



Attachment Type Modified Status Actions Submitter/CLA Status

Note You need to log in before you can comment on or make changes to this bug.
Description Bob Menschel 2004-01-24 19:54:27 UTC
When using the command "hit-frequencies -x", the column headers are missing 
a "RANK" column header. Example:  First header is from "-x", Second header is 
from "-x -p"
OVERALL     SPAM      HAM     S/O   SCORE  NAME
  91714    74113    17601    0.808   0.00    0.00  (all messages)
   7431     7429        2    0.999   1.00   3.00  RM_bpt_longwords68a
   6596     6595        1    0.999   0.98   1.00  RM_bpt_longwords69a

OVERALL%   SPAM%     HAM%     S/O    RANK   SCORE  NAME
  91714    74113    17601    0.808   0.00    0.00  (all messages)
100.000  80.8088  19.1912    0.808   0.00    0.00  (all messages as %)
  8.102  10.0239   0.0114    0.999   1.00    3.00  RM_bpt_longwords68a
  7.192   8.8986   0.0057    0.999   0.98    1.00  RM_bpt_longwords69a

Code involved: 
} 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",

2nd and 3rd line should instead be something like:
  printf "%7s  %7s  %7s  %6s  %6s  %6s  %s\n",
  	"OVERALL", "SPAM", "HAM", "S/O", "RANK", "SCORE", "NAME";
Comment 1 Justin Mason 2004-01-26 23:55:36 UTC
thx -- fixed.  I guess we haven't used -x without -p in a while ;)