This is a pretty basic question. If it's too basic for this list,
please send replies directly to me.
I need to use procmail to intercept email with a certain FROM address
and SUBJECT line, then send it to a script that will process the email
in a certain way (format it) then file it away.
What I tried to do was add some lines to my rc.maillists file like so:
:0:
* ^From:(_dot_)web_mailer(_at_)uic(_dot_)edu
* ^Subject:.word_check
| /homes/home1/mydir/myscriptname
The ^From and ^Subject lines are supposed to filter out the emails I
want processed, then pass them over to the script <myscriptname> that
does the processing.
Individually, I've used ^From and ^Subject lines in that fashion to
filter mail and it's worked. Also, if I manually save the mail to a
file, then feed it to the script in the form:
myscriptname mail-file
it works, that is, the script takes mail-file and processes it as it's
supposed to.
However, the procmail recipe doesn't work. That is, it doesn't feed
the mail to the script, or else feeds an empty string to the script,
because the script doesn't do anything.
Could someone tell me what I'm doing wrong?
+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=
Pankaj Saxena email:
pankaj(_at_)uic(_dot_)edu
University of Illinois http://www.uic.edu/~pankaj
Chicago, IL, USA finger u09416(_at_)uicvm(_dot_)uic(_dot_)edu
for PGP key
+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=