From owner-freebsd-ports-bugs@FreeBSD.ORG Fri Feb 13 12:30:02 2009 Return-Path: Delivered-To: freebsd-ports-bugs@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 25F4D1065673 for ; Fri, 13 Feb 2009 12:30:02 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id F1FE68FC16; Fri, 13 Feb 2009 12:30:01 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.14.3/8.14.3) with ESMTP id n1DCU1xm048065; Fri, 13 Feb 2009 12:30:01 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.3/8.14.3/Submit) id n1DCU12l048062; Fri, 13 Feb 2009 12:30:01 GMT (envelope-from gnats) Resent-Date: Fri, 13 Feb 2009 12:30:01 GMT Resent-Message-Id: <200902131230.n1DCU12l048062@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-ports-bugs@FreeBSD.org Resent-Cc: daniel@roe.ch Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, Daniel Roethlisberger Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 5CCFE106566C for ; Fri, 13 Feb 2009 12:29:25 +0000 (UTC) (envelope-from daniel+roe=marvin@roe.ch) Received: from calvin.ustdmz.roe.ch (calvin.ustdmz.roe.ch [IPv6:2001:41e0:ff17:face::26]) by mx1.freebsd.org (Postfix) with ESMTP id B4C7D8FC12 for ; Fri, 13 Feb 2009 12:29:24 +0000 (UTC) (envelope-from daniel+roe=marvin@roe.ch) Received: from host-178-185.csnc.ch ([212.254.178.185] helo=marvin.ustcor.roe.ch) by calvin.ustdmz.roe.ch (envelope-from ) with ESMTPSA (auth=roe) (TLSv1:AES256-SHA:256) id 1LXxAZ-0004GS-7S for FreeBSD-gnats-submit@freebsd.org; Fri, 13 Feb 2009 13:29:23 +0100 Received: from roe (uid 1001) (envelope-from roe@marvin.ustcor.roe.ch) id af by marvin.ustcor.roe.ch (DragonFly Mail Agent) Fri, 13 Feb 2009 13:29:21 +0100 Message-Id: Date: Fri, 13 Feb 2009 13:29:23 +0100 From: Daniel Roethlisberger To: FreeBSD-gnats-submit@FreeBSD.org X-Send-Pr-Version: 3.113 X-GNATS-Notify: daniel@roe.ch Cc: daniel@roe.ch Subject: ports/131641: [maintainer] mail/dma - fix dma.rb wrapper for ruby w/o oniguruma X-BeenThere: freebsd-ports-bugs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Daniel Roethlisberger List-Id: Ports bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 13 Feb 2009 12:30:03 -0000 >Number: 131641 >Category: ports >Synopsis: [maintainer] mail/dma - fix dma.rb wrapper for ruby w/o oniguruma >Confidential: no >Severity: serious >Priority: low >Responsible: freebsd-ports-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: maintainer-update >Submitter-Id: current-users >Arrival-Date: Fri Feb 13 12:30:01 UTC 2009 >Closed-Date: >Last-Modified: >Originator: Daniel Roethlisberger >Release: FreeBSD 7.1-RELEASE i386 >Organization: >Environment: System: FreeBSD marvin.ustcor.roe.ch 7.1-RELEASE FreeBSD 7.1-RELEASE #0: Thu Jan 1 14:37:25 UTC 2009 root@logan.cse.buffalo.edu:/usr/obj/usr/src/sys/GENERIC i386 >Description: Fix the dma.rb wrapper for sendmail -t support to not require oniguruma support in ruby by removing the zero-width positive lookbehind assertion. >How-To-Repeat: 1) Use ruby with default knobs (i.e. without oniguruma). 2) Use dma.rb instead of dma in mailer.conf. 3) Send mail using sendmail -t (e.g. via send-pr). >Fix: --- dma-no-oniguruma.diff begins here --- diff -ruN dma.orig/Makefile dma/Makefile --- dma.orig/Makefile 2009-02-12 01:41:34.000000000 +0100 +++ dma/Makefile 2009-02-13 12:19:08.000000000 +0100 @@ -7,6 +7,7 @@ PORTNAME= dma PORTVERSION= 20090208 +PORTREVISION= 1 CATEGORIES= mail ipv6 MASTER_SITES= http://mirror.roe.ch/dist/dma/ diff -ruN dma.orig/files/dma.rb dma/files/dma.rb --- dma.orig/files/dma.rb 2009-02-12 01:41:34.000000000 +0100 +++ dma/files/dma.rb 2009-02-13 12:20:04.000000000 +0100 @@ -35,7 +35,8 @@ if ARGV.delete "-t" msg = STDIN.read - head, cr, body = msg.split(/(?<=\n)(\r?)\n/, 2) + head, cr, body = msg.split(/\n(\r?)\n/, 2) + head = head + "\n" tmphead = head.gsub(/\n\s+/m, ' ') rcpts = [] tmphead.gsub(/^(?:to|cc|bcc):\s.*$/i) do |match| --- dma-no-oniguruma.diff ends here --- >Release-Note: >Audit-Trail: >Unformatted: