Hello all....
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:
SENDMAIL=/usr/sbin/sendmail
PATH=$HOME/bin:/usr/bin:/bin:/usr/local/bin:.
MAILDIR=$HOME/mail # You'd better make sure it exists
DEFAULT=$MAILDIR/mbox
LOGFILE=$MAILDIR/from
LOCKFILE=$HOME/.lockmail
FORMAIL=/usr/bin/formail
MAILDIR=$HOME/fileserver
FILENAME="$MATCH"
:0
* ^Subject:.send file*
{
MAILDIR=$HOME/fileserver
: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"; \
FILENAME="$MATCH"
:0 ah
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
Folder: cat
373
/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.
Regards,
Tim
--
http://wallybox.cei.net
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.
Thank You
_.,-*~'`^`'~*-,._.,-*~'`^`'~*-,._.,-*~'`^`'~*-,._
Tim Bynum: tjbynum(_at_)wallybox(_dot_)cei(_dot_)net
http://wallybox.cei.net
^`'~*-,._.,-*~'`^`'~*-,._.,-*~'`^`'~*-,._.,-*~'`^