Article View: news.software.readers
Article #14769Re: Programming info on NNTP and news in general
From: Peter Kappesser
Date: Sat, 21 Jan 1995 09:12
Date: Sat, 21 Jan 1995 09:12
29 lines
2397 bytes
2397 bytes
Recently in news.software.readers, achamber@icarus.weber.edu (Tony Chamberlain) wrote: >I am interested in writing a program that will scan a paticular >newsgroup for paticular keywords and save them to a file for me. (Basically, >I don't have time to wade through the messages and want to automate it.) >I have the C,Unix,and TCP/IP expertise to program it, what I lack is knowledge >of how news and NNTP work. Is there a FAQ somewhere that I can get this >information. I would rather do that than download rn or something and >"reverse engineer it" :) RFC-977 is the one that explains how NNTP works, but at the moment I don't remember where to ftp RFC's from. Also check comp.sources.misc for "newscan", a Perl script which does exactly what you describe. An announcement about it was recently posted here. Or, check the trn newsreader FAQ here for a script which can invoke trn to do this, using commands in killfiles to select and save, or whatever. (I've even set up a news->mail gateway using this, by piping selected articles to a Perl script which further evaluates them and mails them to a list of recipients if worthwhile.) I haven't evaluated to see whether newscan would be more efficient to use, but I use some trn tricks (such as using a header line pattern modifier to look for three commas in the Xrefs: header line in order to kill massively cross-posted articles) which may not be doable as elegantly in newscan. -- "What if the humpback whales are scat-singing?" pjkappes@mailbox.syr.edu (Peter Kappesser)
Technical Details
Message-ID:
<3fqj5h$i7c@newstand.syr.edu>Path:
mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!archive!mbox2nntp-news.software.readers.mbox.zip!nntp.gmd.de!newsserver.jvnc.net!news.cac.psu.edu!news.tc.cornell.edu!travelers.mail.cornell.edu!newstand.syr.edu!forbin.syr.edu!pjkappesReferences:
<3fic0i$1vi@news.cc.utah.edu>Show Full Headers
Complete Article Headers
Message-ID: <3fqj5h$i7c@newstand.syr.edu> Subject: Re: Programming info on NNTP and news in general Date: Sat, 21 Jan 1995 09:12:17 +0000 From: pjkappes@forbin.syr.edu (Peter Kappesser) References: <3fic0i$1vi@news.cc.utah.edu> Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!archive!mbox2nntp-news.software.readers.mbox.zip!nntp.gmd.de!newsserver.jvnc.net!news.cac.psu.edu!news.tc.cornell.edu!travelers.mail.cornell.edu!newstand.syr.edu!forbin.syr.edu!pjkappes Newsgroups: news.software.readers Organization: Not Quite Syracuse University, Syracuse, NY Lines: 29 Distribution: world Reply-To: pjkappes@mailbox.syr.edu NNTP-Posting-Host: forbin.syr.edu Cc: achamber@icarus.weber.edu