Date: 16 Mar 2010 20:36:53 +0300 From: "Alexey V.Degtyarev" <alexey@renatasystems.org> To: FreeBSD-gnats-submit@FreeBSD.org Subject: ports/144802: New port: mail/sa-stats - generate nice statistic for spam/ham hits with SpamAssassin Message-ID: <20100316173653.7319.qmail@hs-9.renatasystems.org> Resent-Message-ID: <201003161740.o2GHe13U033027@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
>Number: 144802 >Category: ports >Synopsis: New port: mail/sa-stats - generate nice statistic for spam/ham hits with SpamAssassin >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-ports-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: change-request >Submitter-Id: current-users >Arrival-Date: Tue Mar 16 17:40:01 UTC 2010 >Closed-Date: >Last-Modified: >Originator: Alexey V. Degtyarev >Release: FreeBSD 8.0-RELEASE amd64 >Organization: >Environment: System: FreeBSD renatasystems.org 8.0-RELEASE FreeBSD 8.0-RELEASE #0: Sat Nov 21 15:02:08 UTC 2009 root@mason.cse.buffalo.edu:/usr/obj/usr/src/sys/GENERIC amd64 >Description: This perl script generates top spam/ham rules fired for SpamAssassin installations: TOP SPAM RULES FIRED ---------------------------------------------------------------------- RANK RULE NAME COUNT %OFMAIL %OFSPAM %OFHAM ---------------------------------------------------------------------- 1 CMAE_1 30455 26.68 70.34 0.03 2 BAYES_99 24478 21.98 56.54 0.89 3 RAZOR2_CHECK 11910 10.61 27.52 0.29 ---------------------------------------------------------------------- TOP HAM RULES FIRED ---------------------------------------------------------------------- RANK RULE NAME COUNT %OFMAIL %OFSPAM %OFHAM ---------------------------------------------------------------------- 1 BAYES_00 44253 46.60 20.71 62.40 2 ALL_TRUSTED 34534 49.42 50.61 48.70 3 SPF_PASS 10880 17.43 20.82 15.35 ---------------------------------------------------------------------- Number of top rules to display is adjustable, of course. Also it displays some peformance information: Email: 114145 Autolearn: 43569 AvgScore: 2.98 AvgScanTime: 2.55 sec Spam: 43274 Autolearn: 15452 AvgScore: 12.22 AvgScanTime: 2.61 sec Ham: 70871 Autolearn: 28117 AvgScore: -2.66 AvgScanTime: 2.51 sec Time Spent Running SA: 80.70 hours Time Spent Processing Spam: 31.35 hours Time Spent Processing Ham: 49.35 hours WWW: http://www.rulesemporium.com/programs/ >How-To-Repeat: >Fix: --- sa-stats.shar begins here --- # This is a shell archive. Save it in a file, remove anything before # this line, and then unpack it by entering "sh file". Note, it may # create directories; files and directories will be owned by you and # have default permissions. # # This archive contains: # # sa-stats # sa-stats/pkg-descr # sa-stats/distinfo # sa-stats/Makefile # echo c - sa-stats mkdir -p sa-stats > /dev/null 2>&1 echo x - sa-stats/pkg-descr sed 's/^X//' >sa-stats/pkg-descr << 'ae79991bdfdb518a6453e5dc7a61189c' XThis perl script generates top spam/ham rules fired for SpamAssassin Xinstallations: X XTOP SPAM RULES FIRED X---------------------------------------------------------------------- XRANK RULE NAME COUNT %OFMAIL %OFSPAM %OFHAM X---------------------------------------------------------------------- X 1 CMAE_1 30455 26.68 70.34 0.03 X 2 BAYES_99 24478 21.98 56.54 0.89 X 3 RAZOR2_CHECK 11910 10.61 27.52 0.29 X---------------------------------------------------------------------- X XTOP HAM RULES FIRED X---------------------------------------------------------------------- XRANK RULE NAME COUNT %OFMAIL %OFSPAM %OFHAM X---------------------------------------------------------------------- X 1 BAYES_00 44253 46.60 20.71 62.40 X 2 ALL_TRUSTED 34534 49.42 50.61 48.70 X 3 SPF_PASS 10880 17.43 20.82 15.35 X---------------------------------------------------------------------- X XWWW: http://www.rulesemporium.com/programs/ ae79991bdfdb518a6453e5dc7a61189c echo x - sa-stats/distinfo sed 's/^X//' >sa-stats/distinfo << '3a3c7548d8e1bd15b26cc008090f9be7' XMD5 (sa-stats-1.0.txt) = 681d592694740331254a7b41b7f04aaf XSHA256 (sa-stats-1.0.txt) = dc66ada115a61f4dfe727305a02c518a419c6cad51278e506153a6798094d42e XSIZE (sa-stats-1.0.txt) = 8411 3a3c7548d8e1bd15b26cc008090f9be7 echo x - sa-stats/Makefile sed 's/^X//' >sa-stats/Makefile << 'fe2347bc39ec8d9b7d3d6dda749e08cf' X# New ports collection makefile for: sa-stats X# Date created: Tue 16 Mar 2010 X# Whom: Alexey V. Degtyarev <alexey@renatasystems.org> X# X# $FreeBSD$ X# X XPORTNAME= sa-stats XPORTVERSION= 1.0 XCATEGORIES= mail XMASTER_SITES= http://www.rulesemporium.com/programs/ \ X ftp://renatasystems.org/pub/FreeBSD/ports/distfiles/ XDISTNAME= ${PORTNAME}-${PORTVERSION}.txt XEXTRACT_SUFX= XEXTRACT_ONLY= X XMAINTAINER= alexey@renatasystems.org XCOMMENT= Generates top spam/ham rules fired for SpamAssassin installations X XRUN_DEPENDS= p5-Getopt-Long>=0:${PORTSDIR}/devel/p5-Getopt-Long X XUSE_PERL5= yes X XNO_WRKSUBDIR= yes XNO_BUILD= yes X XPLIST_FILES= bin/sa-stats X Xpost-extract: X ${CP} ${DISTDIR}/${DISTNAME} ${WRKSRC} X Xdo-install: X ${INSTALL_SCRIPT} ${WRKSRC}/${DISTNAME} ${PREFIX}/bin/sa-stats X X.include <bsd.port.mk> fe2347bc39ec8d9b7d3d6dda749e08cf exit --- sa-stats.shar ends here --- >Release-Note: >Audit-Trail: >Unformatted:
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20100316173653.7319.qmail>