This .procmailrc successfully works if you type "send research" or "send
paper" if it is in the *body*, but I can't get it to work if the send
command is in the *subject* line. I'm trying to parse both the subject and
body.
Can anyone figure out what is wrong?
#Set on when debugging
VERBOSE=off
#Replace `mail' with your mail directory (Pine uses mail, Elm uses Mail)
MAILDIR=$HOME/mail
#Directory for storing procmail log and rc files
PMDIR=$HOME/.procmail
LOGFILE=$PMDIR/log
:0Hhc
* !^From +daniels
* !^FROM_DAEMON
* ^Subject:.*send research
| (/usr/local/bin/formail -rI "Subject:Negative ion research you
requested - feel free to share info"\
-I "From:Daniel Stapleton <DanielS(_at_)cyberramp(_dot_)com>";\
cat /usr/dom/xcyberra/daniels/files/research) | $SENDMAIL -oi -t
:0Hh
* !^From +daniels
* !^FROM_DAEMON
* ^Subject:.*send research
IN.Research
:0Bc
* !^From +daniels
* !^FROM_DAEMON
* ^(send research)
| (/usr/local/bin/formail -rI "Subject:Negative ion research you
requested - feel free to share info"\
-I "From:Daniel Stapleton <DanielS(_at_)cyberramp(_dot_)com>";\
cat /usr/dom/xcyberra/daniels/files/research) | $SENDMAIL -oi -t
:0B
* !^From +daniels
* !^FROM_DAEMON
* ^(send research)
IN.Research
:0B
* !^From +daniels
* !^FROM_DAEMON
* ^(send paper)
| (/usr/local/bin/formail -rI "Subject:Negative ion paper you
requested"\
-I "From:Daniel Stapleton <DanielS(_at_)cyberramp(_dot_)com>";\
cat /usr/dom/xcyberra/daniels/files/paper) | $SENDMAIL -oi -t
:0Hh :respond.lock
* !^From +daniels
* !^FROM_DAEMON
* ^Subject:.*send paper
| (/usr/local/bin/formail -rI "Subject:Negative ion paper you
requested"\
-I "From:Daniel Stapleton <DanielS(_at_)cyberramp(_dot_)com>";\
cat /usr/dom/xcyberra/daniels/files/paper) | $SENDMAIL -oi -t
------------------------------------------------------------------------
"Live now. Make now always the most precious time. Now will never come
again." - Captain Jean-Luc Picard, U.S.S. Enterprise
------------------------------------------------------------------------