This was sent to me, and NEEDS to be adjusted to taste: #!/bin/sh DEFFILES="/etc/mail/spamassassin/*cf" GREPSTR="describe"
cat $DEFFILES | egrep ^$GREPSTR \ | awk '{ print "echo `fgrep " $2 " /oldtraps/spamtrap* | wc -l` " $2 } ' \ | sort | uniq | tail +2 | sh | sort -rn #EOF /oldtraps/spamtraps* is where I keep my old mbox of spam. This lets me know how many times each rule hits. I do however think there may be a flaw in this code. I think if you have Rule_1 and Rule_11, it will count Rule_1 for every Rule_11. It doesn't seem bound. Can someone confirm? --Chris > -----Original Message----- > From: Ray Dzek [mailto:[EMAIL PROTECTED] > Sent: Tuesday, December 30, 2003 3:13 PM > To: [EMAIL PROTECTED] > Subject: Re: [SAtalk] RE: Big Evil FP? > > > > ----- Original Message ----- > From: "Chris Santerre" <[EMAIL PROTECTED]> > To: "'Mike Kuentz (2)'" <[EMAIL PROTECTED]>; > <[EMAIL PROTECTED]> > Sent: Tuesday, December 30, 2003 9:42 AM > Subject: [SAtalk] RE: Big Evil FP? > > I'd like to know off hand what kind of hit rates people are getting. > Roughly > > 90% of the spam I get hits BigEvil. > > Is there some perl script or such that can tell us rules triggered on > spamc/spamd and graph how often each rule is triggered? > > > > ------------------------------------------------------- > 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 > ------------------------------------------------------- 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