I've been playing with this for an hour and I can't get it to work, so I
guess I need some help.
I'm trying to set up "file request" recipe, but it's just not happening
for me. I have one, but it won't do anything but a send a filename that
I've hardcoded into the script. I saw someone post something a while back
on getting the actual filename itself, so I've tried to implement that.
Here is my recipe:
MAILDIR=$HOME/mail # You'd better make sure it exists
* ^Subject:.send file*
:0 h c
* ^Subject: send file \/[^ ]*
| ($FORMAIL -rk -p "> " -I "X-Replier: Automated response" \
-i "From: batman(_at_)here(_dot_)com" \
-i "Subject:automated response test for send file"; \
cat -c ./$FILENAME 2>&1 | $SENDMAIL -t
and here is the error(s) I'm getting:
procmail: Skipped "-c ./testfile 2>&1 | /usr/sbin/sendmail -t"
From root(_at_)wallybox(_dot_)cei(_dot_)net Sat Aug 2 14:40:35 1997
Subject: send file testfile
/bin/bash: -c: line 4: syntax error: unexpected end of file
I've played around with adding echo's here and there so I could hopefully
see where I was missing something, but it hasn't helped.
Unsolicited Commerical email proof-read for $.01/character (includes
white-space) or $.20/line which ever is cheaper.
Any unsolicitated commercial email not meeting the above criteria will be
charged a minimum of $20.00.
My receipt of unsolicited commercial email will be acceptance of the terms and
conditions stated above.
Tim Bynum: tjbynum(_at_)wallybox(_dot_)cei(_dot_)net