Article View: news.software.nntp
Article #54804Re: Article numbering and handling article number rollover
From: Howard Siegel
Date: Wed, 24 Oct 2001 23:57
Date: Wed, 24 Oct 2001 23:57
94 lines
6161 bytes
6161 bytes
postmaster@andor.dropbear.id.au writes: > On 24 Oct 2001 16:15:18 GMT, Howard Siegel <not.interested@nospam.invalid> wrote: > | postmaster@andor.dropbear.id.au writes: > |> On 24 Oct 2001 02:54:09 GMT, Howard Siegel <not.interested@nospam.invalid> wrote: > |> | > |> | I need to write a specialized NNTP client program (NOT a full > |> | fledged news reader!) and as I have not tried to read through > |> | any of the "brand name" news readers as yet (but I have very > |> | little time to devote to this project), I'd like the sage > |> | advise of the experts on the matter.... > |> | > |> | <snip> > |> | > |> | PS: I have already done some investigation, and under the > |> | current circumstances and constraints, have decided that the > |> | specialized NNTP client is the most expediant course of action > |> | for this project. I have already had the "discussions" with folks > |> > |> > |> Have you thought of using something like slrnpull or leafnode to just > |> pull down the articles in the groups you are interested in? > |> > |> I know that slrnpull workes quite well, and leaves the articles in a > |> spool directory, one file per article. > |> > |> Not surprisingly, the slrn newsreader can read from this spool. > | > | Considered (in concept as opposed to slrnpull or leafnode specifically) > | and rejected. Basically these are just mini news servers in that they > | provide a filterred connection to another news server and create a local > | news spool for "offline" reading. These programs may be coerced in to > | doing what we need, but they are none the less overkill for what we are > | trying to do. And as stated, we do not want to run our own news server > | (of any kind). > | > | If we were to use one of the mentioned programs, we would then need > | additional s/w to go "the last mile" and we would have to be able to > | read the news spool. If we have to write our own client anyway, we'll > | just suck off of the existing NNTP news server with a special purpose > | client (as in NOT interactive) and have less third party software to > | build, install and maintain. > > > Then grab the slrnpull source code and modify the "write to spool" bits > to do what you want, while keeping the "read from NNTP server" stuff. > > No need to completely reinvent the wheel. This was one of the paths that we considered, but ultimately decided that for what we need (which is very little), it would be more work to take an existing program, be it a client or mini-server, and pare it down to what we needed than to write a new program to do what we needed. One of the decision factors was to write the new program in perl so that we can take advantage of the existing NNTP interface and other available packages. If we did not have perl available or had decided to use a "real" language, then these other programs would be my starting points (and would have provided the answers, too). By even mentioning that we were lucky to have perl available, it should now be obvious that we are not using a platform that is considered mainstream these days, so use of these other programs would be problematic. I have a bare minimum proof-of-concept already written, but it does not yet do any seen article list or newsrc file maintenance, hence my questions. The proof-of-concept program is 12 lines of perl and took all of approx an 2 hours to write given my ultra-newbie-ness with perl. Besides article list and newsrc file maintenance, it'll need to be made a bit more robust (ie. better error processing and such). But, I'd have had to spend much, much more time just trying to compile any of the existing clients or mini-servers on our platform/OS (even assuming they are written in C and that I have many years of experience with C) before I could start making them do what we need. Even if our perl program ultimately ends up being 100 or 200 lines of code, this is considerably smaller than any of the programs mentioned. So, I really do have some idea that the path I'm on is the right one for us at this time. [This is beginning to turn in to the same discussions I've already had and didn't want to rehash, only to come to basically the same path I'm already on. Sigh!] BTW, I have now found some of the prior exchanges about article numbering and article list maintenance when faced with a forced reset of the article numbers (of which a rollover is just one example), but I still don't see much in the way of how to actually handle the problem without some from of human intervention or a "just issue a warning message and start over from 1" type of response. I was hoping for something a little less dependent on a human or a little less drastic. Perhaps there is nothing in the middle that is easily implemented. - howard -- -- Netcom Class of '93, RIP Netcom! <*> hsiegel<->at<->pobox<->dot<->com
Technical Details
Message-ID:
<9r7kh0$ci$1@news.panix.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!sn-xit-02!supernews.com!newsfeed.direct.ca!look.ca!news-peer.gip.net!news.gsl.net!gip.net!panix!news.panix.com!not-for-mailReferences:
<9r5agg$7ma$1@news.panix.com> <slrn9tcoqh.olq.postmaster@tux.andor.dropbear.id.au> <9r6pem$k4a$1@news.panix.com> <slrn9tehs6.1oc.postmaster@tux.andor.dropbear.id.au>Show Full Headers
Complete Article Headers
Message-ID: <9r7kh0$ci$1@news.panix.com> Subject: Re: Article numbering and handling article number rollover Date: Wed, 24 Oct 2001 23:57:20 +0000 From: Howard Siegel <not.interested@nospam.invalid> References: <9r5agg$7ma$1@news.panix.com> <slrn9tcoqh.olq.postmaster@tux.andor.dropbear.id.au> <9r6pem$k4a$1@news.panix.com> <slrn9tehs6.1oc.postmaster@tux.andor.dropbear.id.au> 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!sn-xit-02!supernews.com!newsfeed.direct.ca!look.ca!news-peer.gip.net!news.gsl.net!gip.net!panix!news.panix.com!not-for-mail Newsgroups: news.software.readers,news.software.nntp Organization: Gallifrey Beach Club Lines: 93 Distribution: inet Reply-To: not.interested@nospam.invalid NNTP-Posting-Host: panix2.panix.com X-Trace: news.panix.com 1003967840 402 166.84.1.2 (24 Oct 2001 23:57:20 GMT) X-Complaints-To: abuse@panix.com NNTP-Posting-Date: 24 Oct 2001 23:57:20 GMT X-Newsreader: trn 4.0-test74 (May 26, 2000)