Article View: news.software.nntp
Article #51449Re: NNTP Commands Question
From: Andrew Gierth
Date: Sat, 24 Mar 2001 02:25
Date: Sat, 24 Mar 2001 02:25
52 lines
3428 bytes
3428 bytes
>>>>> "Darrell" == Darrell Davis <darrell.davis@usa.net> writes: Darrell> I am working on a utility to poll a NNTP server for messages Darrell> and keep them in a local database. Mainly this is a Darrell> programming exercise. The server I am developing against is Darrell> DNews, but I want it to be generic enough to work on most Darrell> NNTP servers. I believe I should use the "newnews yymmdd Darrell> hhmmss GMT" command. I believe that I should also use the Darrell> "date" command to get the exact time on the server to Darrell> account for time difference between the polling computer and Darrell> the server. Is this correct? Sort of like this: Darrell> 1) Issue "date" command and save result in D. Darrell> 2) Issue "newnews" command passing date and time of last poll. Darrell> 3) Save D as date and time of last poll, to be used the next Darrell> time I poll. Ideally you should subtract a few minutes of fuzz from the time of last poll, and make sure you ignore any duplicates. However, there are still a lot of servers that have the NEWNEWS command administratively disabled, because on older INN servers and Typhoon the performance stank, loading the server down a lot when one client did a NEWNEWS command. The more widely useful method is to keep track of article numbers read for each group, and compare those with the result of GROUP or LIST ACTIVE to work out which new articles to download. Darrell> Also, I don't completely understand MessageID. These are Darrell> the numbers that newsreaders use to remember which messages Darrell> the user has read, correct. No. The message-id (the <wqiueyqiuwuey@somedomain.example> bit) is a (supposedly) globally-unique identifier for each message. Newsreaders generally use the article number instead, which is server-specific (the same article on different servers has the same message-id but different article numbers). Darrell> Stored in the .newsrc file, correct? Do these numbers ever Darrell> get reset, or do they just keep increasing indefinately. Article numbers increase indefinitely until they reach 2^32, then the Death of Usenet occurs, unless the server has been scrapped in the meantime and all the article numbers reset. (Takes about 50-100 years to reach that point even with a high-volume pseudo-group like control.cancel.) -- Andrew.
Technical Details
Message-ID:
<878zlvnbse.fsf@erlenstar.demon.co.uk>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!supernews.google.com!sn-xit-03!supernews.com!logbridge.uoregon.edu!news-feed.riddles.org.uk!erlenstar.demon.co.uk!newsmonsterReferences:
<3abbee87$1@carrock.netin.com>Show Full Headers
Complete Article Headers
Message-ID: <878zlvnbse.fsf@erlenstar.demon.co.uk> Subject: Re: NNTP Commands Question Date: Sat, 24 Mar 2001 02:25:21 +0000 From: Andrew Gierth <andrew@erlenstar.demon.co.uk> References: <3abbee87$1@carrock.netin.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!supernews.google.com!sn-xit-03!supernews.com!logbridge.uoregon.edu!news-feed.riddles.org.uk!erlenstar.demon.co.uk!newsmonster Newsgroups: news.software.nntp Organization: disorganised Lines: 51 NNTP-Posting-Host: erlenstar.demon.co.uk (0229:05f1) X-Mayan-Date: Long count = 12.19.8.1.8; tzolkin = 2 Lamat; haab = 11 Cumku X-Pgp-0x0E9FFBE9: 87 25 7F 14 41 24 B3 51 E0 19 8B DE 49 74 0C 29 X-Attribution: AG X-P-Persistent-Headers: are a bad idea. X-Newsreader: Gnus v5.5/Emacs 20.2 X-Complaints-To: andrew@erlenstar.demon.co.uk X-Post-Filter: postfilter v0.6 alpha