I have a script that fetches a list of active articles into an array and it is working fine.
This code fetches ALOT of articles in many cases and what I want to do is fetch only "recent" articles.
Apparantly this can be done with the "newnews" method, but I cannot get it to return anything!
I've tried all kinds of values for $since ranging from 0 to 1 to epoch-10000 and even dates.
Does anyone have any ideas what I could be doing wrong, I can't find any better documentation on the method than this
Thanks in advance
Code:
use Net::NNTP;
my $nntp= Net::NNTP->new($newsServer, Timeout => 60, Debug => 0);
$nntp->group($group);
my $listPointer=$nntp->listgroup();
This code fetches ALOT of articles in many cases and what I want to do is fetch only "recent" articles.
Apparantly this can be done with the "newnews" method, but I cannot get it to return anything!
Code:
use Net::NNTP;
my $nntp= Net::NNTP->new($newsServer, Timeout => 60, Debug => 0);
$nntp->group($group);
my $listPointer=$nntp->newnews($since);
I've tried all kinds of values for $since ranging from 0 to 1 to epoch-10000 and even dates.
Does anyone have any ideas what I could be doing wrong, I can't find any better documentation on the method than this
Thanks in advance