I have a recipe that seems to choke only about 5% of the time. The rest
of the time it seems to work perfectly. I added a line to the recipe to
check for the host name of the machine delivering the mail. I now know
that mail.netcom.com is the machine that chokes on my recipe. It uses
the same sendmail daemon (8.8.5-r-beta) that the other mail delivery
machines use.
The recipe is:
LOG="$HOST
"
WHO=`$FORMAIL -rtzcx'To:'`
:0
* ! ^FROM_DAEMON
* ! ^Subject:.*keyword
* ! ^Subject:.*Re:
* ! WHO ?? ? $GREP -i -f $PMDIR/friends
Seems to be easier to have it that way (test first!):
* ! ? $GREP -i "^$WHO\$" $PMDIR/friends
with the $GREP pointing to an fgrep (because of the dots) and having one
friend per line.
Anyway, I don't see clear, what the third question mark is for. Your rule
looks to me as if you were matching the shell variable WHO with the exit-
code of the grep...
Bye
robert
--
Robert Klemme
computer science and philosophy
at University of Paderborn, Germany
mailto:kle(_at_)uni-paderborn(_dot_)de