summaryrefslogtreecommitdiff
path: root/mail/dma
diff options
context:
space:
mode:
authorWesley Shields <wxs@FreeBSD.org>2009-02-13 20:19:04 +0000
committerWesley Shields <wxs@FreeBSD.org>2009-02-13 20:19:04 +0000
commitbed94467814e67b7046a66143da4b8b451559e48 (patch)
treea05bff1a10e7f144518cfff02265c437086f2a3e /mail/dma
parentUpgrade to 1.4.3 which fixes all of the bugs I had patched around and more. (diff)
- 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)
Notes
Notes: svn path=/head/; revision=228226
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|