🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.readers
Article #265589

Re: :keywords metadata item?

#265589
From: Julien ÉLIE
Date: Sat, 10 Sep 2022 10:19
43 lines
3064 bytes
Bonjour Franck,

>> I am half-tempted to advertise ":keywords" instead of Keywords in the 
>> next release so as to comply with the protocol (the keywords are not 
>> present in the article itself), and properly handle "HDR :keywords" vs 
>> "HDR Keywords" results, the same way "HDR Lines" return the real 
>> header field if present.
> 
> I think it's the right choice even if I don't see how this header can be 
> useful in any way (because the words are totally unusable).

There are either too many words or truncated words (in non-full-ACSII 
languages), indeed.


> Perhaps it would be better to encode the words rather than remove the 
> non-ASCII characters?

Having MIME-encoded words in this overview field could indeed be a 
solution, or a UTF-8 encoding.  However, it would imply extra complexity 
in the server code to handle that encoding: find out the encoding of the 
word (using the right Content-Type in headers or multipart messages...), 
and convert it for the overview field.
It is a bit of work, and besides I am unsure clients are currently using 
Keywords when present; otherwise I guess the problem of 
internationalized messages would already have popped up!


As a side note, only having ASCII chars as is currently done in the 
keywords generation is compatible with a possible use of future 
MIME-encoded words or direct UTF-8, if we ever do that in a standardized 
:keywords metadata item.
So, in order to comply with the NNTP protocol, :keywords would already 
be a better choice (instead of Keywords), and I could just leave a note 
in the INN documentation of keywords generation that it is still 
experimental code, essentially usable for messages using only ASCII 
characters as other characters are stripped by the algorithm.

-- 
Julien ÉLIE

« J'aime les calculs faux car ils donnent des résultats plus justes. »
   (Jean Arp)
Technical Details
Message-ID: <tfhobh$1obre$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
References: <tcvq99$3fb7r$1@news.trigofacile.com> <6300a82e$0$22052$426a74cc@news.free.fr> <tequbn$14ol0$1@news.trigofacile.com> <6313a921$0$2997$426a34cc@news.free.fr>

Show Full Headers
Complete Article Headers
Message-ID: <tfhobh$1obre$1@news.trigofacile.com>
Subject: Re: :keywords metadata item?
Date: Sat, 10 Sep 2022 12:19:28 +0200
From: Julien ÉLIE <iulius@nom-de-mon-site.com.invalid>
References: <tcvq99$3fb7r$1@news.trigofacile.com> <6300a82e$0$22052$426a74cc@news.free.fr> <tequbn$14ol0$1@news.trigofacile.com> <6313a921$0$2997$426a34cc@news.free.fr>
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
Cancel-Lock: sha1:btTOexqATP06kqv4ovCjMRZaX0Y= sha256:dSg6VrdkbFYbqYZzzGU57Z1jdOlcJhKWf8BwEy6XH0I= sha1:nhH+NzSJ5k2LmEgs2dadYICZR84= sha256:30B/+vdQDPxIiSz5igs4LudgMfdW+eAdy3X3YJ7/GKE=
In-Reply-To: <6313a921$0$2997$426a34cc@news.free.fr>
Mime-Version: 1.0
Injection-Date: Sat, 10 Sep 2022 10:19:29 -0000 (UTC)
Content-Type: text/plain; charset=UTF-8; format=flowed
User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:91.0) Gecko/20100101 Thunderbird/91.13.0
Organization: Groupes francophones par TrigoFACILE
Content-Transfer-Encoding: 8bit
Newsgroups: news.software.nntp,news.software.readers