[Mimedefang] Script for categorizing spam by hits?

Renaud PASCAL renaud.pascal at atosorigin.com
Wed Jul 20 03:37:18 EDT 2005


Le Mardi 19 Juillet 2005 21:49, Johann a écrit :
> 
> Renaud PASCAL wrote:
> > 
> > Well, not exactly the same slices, and not in the same cols/rows order,
> > also, hum, let's say "the beautifying is quite rough" ...
> > but it may give you a start ;-)
> > 
> > # gawk '/spam,/{ v[int( $4/5)]++}; END{for(i in v){print " scores "5*i" to "5*(i+1)", have:" v[i]" hits"} }' FS=, .../yourmaillog
> 
> Thank You! I hadn't really thought about a more detailed analysis than
> what GraphDefang does, but this is really cool. 

Thank you too !-)
Glad you enjoyed it and used it; note : a little easy beautifying, some folks
will ask you for -- anytime now, will be to sort by score :

# gawk '/spam,/{ v[int( $4/5)]++}; END{n=asort(v);for(i=1; i<=n; i++){print " scores "5*i" to "5*(i+1)", have:" v[i]" hits"} }' FS=,

> A little css, a little 
> php, and viola! http://mail.srar.com/stats/stats.php . Justification for
> tweaking the dang thing daily!

Yes, nothing can beat the old toolbox ;-)

Cheers.



More information about the MIMEDefang mailing list