I am trying to get a recipe that returns the
contents of a given file. It currently looks
like this:
####################################
# Marc Rackett's procmailrc #
# Dated 12 December 1995 #
####################################
VERBOSE=on
HOME=/home/users1/etlmcrt
ORGMAIL=/var/spool/mail/etlmcrt
SENDMAIL=/usr/lib/sendmail
SENDFILE=/home/users1/etlmcrt/qw
MAILDIR=$HOME/PostOffice
LOGFILE=$HOME/PostOffice/ProcMail/procmail.log
COMSAT=biff(_at_)etlxd43a
:0
* ^From.*etlnlbn
| (formail -r ; cat $SENDFILE) | $SENDMAIL -oi -t
Sending an email like so:
From etlnlbn Wed Jan 17 17:16:02 1996
From: etlnlbn (neil burton XB/VA x4958)
Date: Wed, 17 Jan 96 17:14:04 GMT
To: etlmcrt
Subject: KO6
Content-Length: 0
X-Lines: 0
Produces a LOG of:
procmail: Assigning "COMSAT=biff(_at_)etlxd43a"
procmail: Match on "^From.*etlnlbn"
procmail: Assigning "LASTFOLDER= (formail -r ; cat $SENDFILE) | $SENDMAIL -oi
-t"
procmail: Locking "/usr/spool/mail/etlmcrt.lock"
procmail: Executing " (formail -r ; cat $SENDFILE) | $SENDMAIL -oi -t"
procmail: [16984] Wed Jan 17 17:16:03 1996
procmail: Assigning "LASTFOLDER=/usr/spool/mail/etlmcrt"
procmail: Opening "/usr/spool/mail/etlmcrt"
procmail: Acquiring kernel-lock
procmail: [16984] Wed Jan 17 17:16:04 1996
procmail: Unlocking "/usr/spool/mail/etlmcrt.lock"
From etlnlbn Wed Jan 17 17:16:02 1996
Subject: KO6
Folder: /usr/spool/mail/etlmcrt 417
procmail: Notified comsat: "etlmcrt(_at_)1041293:/usr/spool/mail/etlmcrt"
BUT the message never gets to etlnlbn. If I run the command from the
shell, with the VARIABLES set then it does, i.e.:
cat testnl | ( formail -r ; cat $SENDFILE ) | $SENDMAIL -oi -t
where testnl was a copy of the above mail.
ANY IDEAS?