Skip site navigation (1)Skip section navigation (2)
Date:      Tue,  8 May 2007 10:27:51 -0400 (EDT)
From:      Michael Scheidell <scheidell@secnap.net>
To:        FreeBSD-gnats-submit@FreeBSD.org
Cc:        nivo+kw+ports.bfa274@is-root.com, mail@vipul.net
Subject:   ports/112522: Razor has performance problem with SpamAssassin
Message-ID:  <20070508142751.53CE61CCD3@scanner.secnap.net>
Resent-Message-ID: <200705081430.l48EU57E086950@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>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:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20070508142751.53CE61CCD3>