🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nntp
Article #64910

Getting the newest message

#64910
From: Mike Mimic
Date: Fri, 18 Apr 2003 00:03
18 lines
1648 bytes
Hi!

How can I get the newest message in a newsgroup? I am
building a simple Perl script which would show me
the newest post to the local newsgroup (server runs INN 2).

I use Net::NNTP package and I tryed using the return
parameter from the group method but it is not true
that the bigest message number is also a number of a newest
message.

Is there any efficient way (despite of loading the whole list
of Date lines and than comparing them) for doing this?


Mike

Technical Details
Message-ID: <EhHna.63$i7.50246@news.siol.net>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.nntp.mbox.zip!archiver1.google.com!news1.google.com!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!newsfeed.icl.net!newsfeed.fjserv.net!newsfeed.freenet.de!feed.news.nacamar.de!newsfeed.eunet.at!newsfeed.eunet.at!news-hub.siol.net!news.siol.net!not-for-mail

Show Full Headers
Complete Article Headers
Message-ID: <EhHna.63$i7.50246@news.siol.net>
Subject: Getting the newest message
Date: Fri, 18 Apr 2003 02:03:59 +0200
From: Mike Mimic <ppagee@yahoo.com>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.nntp.mbox.zip!archiver1.google.com!news1.google.com!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!newsfeed.icl.net!newsfeed.fjserv.net!newsfeed.freenet.de!feed.news.nacamar.de!newsfeed.eunet.at!newsfeed.eunet.at!news-hub.siol.net!news.siol.net!not-for-mail
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.3) Gecko/20030312
X-Accept-Language: en, fr-fr
MIME-Version: 1.0
Newsgroups: news.software.nntp
Content-Type: text/plain; charset=us-ascii; format=flowed
Content-Transfer-Encoding: 7bit
Lines: 17
NNTP-Posting-Host: 193.77.244.37
X-Complaints-To: abuse@siol.net
X-Trace: news.siol.net 1050624228 193.77.244.37 (Fri, 18 Apr 2003 02:03:48 MET DST)
NNTP-Posting-Date: Fri, 18 Apr 2003 02:03:48 MET DST
Organization: Slovenija OnLine - SiOL