[ingo] Ingo's Procmail vacation - /bin/sh: date: No such file or directory

Jan Schneider jan at horde.org
Fri Aug 1 07:36:34 UTC 2008


Zitat von "David Powell (Tech at YANQ)" <tech at yanq.org.au>:

> To follow up on my first post...
>
> Quoting "David Powell (YANQ)" <tech at yanq.org.au>:
>> Here are the relevant lines written to the procmail log when a  
>> message gets received (and the vacation email should be triggered):
>>
>> /bin/sh: date: No such file or directory
>> /bin/bash: line 0: test: -gt: unary operator expected
>
> I can fix these error messages by manually editing the 10th line in  
> the procmail vacation script which by default reads:
>
>     DATE=`date +%s`
>
> I just change this to
>
>    DATE=`/bin/date +%s`

You should instead fix the PATH environment variable to include /bin.

> However the e-mails are still not generating a vacation message and  
> the procmail log still shows:
>
>> procmail: Skipped "* ^TO_NOSPAM at domain.org.au"
>> procmail: Skipped "* !^X-Loop: NOSPAM at domain.org.au"
>> procmail: Skipped "* !^X-Spam-Flag: YES"
>> procmail: Skipped "* !^FROM_DAEMON"
>> procmail: Skipped "| formail -rD 8192  
>> ${VACATION_DIR:-.}/.vacation.NOSPAM at domain.org.au"
>
> The dates on which the script is set (via ingo) to start and end are  
> before and after (respectively) todays date.  They are, FYI:
>    start: July 23, 2008 = 1217340000
>    end:   Feb 27, 2009 = 1235739600
>
> It's a long vacation, I know.
>
> So, what do I need to do to make this script work?

Try this: http://bugs.horde.org/ticket/?id=6509

Jan.

-- 
Do you need professional PHP or Horde consulting?
http://horde.org/consulting/



More information about the ingo mailing list