aboutsummaryrefslogtreecommitdiff
path: root/mail/horde4-ingo/files
diff options
context:
space:
mode:
authorBeech Rintoul <beech@FreeBSD.org>2008-06-30 01:27:54 +0000
committerBeech Rintoul <beech@FreeBSD.org>2008-06-30 01:27:54 +0000
commitc10e57835c9dff22202a09a52e735925ef91e20d (patch)
tree13d909553be0227071588fa2c51ef04f26f40876 /mail/horde4-ingo/files
parent7070aeac3717fa6e3e0b23b4d70d72c2b4ac3421 (diff)
downloadports-c10e57835c9dff22202a09a52e735925ef91e20d.tar.gz
ports-c10e57835c9dff22202a09a52e735925ef91e20d.zip
Notes
Diffstat (limited to 'mail/horde4-ingo/files')
-rw-r--r--mail/horde4-ingo/files/patch-lib_Script_procmail.php23
1 files changed, 7 insertions, 16 deletions
diff --git a/mail/horde4-ingo/files/patch-lib_Script_procmail.php b/mail/horde4-ingo/files/patch-lib_Script_procmail.php
index b81c2f3f18f6..ffd93ad90241 100644
--- a/mail/horde4-ingo/files/patch-lib_Script_procmail.php
+++ b/mail/horde4-ingo/files/patch-lib_Script_procmail.php
@@ -1,21 +1,12 @@
---- lib/Script/procmail.php.orig 2007-08-21 17:51:56.000000000 -0800
-+++ lib/Script/procmail.php 2007-12-04 00:37:57.000000000 -0900
-@@ -434,9 +434,15 @@
+--- lib/Script/procmail.php.orig 2008-05-05 09:22:21.000000000 -0800
++++ lib/Script/procmail.php 2008-06-29 16:56:12.000000000 -0800
+@@ -470,9 +470,6 @@
$this->_action[] = '{';
foreach ($params['action-value']['addresses'] as $address) {
if (!empty($address)) {
-- $this->_action[] = ' FILEDATE=`test -f \'.vacation.' . $address . '\' && '
-- . 'ls -lcn --time-style=+%s \'.vacation.' . $address . '\' | '
+- $this->_action[] = ' FILEDATE=`test -f ${VACATION_DIR:-.}/\'.vacation.' . $address . '\' && '
+- . $this->_params['ls'] . ' -lcn --time-style=+%s ${VACATION_DIR:-.}/\'.vacation.' . $address . '\' | '
- . 'awk \'{ print $6 + (' . $days * 86400 . ') }\'`';
-+/***** This bit does not work with FreeBSD
-+* $this->_action[] = ' FILEDATE=`test -f \'.vacation.' . $address . '\' && '
-+* . 'ls -lcn --time-style=+%s \'.vacation.' . $address . '\' | '
-+* . 'awk \'{ print $6 + (' . $days * 86400 . ') }\'`';
-+*/
-+ $this->_action[] = ' FDATE=`ls -lcnT \'.vacation.' . $address
-+ . '\' 2> /dev/null | awk \'{ print $6, $7, $8, $9; }\'`';
-+ $this->_action[] = ' FILEDATE=`date -j -f "%b %d %H:%M:%S %Y" "$FDATE" +%s '
-+ . ' | awk \'{ print $1 + (' . $days * 86400 . ') }\'`';
- $this->_action[] = ' DATE=`date +%s`';
- $this->_action[] = ' DUMMY=`test -f \'.vacation.' . $address . '\' && '
+ $this->_action[] = ' DATE=`' . $this->_params['date'] . ' +%s`';
+ $this->_action[] = ' DUMMY=`test -f ${VACATION_DIR:-.}/\'.vacation.' . $address . '\' && '
. 'test $FILEDATE -le $DATE && '