On Thu, 10 Apr 1997, Eli the Bearded wrote:
[snip]
Perhaps I am missing something fundamental... is there an
easy way to *use* perl or egrep instead of the * line in
a recipe?
Sure, I use it in combination with `echo` to check the exitcode of
`egrep` like in this recipe:
#
# Check to see if this email is from a "friend". If so, stick it
# in my INBOX.
#
:0
* ? echo "`formail -rtxz'To:'`" | egrep -i -f $HOME/friends
$DEFAULT
The recipe is fairly self-explanatory.
Lates!
---------------------------------------------------------------------------
Tim <bodysurf(_at_)pobox(_dot_)com>
mailto:bodysurf(_at_)pobox(_dot_)com
Finger bodysurf(_at_)pobox(_dot_)com for my PGP public key (Bits 1024/KeyID
09DA5C49).
PGP Key FPrint (09/03/94): 4C 97 F1 FA 70 55 68 91 49 D1 AD F2 DD 63 0C 15
---------------------> Please PGP encrypt your email <---------------------