procmail
[Top] [All Lists]

Re: Making autoresponder from a file ??

1999-01-12 19:49:43
Daniel Israel <DanielIS(_at_)mosaix(_dot_)com> writes:
I'm using the following recipe to make an autoresponder.  It keeps
logging the error that the file/directory test.txt does not exist,
although it is there and the cat command works from the command line.
It returns the mail just fine, but the body of the message is empty...
Can anyone give me a clue?  Thanks.

:0
* ^X-Rcpt-To: list(_at_)mystuff(_dot_)org
* !^X-Loop: webmaster(_at_)mystuff(_dot_)org
| ( $FORMAIL -r -A"X-Loop: webmaster(_at_)mystuff(_dot_)org"    \
           -I"From: list(_at_)mystuff(_dot_)org" ;\
   cat test.txt ) | $SENDMAIL -oi -t

Do you assign a value to MAILDIR before this recipe?  If so, procmail
has chdir'ed into that directory.


Philip Guenther

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