Bug 2821 - SA score graph tool
Summary: SA score graph tool
Status: RESOLVED WONTFIX
Alias: None
Product: Spamassassin
Classification: Unclassified
Component: Tools (show other bugs)
Version: unspecified
Hardware: All All
: P5 enhancement
Target Milestone: Future
Assignee: SpamAssassin Developer Mailing List
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-12-09 08:34 UTC by Rich Puhek
Modified: 2019-07-30 16:32 UTC (History)
1 user (show)



Attachment Type Modified Status Actions Submitter/CLA Status
Print a graph of SA scores text/plain None Rich Puhek [HasCLA]

Note You need to log in before you can comment on or make changes to this bug.
Description Rich Puhek 2003-12-09 08:34:10 UTC
This is a little perl script which will scan a specified log file for
"identified spam" or "clean message" lines. It rounds off the score, tallies the
results, and prints a graph of scores and occurances. The graph is scaled to a
defalut width of 72.

I wrote this because I hoped to find a local minimum at a score between the peak
spam value and the peak nonspam value. I use this as my required_hits.

A portion of a graph follows, portions trimmed for brevety:

~/bin/sa_score_graph.pl /var/log/syslog | more
SpamAssassin score summary:
Minimum score: -112
Maximum score: 52
Minimum count: 0
Maximum count: 736
Scaling to: 0.0978260869565217
-112    :*
-111    :*
-110    :
-109    :
-108    :*
-107    :
-106    :*
-105    :
-104    :*********************************
-103    :*
-102    :*
-101    :*
-100    :*
-99     :*
-98     :*
-97     :*
-96     :*
-95     :*
-94     :*
-93     :*
-92     :*
-91     :
-90     :*
-89     :*
-88     :*
-87     :
-86     :*
-85     :
-84     :

(Snipped)

-13     :*
-12     :*
-11     :
-10     :
-9      :*
-8      :*
-7      :*
-6      :*
-5      :*
-4      :************************************************************************
-3      :***************
-2      :***********
-1      :********
0       :************
1       :**********
2       :************
3       :**********
4       :*********
5       :***********
6       :*******
7       :********
8       :*****
9       :*******
10      :*****
11      :******
12      :********
13      :************
14      :***************
15      :***********
16      :**********
17      :*************
18      :***********
19      :********
20      :*********
21      :********
22      :*****
23      :**********
24      :*********
25      :****
26      :******
27      :***
28      :****
29      :*****
30      :***
31      :*
32      :**
33      :*
34      :*
35      :*
36      :*
37      :*
38      :*
39      :*
40      :*
41      :*
42      :
Comment 1 Rich Puhek 2003-12-09 08:35:33 UTC
Created attachment 1615 [details]
Print a graph of SA scores

The script itself.
Comment 2 Theo Van Dinter 2004-03-11 13:22:14 UTC
could be put into contrib, although I'm feeling more like the contrib/* stuff ought to be dropped from 
ASF releases.

but either way: Rich, have you sent in a CLA?  I don't have you on my (now out of date) list.  We'd need 
one before we could accept the code.
Comment 3 Rich Puhek 2004-03-14 08:20:56 UTC
Yea, I sent in a CLA in mid-January (my copy was signed on the 16th, so right on
or after then). Must still be working its way through.
Comment 4 Fred T 2004-03-24 10:46:53 UTC
GraphDefang does this too, but it has lot's of req's to install ;)
http://www.bl.org/~jpk/graphdefang/current/event/spamd/general
http://www.bl.org/~jpk/graphdefang/
Comment 5 Daniel Quinlan 2005-03-30 01:08:55 UTC
move bug to Future milestone (previously set to Future -- I hope)
Comment 6 Justin Mason 2007-10-11 14:45:27 UTC
wow, this got lost.  shall we put it into "contrib"?
Comment 7 Doc Schneider 2007-10-11 14:50:21 UTC
(In reply to comment #6)
> wow, this got lost.  shall we put it into "contrib"?

I'd put it in contrib for sure. Looks like a handy dandy tool.

+1 on it too, if we're voting.

-Doc
Comment 8 Henrik Krohns 2019-07-30 16:32:29 UTC
Closing old stale bug.

Respectfully vote -1, I don't believe contrib should contains random scripts with very generic functionality. Things like this can be put into personal githubs.