Article View: news.software.nntp
Article #54973Re: Article numbering and handling article number rollover
From: Andrew Gierth
Date: Mon, 05 Nov 2001 07:24
Date: Mon, 05 Nov 2001 07:24
29 lines
2521 bytes
2521 bytes
>>>>> "Howard" == Howard Siegel <not.interested@nospam.invalid> writes: Howard> The perl program I wrote is about 100 lines long. This Howard> includes newsrc file maintenance and a decent amount of error Howard> checking (I always write pretty defensive code). The newsrc Howard> file consists of the group name and the gmt time at which it Howard> was last read. I do a NEWNEWS command using that time, set Howard> the last read time to the time immediately following the Howard> NEWNEWS command, then process the list of message id's, The right way to do this is: use the DATE command on the server to get the current time, record that for the next pass. use the time from the previous run, preferably wound back a few minutes, for doing one or more NEWNEWS commands (you can specify lots of groups at one go, provided you keep the command length down to the 510-byte limit). Take the resulting list of message-ids, remove any duplicates, and remove any that correspond to articles that you already have seen recently. Then fetch the articles. (Not keeping at least a small history between runs will always lead to the possibility of either missing or duplicating the occasional article.) -- Andrew.
Technical Details
Message-ID:
<87elndu1d4.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!archiver1.google.com!news1.google.com!sn-xit-02!supernews.com!newsfeed.direct.ca!look.ca!news-feed.riddles.org.uk!erlenstar.demon.co.uk!newsmonsterReferences:
<9r5agg$7ma$1@news.panix.com> <20011027143410.031$2l@newsreader.com> <9rj5nq$br$1@news.panix.com> <illnU1B5lT37EALM@crowfam.org.uk> <9s5dtq$sns$1@news.panix.com>Show Full Headers
Complete Article Headers
Message-ID: <87elndu1d4.fsf@erlenstar.demon.co.uk> Subject: Re: Article numbering and handling article number rollover Date: Mon, 05 Nov 2001 07:24:07 +0000 From: Andrew Gierth <andrew@erlenstar.demon.co.uk> References: <9r5agg$7ma$1@news.panix.com> <20011027143410.031$2l@newsreader.com> <9rj5nq$br$1@news.panix.com> <illnU1B5lT37EALM@crowfam.org.uk> <9s5dtq$sns$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-feed.riddles.org.uk!erlenstar.demon.co.uk!newsmonster Newsgroups: news.software.readers,news.software.nntp Organization: disorganised Lines: 28 Distribution: inet NNTP-Posting-Host: erlenstar.demon.co.uk (602e:05a8) X-Mayan-Date: Long count = 12.19.8.12.14; tzolkin = 7 Ix; haab = 12 Zac 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