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