aboutsummaryrefslogtreecommitdiffstats
path: root/mail/dma
diff options
context:
space:
mode:
authorwxs <wxs@FreeBSD.org>2009-02-14 04:19:04 +0800
committerwxs <wxs@FreeBSD.org>2009-02-14 04:19:04 +0800
commit760902ce1ee9e717c804cd6ad9ff38f3e07402b3 (patch)
treedae10b4c21e672151fc80e9abe2d35a29ecdf65c /mail/dma
parent6261514b3c56c21356d36253ce07e0149e10492f (diff)
downloadfreebsd-ports-gnome-760902ce1ee9e717c804cd6ad9ff38f3e07402b3.tar.gz
freebsd-ports-gnome-760902ce1ee9e717c804cd6ad9ff38f3e07402b3.tar.zst
freebsd-ports-gnome-760902ce1ee9e717c804cd6ad9ff38f3e07402b3.zip
- Fix the dma.rb wrapper for sendmail -t support to not require
oniguruma support in ruby by removing the zero-width positive lookbehind assertion. PR: ports/131641 Submitted by: Daniel Roethlisberger <daniel@roe.ch> (maintainer)
Diffstat (limited to 'mail/dma')
-rw-r--r--mail/dma/Makefile1
-rw-r--r--mail/dma/files/dma.rb3
2 files changed, 3 insertions, 1 deletions
diff --git a/mail/dma/Makefile b/mail/dma/Makefile
index 6bb99e3064ac..c6061f04fc48 100644
--- a/mail/dma/Makefile
+++ b/mail/dma/Makefile
@@ -7,6 +7,7 @@
PORTNAME= dma
PORTVERSION= 20090208
+PORTREVISION= 1
CATEGORIES= mail ipv6
MASTER_SITES= http://mirror.roe.ch/dist/dma/
diff --git a/mail/dma/files/dma.rb b/mail/dma/files/dma.rb
index 3c7fc992bde7..5ad5664b822b 100644
--- a/mail/dma/files/dma.rb
+++ b/mail/dma/files/dma.rb
@@ -35,7 +35,8 @@ dma = $0.gsub(/.rb$/, '')
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|