Article View: news.software.nntp
Article #89628Re: :keywords metadata item?
From: Russ Allbery
Date: Mon, 19 Sep 2022 22:32
Date: Mon, 19 Sep 2022 22:32
48 lines
3362 bytes
3362 bytes
Julien ΓLIE <iulius@nom-de-mon-site.com.invalid> writes:
> INN (and perhaps other servers) has the possibility to provide keywords
> in overview data. It advertises "Keywords:full" in response to LIST
> OVERVIEW.FMT and then adds "Keywords: a,b,c,d" in OVER responses. No
> Keywords header field is added in the articles, and the contents of an
> existing one is kept at the beginning of the generated one in overview.
> I'm wondering whether:
> - it shouldn't be advertised as ":keywords" instead of "Keywords:full" as
> the header field is not in the original article.
I believe that's correct. Keywords:full would imply that it's a copy of a
header in the article named Keywords.
Astonishingly, we don't seem to have set up an IANA registry for metadata
names in LIST OVERVIEW.FMT, which would have been the normal way of doing
it, so I think we can just use :keywords without telling anybody.
> I am unsure though if such a change would break implementations that look
> for it in overview (but is there any such news client? ...)
My guess is that no one uses this. It's been in INN for eons, but I think
it was added in the early days of more open development by one person who
was enthused about it. It tends to go untouched for long periods of time
until someone else finds it, thinks it might solve some problems for them,
and sends in a few fixes. My subjective impression is that most of the
people who try it end up not continuing to use it. I've periodically
unbroken it or done some refactoring at various points, but just because
the code was there, not because anyone was asking for it.
It's kind of an interesting idea, but text tokenization is a lot more
complicated than that code, as you're discovering with its total lack of
understanding of anything other than English. If the body is
base64-encoded (or even quoated-printable), I suspect it will similarly
collapse like a house of cards, since I doubt it understands MIME
structure. And let's not even mention trying to tokenize languages that
are farther afield from English.
I'm honestly not sure it's worth the effort of trying to fix, although of
course now that we've talked about it someone will probably wonder if it
will solve their problems and experiment with it again. :)
--
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:
<87tu53xaef.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:
<tcvq99$3fb7r$1@news.trigofacile.com>Show Full Headers
Complete Article Headers
Message-ID: <87tu53xaef.fsf@hope.eyrie.org> Subject: Re: :keywords metadata item? Date: Mon, 19 Sep 2022 15:32:56 -0700 From: Russ Allbery <eagle@eyrie.org> References: <tcvq99$3fb7r$1@news.trigofacile.com> 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 User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.1 (gnu/linux) Cancel-Lock: sha1:5v6DeI/sI4esGJt5xM8Qe8+bl7c= Injection-Info: hope.eyrie.org; logging-data="29795"; mail-complaints-to="news@eyrie.org" Newsgroups: news.software.nntp,news.software.readers Mime-Version: 1.0 Organization: The Eyrie Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit