Date: Sat, 19 Nov 2011 18:06:19 +0100 (CET) From: Geoffroy Desvernay <dgeo@centrale-marseille.fr> To: FreeBSD-gnats-submit@FreeBSD.org Cc: rafan@FreeBSD.org Subject: ports/162679: [PATCH] mail/mailgraph: add support for postscreen and clapf Message-ID: <20111119170619.DB1571CD0B@dgeo.sysadm.ec-m.fr> Resent-Message-ID: <201111191710.pAJHA9QO047442@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
>Number: 162679 >Category: ports >Synopsis: [PATCH] mail/mailgraph: add support for postscreen and clapf >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: Sat Nov 19 17:10:09 UTC 2011 >Closed-Date: >Last-Modified: >Originator: Geoffroy Desvernay >Release: FreeBSD 9.0-RC2 amd64 >Organization: Ecole Centrale de Marseille >Environment: System: FreeBSD dgeo.sysadm.ec-m.fr 9.0-RC2 FreeBSD 9.0-RC2 #0: Wed Nov 9 00:01:37 CET >Description: patch found here (with correction from next mail): http://lists.ee.ethz.ch/mailgraph/msg00413.html This may be added as an OPTION ? Added file(s): - files/patch-mailgraph.pl Port maintainer (rafan@FreeBSD.org) is cc'd. Generated with FreeBSD Port Tools 0.99 >How-To-Repeat: use postscreen with postfix and do not see any stats on mailgraph for rejected mails :( >Fix: attached patch --- mailgraph-1.14_4.patch begins here --- diff -ruN --exclude=CVS /usr/ports/mail/mailgraph.orig/Makefile /usr/ports/mail/mailgraph/Makefile --- /usr/ports/mail/mailgraph.orig/Makefile 2010-03-28 08:39:09.000000000 +0200 +++ /usr/ports/mail/mailgraph/Makefile 2011-11-19 18:03:23.000000000 +0100 @@ -7,7 +7,7 @@ PORTNAME= mailgraph PORTVERSION= 1.14 -PORTREVISION= 3 +PORTREVISION= 4 CATEGORIES= mail MASTER_SITES= http://mailgraph.schweikert.ch/pub/ \ http://mailgraph.schweikert.ch/pub/old/ diff -ruN --exclude=CVS /usr/ports/mail/mailgraph.orig/files/patch-mailgraph.pl /usr/ports/mail/mailgraph/files/patch-mailgraph.pl --- /usr/ports/mail/mailgraph.orig/files/patch-mailgraph.pl 1970-01-01 01:00:00.000000000 +0100 +++ /usr/ports/mail/mailgraph/files/patch-mailgraph.pl 2011-11-19 18:01:23.000000000 +0100 @@ -0,0 +1,28 @@ +--- mailgraph.pl.orig 2011-11-19 17:58:21.000000000 +0100 ++++ mailgraph.pl 2011-11-19 18:01:09.000000000 +0100 +@@ -632,6 +632,13 @@ + event($time, 'rejected'); + } + } ++ elsif($prog eq 'postscreen') ++ { ++ if($text =~ /NOQUEUE: reject:/) ++ { ++ event($time, 'rejected'); ++ } ++ } + } + elsif($prog eq 'sendmail' or $prog eq 'sm-mta') { + if($text =~ /\bmailer=local\b/ ) { +@@ -853,6 +860,11 @@ + event($time, 'virus'); + } + } ++ elsif($prog eq 'clapf') { ++ if($text =~ /SPAM/) { ++ event($time, 'spam'); ++ } ++ } + } + + sub event($$) --- mailgraph-1.14_4.patch ends here --- >Release-Note: >Audit-Trail: >Unformatted:
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20111119170619.DB1571CD0B>