Date: Fri, 13 Feb 2009 13:29:23 +0100 From: Daniel Roethlisberger <daniel@roe.ch> To: FreeBSD-gnats-submit@FreeBSD.org Cc: daniel@roe.ch Subject: ports/131641: [maintainer] mail/dma - fix dma.rb wrapper for ruby w/o oniguruma Message-ID: <E1LXxAZ-0004GS-7S@calvin.ustdmz.roe.ch> Resent-Message-ID: <200902131230.n1DCU12l048062@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
>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:
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?E1LXxAZ-0004GS-7S>