On Thu, 10 Apr 1997 14:10:05 -0700 (PDT) bodysurf(_at_)netcom(_dot_)com (Tim)
wrote:
* ? echo "`formail -rtxz'To:'`" | egrep -i -f $HOME/friends
$DEFAULT
The recipe is fairly self-explanatory.
Take a close look at that echo statement:
echo "`formail -rtxz'To:'`"
Think about what you're doing there -- you're running a program that
produces some text on its standard output. You're using backquote
expansion to place this value in an echo statement -- which just spits
its arguments to standard output.
Try this:
* ? formail -rtzx "To:" | egrep -i -f $HOME/friends
Within my procmail environment, the variable FROM is always defined, so
the following reduces the number of program executions by another one:
* FROM ?? ? egrep -i -f $HOME/friends
-- Lars
---
Lars Kellogg-Stedman * lars(_at_)bu(_dot_)edu * (617)353-8277
Boston University Office of Information Technology