diff options
author | wxs <wxs@FreeBSD.org> | 2009-02-14 04:19:04 +0800 |
---|---|---|
committer | wxs <wxs@FreeBSD.org> | 2009-02-14 04:19:04 +0800 |
commit | 760902ce1ee9e717c804cd6ad9ff38f3e07402b3 (patch) | |
tree | dae10b4c21e672151fc80e9abe2d35a29ecdf65c /mail/dma/files | |
parent | 6261514b3c56c21356d36253ce07e0149e10492f (diff) | |
download | freebsd-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/files')
-rw-r--r-- | mail/dma/files/dma.rb | 3 |
1 files changed, 2 insertions, 1 deletions
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| |