From owner-freebsd-ports-bugs@FreeBSD.ORG Tue May 8 14:30:06 2007 Return-Path: X-Original-To: freebsd-ports-bugs@hub.freebsd.org Delivered-To: freebsd-ports-bugs@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 87F1216A415 for ; Tue, 8 May 2007 14:30:06 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [69.147.83.40]) by mx1.freebsd.org (Postfix) with ESMTP id 66A1013C43E for ; Tue, 8 May 2007 14:30:06 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.13.4/8.13.4) with ESMTP id l48EU50N086990 for ; Tue, 8 May 2007 14:30:05 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.13.4/8.13.4/Submit) id l48EU57E086950; Tue, 8 May 2007 14:30:05 GMT (envelope-from gnats) Resent-Date: Tue, 8 May 2007 14:30:05 GMT Resent-Message-Id: <200705081430.l48EU57E086950@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-ports-bugs@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, Michael Scheidell Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 1CC4316A401 for ; Tue, 8 May 2007 14:27:52 +0000 (UTC) (envelope-from scheidell@secnap.net) Received: from scanner.secnap.net (corp.secnap.com [204.89.241.135]) by mx1.freebsd.org (Postfix) with ESMTP id E854813C458 for ; Tue, 8 May 2007 14:27:51 +0000 (UTC) (envelope-from scheidell@secnap.net) Received: by scanner.secnap.net (Postfix, from userid 1001) id 53CE61CCD3; Tue, 8 May 2007 10:27:51 -0400 (EDT) Message-Id: <20070508142751.53CE61CCD3@scanner.secnap.net> Date: Tue, 8 May 2007 10:27:51 -0400 (EDT) From: Michael Scheidell To: FreeBSD-gnats-submit@FreeBSD.org X-Send-Pr-Version: 3.113 Cc: nivo+kw+ports.bfa274@is-root.com, mail@vipul.net Subject: ports/112522: Razor has performance problem with SpamAssassin X-BeenThere: freebsd-ports-bugs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Ports bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 08 May 2007 14:30:06 -0000 >Number: 112522 >Category: ports >Synopsis: Razor has performance problem with SpamAssassin >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-ports-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Tue May 08 14:30:05 GMT 2007 >Closed-Date: >Last-Modified: >Originator: Michael Scheidell >Release: FreeBSD 5.5-RELEASE-p8 i386 >Organization: SECNAP Network Security >Environment: System: FreeBSD scanner.secnap.net 5.5-RELEASE-p8 FreeBSD 5.5-RELEASE-p8 #2: Fri Dec 29 22:23:34 EST 2006 scheidell@scanner.secnap.net:/usr/obj/usr/src/sys/HACKERTRAP_750 i386 >Description: (Vipul, thanks for releasing razor for public use) from INSTALL on Spam Assassin 3.20: - Razor2 If you plan to use Vipul's Razor, note that versions up to and including version 2.82 include a bug that will slow down the entire perl interpreter. This bug has more details, and a patch: http://issues.apache.org/SpamAssassin/show_bug.cgi?id=5312 >How-To-Repeat: use spamassassin ;-) >Fix: Patches to update Razor to 2.82_1 --- /var/tmp/razor/Makefile Tue May 8 10:24:03 2007 +++ ./Makefile Tue May 8 10:21:27 2007 @@ -7,6 +7,7 @@ PORTNAME= razor-agents PORTVERSION= 2.82 +PORTREVISION= 1 CATEGORIES= mail MASTER_SITES= ${MASTER_SITE_SOURCEFORGE} MASTER_SITE_SUBDIR= razor diff -bBru /var/tmp/razor/files/patch-Wiplash ./files/patch-Wiplash --- /var/tmp/razor/files/patch-Wiplash Tue May 8 10:26:32 2007 +++ ./files/patch-Wiplash Tue May 8 10:08:09 2007 @@ -0,0 +1,13 @@ +--- olib/Razor2/Signature/Whiplash.pm 10 Jun 2005 19:00:41 -0000 1.1.1.3 ++++ lib/Razor2/Signature/Whiplash.pm 19 Apr 2007 11:04:08 -0000 +@@ -789,8 +789,8 @@ + } + } + +- last unless $text =~ m"http://"; +- $text = $'; ++ last unless $text =~ m"http://(.*)"; ++ $text = $1; + + } + diff -bBru /var/tmp/razor/files/patch-deBase64 ./files/patch-deBase64 --- /var/tmp/razor/files/patch-deBase64 Tue May 8 10:26:23 2007 +++ ./files/patch-deBase64 Tue May 8 10:08:41 2007 @@ -0,0 +1,15 @@ +--- olib/Razor2/Preproc/deBase64.pm 8 Jun 2002 01:51:54 -0000 1.1.1.1 ++++ lib/Razor2/Preproc/deBase64.pm 19 Apr 2007 11:04:08 -0000 +@@ -36,8 +36,9 @@ + sub extract_base64 { + my ($self, $text) = @_; + +- if ($$text =~ /Content-Transfer-Encoding: base64/si) { +- $' =~ /\r?\n\r?\n([^=]*)/s; # match to end of data or '=' ++ if ($$text =~ /Content-Transfer-Encoding: base64(.*)$/si) { ++ my $rhs = $1; ++ $rhs =~ /\r?\n\r?\n([^=]*)/s; # match to end of data or '=' + return $1 . "=="; + } + return undef; + diff -bBru /var/tmp/razor/files/patch-deQP ./files/patch-deQP --- /var/tmp/razor/files/patch-deQP Tue May 8 10:26:11 2007 +++ ./files/patch-deQP Tue May 8 10:08:28 2007 @@ -0,0 +1,15 @@ +--- olib/Razor2/Preproc/deQP.pm 10 Aug 2002 21:36:24 -0000 1.1.1.1 ++++ lib/Razor2/Preproc/deQP.pm 19 Apr 2007 11:04:08 -0000 +@@ -34,8 +34,9 @@ + sub extract_qp { + my ($self, $text) = @_; + +- if ($$text =~ /Content-Transfer-Encoding: quoted-printable/sim) { +- $' =~ /\r?\n\r?\n(.*)$/s; ++ if ($$text =~ /Content-Transfer-Encoding: quoted-printable(.*)$/sim) { ++ my $rhs = $1; ++ $rhs =~ /\r?\n\r?\n(.*)$/s; + return $1; + } + return undef; + >Release-Note: >Audit-Trail: >Unformatted: