On Mon, Jul 08, 2002 at 08:34:40PM -0400, Andrew Kohlsmith wrote:
> What are you using to record this?  I was going to do something very similar 
> but if you've already got public code I'd like to use it.

It's a few bits of perl I threw together.  I didn't make it public mostly
because I just didn't get around to it.  ;)

I run it out of a cron job every hour or so:

test -f $HOME/mail/spammers && $HOME/cron/scores $HOME/mail/spammers | 
$HOME/cron/import-reported reported

where scores and import-reported are available from
http://www.kluge.net/~felicity/random/

I then threw some other code together to generate graphs based on
the scores.  An example is at:

http://www.kluge.net/~felicity/spam-reported-day.jpg

I do day, week, and month.  That code is now also available in the same
spot.  There's also a version out of syslog (reported is verified spam,
syslog is all mail scanned through spamd):

http://www.kluge.net/~felicity/spam-syslog-week.jpg

I run it (also via cron) via:

cd $HOME/cron && $HOME/cron/SpamGraph reported

and

test $HOME/public_html/spam-reported-day.jpg -ot $HOME/cron/tmp/day && gnuplot <
$HOME/cron/gp-day.txt | /usr/X11R6/bin/convert png:- 
$HOME/public_html/spam-reported-day.jpg


Enjoy! :)

-- 
Randomly Generated Tagline:
If you want your program to be readable, consider supplying the argument.
              -- Larry Wall in the perl man page


-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Stuff, things, and much much more.
http://thinkgeek.com/sf
_______________________________________________
Spamassassin-talk mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/spamassassin-talk

Reply via email to