Here's what I am trying to do:
I will be receiving a series of emails which are in the form of
Email Address : user(_at_)domain(_dot_)com
I have no problem pulling out emails which are in this format, however,
what I want to do is to automatically respond to the 'Email Address :'
field. Using /bin/vacation would be ideal, but these pages will be sent
from a web server, and therefore will be from the web server's address.
From the previous part of this thread, I would assume that something in
the format of:
* B ?? ^Email Address : \/[a-z(_dot_)(_at_)]+
|/bin/mail $MATCH </etc/letter
* B ?? ^Email Address :
would trigger a message to be sent to whoever matched the specified
This 'recipe' correctly MATCHes the email address, but yields an error
procmail: Program failure (255) of "/bin/mail $MATCH </etc/letter
What seems to be happening is that procmail isn't simply triggering the
mail program, but either attempting to pipe the mail message to
/bin/mail, or not passing $MATCH to /bin/mail
Can anyone help me with what I'm doing wrong, and/or suggest an
alternate method of accomplishing this task?
I am currently using a Perl program which reads STDIN, finds the
proper address, and sends the response message, but it would be cleaner
if I could do this without calling an external program.
Thanks in advance
A Procmail novice.