procmail
[Top] [All Lists]

Re: procmail redirection to script problem

1998-11-10 11:50:54
Somiya writes:
Hi,

            I am using $HOME/.procmailrc to execute a script whenever a mail 
arrives.             

This is the contents of my $HOME/.procmailrc

LOGFILE=procmail.log 
VERBOSE=on
:0 bc:
|formail -I "" > bodyfile
:0 hc :
|formail -X From: > headfile
:0 hc:
|formail -X To: >> headfile
:0 hc:
|formail -X Subject: >> headfile
:0 c:
|testmail.pl

This script when called on arrival of mail gives a syntax error while
the same script runs perfectly at unix prompt. Can anybody tell me
what the problem is ?

if you told us what the error was, maybe.  What's your error log look
like?  (And what's the script look like?)

--
404-812-6641 - PGP mail preferred
http://www.s1.com/ : http://godzilla/mcampbell/

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