in reply to Talking to NNTP server

NNTP spec supports this command for you get a list of article numbers received after a given time point:

NEWNEWS newsgroups date time [GMT] [<distribution>]

In your Perl script, just do something like:

require News::NNTPClient; $c = new News::NNTPClient; foreach ($c->newnews("test", time - 3600)) { print $c->body($_); }

You either run your script as a daemon, or use whatever scheduler you have to schedule it to run periodically.

Update:

If the news group you are trying to access falls in liz's description, then you have to remember the number of the last article, and next time, just start from there. Remember one thing, article number are not neccessary continuous, and your script has to expet this.

Replies are listed 'Best First'.
Re: Re: Talking to NNTP server
by liz (Monsignor) on Nov 18, 2003 at 21:43 UTC
    Unfortunately, I haven't seen any NNTP server that supports this (at least not in the past 5 years). Most ISP's have switched this off because it causes too much load on the NNTP server. ;-(

    Liz