procmail
[Top] [All Lists]

Re: Perl script

1996-10-03 08:54:17
On Wed, 2 Oct 1996 yan(_at_)ns1(_dot_)wwisp(_dot_)com wrote:

yan> The following is in my .procmailrc file
yan> PATH=$HOME/bin:/usr/bin:/usr/ucb:/bin:/usr/local/bin:.
yan> MAILDIR=$HOME/mail      # You'd better make sure it exists
yan> LOGFILE=$MAILDIR/from
yan> LOCKFILE=$HOME/.lockmail

Do you really want a global lockfile?  My guess is not -- omit the above
line.

yan> SHELL=/bin/sh    # for other shells, this might need adjustment
yan> 
yan> :0c: LOCKFILE

Here you seem to be mixing the global lockfile with a local one.  The
local will probably suffice -- truncate the above line after the second
colon. 

yan> * ^From:(_dot_)yan(_at_)ns1(_dot_)wwisp(_dot_)com
yan> /usr/home/admin/yantemp
yan> 
yan> :0a: LOCKFILE

Here you'll need to specify a local lockfile name.  Instead of LOCKFILE,
which could be confused with the (I expect) late global lock file
$LOCKFILE, I'd suggest a more situation-specific name like mytest.lock.

yan> | ( /usr/home/admin/test;)

A simpler syntax has already been suggested.  At any rate, I believe the
major problem with your pipe recipe not running was that it was using
the same local locfile as your first recipe. 

Hope it helps,
-- 
Rick Troxel  Rick_Troxel(_at_)nih(_dot_)gov   
rick(_at_)helix(_dot_)nih(_dot_)gov  301/435-2983
  http://www.access.digex.net/%7Erobjen/dc-sage/bios/rick_troxel/
///////////////////////////////////////////////////////////////////
 All effort and exertion put forth by man from the fullness of his
 heart is worship, if it  is prompted  by the  highest motives and
 the will to do service to humanity.                 --Abdu'l-Baha

<Prev in Thread] Current Thread [Next in Thread>