Hi,

I got tired of waiting and compiled this on Rhapsody DR1.
It should work on DR2 and CR1 as well.

Just type... 'make rhapsody' and it should build.
You can use tin -r to access newsgroups via remote NNTP.
There is also a nice setting tin -rS which downloads 
newsgroups to your machine for grepping and so forth.

I use this script with tin -rS to mail interesting articles 
to myself so I don't have to read news as much.

Thomas
thomas@mycal.net  


# Do 'grep' recursively.  Written 21 Jun 98 Thomas Poff
# A function stupidly missing from standard Unix.
# 
# Usage:
# rgrep.sh <dir> <subject> <user>
#
# Examples:
# rgrep.sh comp/sys Java2d thomas
# rgrep.sh . Vectrex games@foo.com
#
# Note:
# This grep actually posts the file in your mailbox (in this case 'thomas')
# using the grep '<subject>' field as your mail subject title.

find $1 -type f -print |
while read file
do grep -s $2 $file
if [ $? -eq 0 ]; then mail -s $2 $3 < "$file"; fi
done


