Article View: news.software.readers
Article #266118Re: betterbird: reading crossposts once?
From: Russ Allbery
Date: Sat, 14 Oct 2023 16:25
Date: Sat, 14 Oct 2023 16:25
63 lines
3707 bytes
3707 bytes
VanguardLH <V@nguard.LH> writes:
> Rather than search across many subscribed newsgroups, the client could
> use the Xref header, if present, to determine in which newsgroups a
> message got cross-posted.
Indeed, this is what essentially every client does and what they should
do.
> That would shorten the time for "mark as read" to find the other copies
> of the message.
It makes it essentially instantaneous, since it means the reader doesn't
have to find other copies at all. It already knows exactly which article
numbers to mark as read.
> A problem noted there is that the client may not yet have populated the
> other newsgroups into which a message got cross-posted. The "mark as
> read" action would be stalled by however long it takes for the client to
> retrieve all messages (well, those that cover the cross-posted article)
> in the Xref newsgroups before they could also get marked as read.
The client shouldn't have to retrieve articles to mark them as read. The
standard representation on the client that goes all the way back to the
very early days of Usenet is called a "newsrc". It holds a list of groups
(often both the unsubscribed and the subscribed groups so that read
articles are tracked properly if someone later subscribes to the group)
and a list of read articles by number in each group. In text form, it
looks something like this:
rec.arts.sf.misc! 1-14774,14786,14789
rec.arts.sf.reviews! 1-2534
rec.arts.sf.written: 1-876513
news.answers! 1-199359,213516,215735
news.announce.newusers! 1-4399
news.newusers.questions! 1-645661
news.groups.questions! 1-32676
news.software.readers! 1-95504,137265,137274,140059,140091,140117
alt.test! 1-1441498
":" indicates a subscribed newsgroup and "!" indicates an unsubscribed
newsgroup. This is a widely-used standard format that can be read by
multiple newsreaders so that you can switch between, say, trn and tin
freely and keep the same read article information.
Marking an article as read in the crossposted groups is as simple as
reading the group and article number pairs from the Xref header of the
article that was just read and adding the corresponding numbers to the
list of read articles in each group, coalescing ranges where needed. It
doesn't require any server operations and is extremely fast with any sort
of reasonable data structure on the client.
Usually the client couples this with a LIST ACTIVE command at each
startup, which very efficiently returns the full list of groups on the
server and the high and low water marks for each one. This allows the
client to discover new groups and to coalesce article ranges once articles
have expired and the low water mark moves forward.
--
Russ Allbery (eagle@eyrie.org) <https://www.eyrie.org/~eagle/>
Please post questions rather than mailing me directly.
<https://www.eyrie.org/~eagle/faqs/questions.html> explains why.
Technical Details
Message-ID:
<87y1g5yxux.fsf@hope.eyrie.org>Path:
mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!apf1.newsdeef.eu!not-for-mailReferences:
<uftnus$2voq4$1@dont-email.me> <1qnm7s6fh6uot$.dlg@v.nguard.lh>Show Full Headers
Complete Article Headers
Message-ID: <87y1g5yxux.fsf@hope.eyrie.org> Subject: Re: betterbird: reading crossposts once? Date: Sat, 14 Oct 2023 09:25:58 -0700 From: Russ Allbery <eagle@eyrie.org> References: <uftnus$2voq4$1@dont-email.me> <1qnm7s6fh6uot$.dlg@v.nguard.lh> Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!apf1.newsdeef.eu!not-for-mail Mime-Version: 1.0 Injection-Info: hope.eyrie.org; logging-data="20425"; mail-complaints-to="news@eyrie.org" Newsgroups: news.software.readers,news.software.nntp Content-Type: text/plain Cancel-Lock: sha1:v/oYLVNHpUWXJTHpbt0hb+NdSwo= X-Received-Bytes: 3787 User-Agent: Gnus/5.13 (Gnus v5.13) Organization: The Eyrie