[ingo] vacation procmail script error?

Davide Bianchi davide.bianchi at diala.greenpeace.org
Wed May 24 12:41:02 PDT 2006


> with procmail as LDA.
> 
> We set up Ingo, filters are working fine, but when vacation is activated we get
> the following errors/warnings in the procmail log:
> 
> /usr/local/bin/bash: line 1: ls: command not found
> /usr/local/bin/bash: line 1: awk: command not found
> date: Can't open date: No such file or directory
> 
> Sure, we have no awk installed, but "ls"?

ls is usually implemented as an internal command in the shell, it seems
that you are not using a 'real' bash shell (/usr/local/bin), and that
'reduced' version doesn't have an ls.

On my system I had to do some changes on that script, maybe you should
look at a different default script too. The bit that gives you errors is
the part of the procmail script that checks if the 'already sent' cache
is older than the number of days configured and (eventually) wipe it
out. I changed that bit like this:

$this->_action[] = '  FILEDATE=`find . -maxdepth 1 '.
		'-type f '.
		'-name \'.vacation.cache\' '.
		'-atime +'.$days.' | wc -l`';
$this->_action[] = '  DUMMY=`test $FILEDATE -gt 0'
		.' && rm \'.vacation.cache\'`';
$this->_action[] = '';


This is around line 430 of
/horderoot/ingo/lib/Script/procmail.php

Davide

-- 
========================
Davide Bianchi
Greenpeace International
Amsterdam, Holland
Phone: +31- 20 718 21 31
========================
PGP Sign: 52A6 1964 E234
9165 81E5 5CCC 9331 9C71
0434 2E21
========================


More information about the ingo mailing list