🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.readers
Article #5379

Re: Newsreader authors: Would article replacement break your reader

#5379
From: Wayne Davison
Date: Fri, 20 Aug 1993 00:07
92 lines
5759 bytes
According to Brad Templeton <brad@clarinet.com>:
> We are looking to implement a system in news whereby an article can
> replace another.  This means that the news agent has the option of actually
> replacing a previous article "in-place" -- ie. writing to the same article
> number, so that people who have seen the original article do NOT see the
> new one.   This is to update articles without bothering people.

I've been contemplating how trn would be affected by this, and a threaded
newsreader is a little more impacted by the whole thing than a non-threaded
one.

One question I have is what the end result looks like after the
replacement.  We have article A (#42) which is replaced by article
B.  Does article 42 now have message-id A or B in the on-disk copy?
I would assume B (the arriving replacement) but this introduces a
problem in a threaded reader whereby multiple message-ids are equated
to a single article number.  The reverse case (storing the new article
under the original message-id) would probably be unworkable due to old
news systems not handling the article in the new manner -- we'd end up
seeing replies to the new message-id anyway and gain nothing.

So, what we end up with is an overview file that lists the wrong
message-id for #42 and some missing information that id-B = id-A = 42
that needs to be supplied somehow to the newsreader.  The overview
file could be updated for each article replacement (ugh!) but we
still need some way to include both message-ids (or N+1 message
ids once N replacements have been done on the same article).  One
solution would be the addition of a message-id mapping file that
is maintained for each group that lists the "old new" message-id
pairs, but I'd hate to create a lot of small files to do it.

Mthreads would also be affected by this since it needs some sort of
input that the replacement happened (such as the message-id mapping
file mentioned above) to equate the message-ids together.

Personally I'd prefer to see this all handled by the newsreader.
This allows the existing notification method (a new article) to
provide the data stream of what is going on.  The overview format
would only be changed in that the "others" field would have to
contain the "Replaces: <id>" notification from the header.  And if
this were written where the news software also does the translation
of id to article (such as "Replaces: <id-A>,42" it would be useful
to even non-threaded newsreaders (though how a non-threaded, non
overview-using reader translates the replaces header into an article
number is a little tricky, but not that hard).

At this point the newsreader has all the information that it requires
to equate the two articles together, it knows the new header data (if
it changed) and it can cut and paste the article tree as needed to
effect the swap.  All that is left to do is to decide if the article
is actually unread.  One drawback: the user could see a group with one
unread article (by the max-article-number check) and find the group
empty after the newsreader marks the article as read.

You raised an interesting point in another posting, talking about
the problem of implementing the replacement in the newsreader:

> The problem is this "already read" determination.  In this case you
> need to tell the difference between "is marked read because the user
> read it", "is marked read because the user skipped over it" and "is
> marked read because it was deleted and we mark deleted articles as
> read"
> 
> The last one in particular is the worst.  You can handle it a bit by
> asking, "did we handle this article in this session" since you will have
> the detailed info, but if the user ever breaks reading of new articles
> into 2 sessions -- ie. there are 20 unread, and they read 10, quit and
> come back to read the next 10, you are sunk.

However, these cases are actually handled worse by the news transport
software than the news reader.  Take the last case of the original
article not existing anymore -- what does the transport software DO
with it?  It can't choose a random old number, so it will probably
have to file it as a new article, causing the newsreader to see it
again.  The newsreader implementation, on the other hand, can choose
to treat it as read or unread depending on how the user feels about
the issue.

The other case (did we read it or skip it?) isn't even considered
when the transport software replaces the old article number -- the
.newsrc data would either have it marked as read or unread.  In the
newsreader implementation we have the knowledge that the switch
happened, giving us the option of doing something about it (for
the day when a newsreader keeps track of really-read articles vs
skipped articles).

It should be possible to just have newsreaders start to equate the
Supersedes header as a "replace" and then we don't have to modify
the transport layer at all.
-- 
Wayne Davison
davison@borland.com
Technical Details
Message-ID: <CC1706.Hn2@borland.com>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!archive!mbox2nntp-news.software.readers.mbox.zip!gmd.de!xlink.net!sol.ctr.columbia.edu!howland.reston.ans.net!gatech!news-feed-1.peachnet.edu!concert!decwrl!borland.com!davison
References: <1993Aug17.015719.609@clarinet.com>

Show Full Headers
Complete Article Headers
Message-ID: <CC1706.Hn2@borland.com>
Subject: Re: Newsreader authors: Would article replacement break your reader
Date: Fri, 20 Aug 1993 00:07:17 GMT
From: davison@borland.com (Wayne Davison)
References: <1993Aug17.015719.609@clarinet.com>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!archive!mbox2nntp-news.software.readers.mbox.zip!gmd.de!xlink.net!sol.ctr.columbia.edu!howland.reston.ans.net!gatech!news-feed-1.peachnet.edu!concert!decwrl!borland.com!davison
Newsgroups: news.software.b,news.software.readers
Organization: Borland International
Lines: 92