Article View: news.software.nntp
Article #51447NNTP Commands Question
From: Darrell Davis
Date: Sat, 24 Mar 2001 00:39
Date: Sat, 24 Mar 2001 00:39
26 lines
2087 bytes
2087 bytes
I am working on a utility to poll a NNTP server for messages and keep them in a local database. Mainly this is a programming exercise. The server I am developing against is DNews, but I want it to be generic enough to work on most NNTP servers. I believe I should use the "newnews yymmdd hhmmss GMT" command. I believe that I should also use the "date" command to get the exact time on the server to account for time difference between the polling computer and the server. Is this correct? Sort of like this: 1) Issue "date" command and save result in D. 2) Issue "newnews" command passing date and time of last poll. 3) Save D as date and time of last poll, to be used the next time I poll. Is this the correct process? Also, I don't completely understand MessageID. These are the numbers that newsreaders use to remember which messages the user has read, correct. Stored in the .newsrc file, correct? Do these numbers ever get reset, or do they just keep increasing indefinately. It seems to me I am missing something. Thanks for any pointers. Darrell Davis
Technical Details
Message-ID:
<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!nntp.cs.ubc.ca!newsfeed.direct.ca!look.ca!europa.netcrusader.net!208.184.7.66!newsfeed.skycache.com!Cidera!portc01.blue.aol.com!news.washington1.Level3.net!news.denver1.Level3.net!Level3.net!carrock.netin.comShow Full Headers
Complete Article Headers
Message-ID: <3abbee87$1@carrock.netin.com> Subject: NNTP Commands Question Date: Fri, 23 Mar 2001 18:39:34 -0600 From: "Darrell Davis" <darrell.davis@usa.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!supernews.google.com!sn-xit-03!supernews.com!nntp.cs.ubc.ca!newsfeed.direct.ca!look.ca!europa.netcrusader.net!208.184.7.66!newsfeed.skycache.com!Cidera!portc01.blue.aol.com!news.washington1.Level3.net!news.denver1.Level3.net!Level3.net!carrock.netin.com Newsgroups: news.software.nntp Lines: 25 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 5.50.4133.2400 X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4133.2400 NNTP-Posting-Host: 216.109.170.54 X-Original-NNTP-Posting-Host: 216.109.170.54 X-Trace: carrock.netin.com 985394823 216.109.170.54 (23 Mar 2001 18:47:03 -0600)