[news.software.b] Getting bnews to notify user of replies.

ltf@ncmicro.lonestar.org (Lance Franklin) (11/14/90)

Has anybody ever done any work on getting bnews to notify a user on the
local system when somebody posts a followup to their post?  What I have
in mind is utilizing the xref capabilities of bnews to recognize when
a newly-arrived article has a reference to a local posting, and mailing
to the user that made the post the newsgroup and article-number of the
followup.  Alternatively, a log of articles which make reference to
local postings would also be useful.

Anybody ever done it?

Lance
-- 
Lance T. Franklin            +----------------------------------------------+
(ltf@ncmicro.lonestar.org)   | "You want I should bop you with this here    |
NC Microproducts, Inc.       |    Lollipop?!?"                 The Fat Fury |
Richardson, Texas            +----------------------------------------------+

andrew@calvin.doc.ca (Andrew Patrick) (11/16/90)

In article <224@ncmicro.lonestar.org> ltf@ncmicro.lonestar.org
(Lance Franklin) writes:

>Has anybody ever done any work on getting bnews to notify a user on the
>local system when somebody posts a followup to their post?  What I have
>in mind is utilizing the xref capabilities of bnews to recognize when
>a newly-arrived article has a reference to a local posting, and mailing
>to the user that made the post the newsgroup and article-number of the
>followup.  Alternatively, a log of articles which make reference to
>local postings would also be useful.

How about beginning with a simple script that uses find and grep to
search the news spool directories for files newer than a key file,
containing strings like

	*@site.domain

I use a csh script that contains as its heart:

	find . -type f -newer $timefile -exec egrep "$pattern" {} \; \
	-print -exec echo " " \; >>& $outfile

where "pattern" has been defined by:

	set pattern=".*@.*\.doc\.ca"

I run this script once a day from cron and mail the results to active
news readers (it takes about 1 hour running on a Sun Sparcstation 1+).
It shows any references to postings from any of the sites within my
domain.

It's not pretty, but it does the job.

I would love to see what other people have developed to do this.




-- 
Andrew Patrick, Ph.D.       Department of Communications, Ottawa, CANADA
               andrew@calvin.doc.CA    andrew@doccrc.BITNET
        HDTV:  higher resolution, improved colour, wider screen,
            "sit-com" reruns.  What's wrong with this picture?