ports/131641: [maintainer] mail/dma - fix dma.rb wrapper for ruby w/o oniguruma
Daniel Roethlisberger
daniel at roe.ch
Fri Feb 13 12:30:03 UTC 2009
>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 at 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:
More information about the freebsd-ports-bugs
mailing list