🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: news.software.readers
5 messages
5 total messages Started by Becky Kearns Tue, 27 Jul 1999 00:00
How to avoid downloading duplicates
#50180
Author: Becky Kearns
Date: Tue, 27 Jul 1999 00:00
18 lines
1692 bytes
Hi,

I'm working on the conceptual design of some newsreader like software.  
Basically it will pull down multiple newsgroups from the same server, and 
save them separately for later processing.  At this point I'm leaning towards 
creating both an index and data file for each group - but we'll see.  Anyway, 
one very important feature is that I avoid downloading duplicate copies of 
articles.  Which suggests a central record/index file of some sort but that 
sounds a little scary.  It would likely be quite large (pushing me towards
file-based), while rapidly finding/adding/deleting entries would be important.

Does anyone have any thoughts on the matter?  Ideas of what approach
or algorithym would be a good choice?  I'm in the very early stages and
I just want to get a feel for what directions I should explore.  This thing is
going to be fairly complicated <grin>


Re: How to avoid downloading duplicates
#50153
Author: Curt Welch
Date: Tue, 27 Jul 1999 00:00
25 lines
1948 bytes
"Becky Kearns" <BeckyKearns@hotmail.com> wrote:
> Well, I'll be able to XOVER *or* HEAD.  I was mostly asking if anyone
> had any ideas on fast sorts, whether to keep it in a file or a huge chunk
> of ram, that type of thing.  How, specifically, do you guys handle it?

Head doesn't help if Xref isn't in the article - and it might not be.  But
it is so common today that creating software that requires it to be there
is probably reasonable.

But the correct way to avoid dups is to use the Message-ID.

To do that you need to build an article index by Message-ID.  On news
servers this is called the history file.  They are normally done with
some type of hash scheme where the message-ID is hashed and that value is
used to calculate a location in the history file to record information
about the article.

What you are doing really is not much different than a news server.  You
end up having to solve most of the same problems.

-- 
Curt Welch                                            http://CurtWelch.Com/
curt@kcwc.com                          Webmaster for http://NewsReader.Com/

Re: How to avoid downloading duplicates
#50163
Author: Bert Hyman
Date: Tue, 27 Jul 1999 00:00
16 lines
1248 bytes
In article <7nkor4$fbj$1@autumn.news.rcn.net>,
Becky Kearns <BeckyKearns@hotmail.com> wrote:
>
>Well, I'll be able to XOVER *or* HEAD.   ...
>
Remember, XOVER can return information about all of the articles in a
newsgroup in one request (or a range of articles), while HEAD only works
on one article at a time.
-- 
--
The opinions expressed in this message are my own and are not the opinions of
anyone who does not hold those opinions.

Bert Hyman | St. Paul, MN | bert@visi.com

Re: How to avoid downloading duplicates
#50177
Author: Becky Kearns
Date: Tue, 27 Jul 1999 00:00
24 lines
1800 bytes
Bert Hyman <bert@visi.com> wrote in message news:QIjn3.556$X97.99920@ptah.visi.com...
> In article <7nkga4$m08$1@autumn.news.rcn.net>,
> Becky Kearns <BeckyKearns@hotmail.com> wrote:
> > ...
> >one very important feature is that I avoid downloading duplicate copies of 
> >articles.  ...
> >
> By that, I assume you mean articles that are crossposted?

Yes

> If so, the Xref: field of the overview record is what you want. It contains
> the newsgrop name and article number for each "instance" of a crossposted
> article.
> 
> This assumes, of course, that the news server you're talking to has overview
> records and supports the XOVER command, which most do these days.

Well, I'll be able to XOVER *or* HEAD.  I was mostly asking if anyone 
had any ideas on fast sorts, whether to keep it in a file or a huge chunk of 
ram, that type of thing.  How, specifically, do you guys handle it?


Re: How to avoid downloading duplicates
#50179
Author: Bert Hyman
Date: Tue, 27 Jul 1999 00:00
22 lines
1426 bytes
In article <7nkga4$m08$1@autumn.news.rcn.net>,
Becky Kearns <BeckyKearns@hotmail.com> wrote:
> ...
>one very important feature is that I avoid downloading duplicate copies of 
>articles.  ...
>
By that, I assume you mean articles that are crossposted?

If so, the Xref: field of the overview record is what you want. It contains
the newsgrop name and article number for each "instance" of a crossposted
article.

This assumes, of course, that the news server you're talking to has overview
records and supports the XOVER command, which most do these days.
-- 
--
The opinions expressed in this message are my own and are not the opinions of
anyone who does not hold those opinions.

Bert Hyman | St. Paul, MN | bert@visi.com

Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads