procmail
[Top] [All Lists]

procmail redirection to script problem

1998-11-10 11:12:06
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 ?

Thanks in advance

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