🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: news.software.nntp
2 messages
2 total messages Started by Eli the Bearded Mon, 01 Aug 2022 21:00
Re: Advertising metadata and other fields in overview
#89495
Author: Eli the Bearded
Date: Mon, 01 Aug 2022 21:00
38 lines
2682 bytes
In news.software.readers, Adam H. Kerman <ahk@chinet.com> wrote:
>> I see that you're using trn.  The question would then be: were the 
>> Newsgroups and Path header fields be present in (X)OVER responses, would 
>> trn use them directly? (without sending (X)HDR or HEAD commands to 
>> retrieve these header fields)
> Perhaps Wayne Davidson is still reading news.software.readers on
> occassion. Eli the Bearded had contributed some trn patches a few years
> ago; maybe he could glance at the code.

As far as I know, Wayne Davidson no longer has an interest in trn or
netnewd. I do have an interest, and I keep trn source handy.

I'm not quite sure if the overview code in rt-ov.h properly deals with
extra content in overview. My experience suggests yes, but it could
have been masked by fast XHDR action. To use overview files for
searching (including KILL commands), you need to use the Hheadername
flag, like so:

	/trn/Hsubject:+

The article search code in artsrch.c for ARTSCOPE_ONEHDR calls
fetchlines() in head.c to get the line, that uses fetchcache() from
cache.c to check cached headers (eg found in overview) and falls back to
XHDR if needed.

Scoring calls fetchcache() as well, but I didn't review that code.

> Well, yes, since which headers are being downloaded is configurable at
> the server level, it would be ideal if the newsreader could determine
> which additional headers beyond the standard headers had been
> downloaded.

Well trn (in rt-ov.c), for one, is clearly checking the overview.fmt
file for what overview has.

Elijah
------
the provided support/Score.pl script does not check overview.fmt
Re: Advertising metadata and other fields in overview
#89496
Author: Russ Allbery
Date: Mon, 01 Aug 2022 22:33
16 lines
1644 bytes
Eli the Bearded <*@eli.users.panix.com> writes:

> I'm not quite sure if the overview code in rt-ov.h properly deals with
> extra content in overview. My experience suggests yes, but it could have
> been masked by fast XHDR action.

INN will automatically use overview to satisfy XHDR, XPAT, and PAT
commands if possible, FYI, although with those commands it will fall back
to opening each article individually if the header requested is not in
overview, which obviously can be quite slow.

-- 
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.
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