🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: news.software.nntp
7 messages
7 total messages Started by Michael Bäuerle Mon, 01 Aug 2022 09:49
Re: Advertising metadata and other fields in overview
#89487
Author: Michael Bäuerle
Date: Mon, 01 Aug 2022 09:49
22 lines
2020 bytes
Julien ÉLIE wrote:
> 
> [...]
> Also, are there useful other header fields that news readers are already
> searching for in their (X)OVER requests and then would benefit from them
> if present in the overview?  The idea would then be to suggest to news
> admins adding such fields in their overview data.
> Like Newsgroups to know whether the article is crossposted?  (Some news
> servers already provide the Xref header field, but one cannot take for
> sure that an article is crossposted with that mere field.)

Newsgroups would be nice to have for scoring.

Currently the OVER command must be disabled for this to work in flnews.
Quoted from man page:
| 
| o  nntp_no_over (Integer) Disable usage of overview (OVER command) for
|    NNTP protocol
| 
|    Setting this to a nonzero value disables usage of overview and makes
|    the whole newsgroup list usable for scoring rules.
|    [...]
Re: Advertising metadata and other fields in overview
#89490
Author: Julien ÉLIE
Date: Mon, 01 Aug 2022 18:50
70 lines
3508 bytes
Hi Michael,

>> Also, are there useful other header fields that news readers are already
>> searching for in their (X)OVER requests and then would benefit from them
>> if present in the overview?  The idea would then be to suggest to news
>> admins adding such fields in their overview data.
>> Like Newsgroups to know whether the article is crossposted?  (Some news
>> servers already provide the Xref header field, but one cannot take for
>> sure that an article is crossposted with that mere field.)
> 
> Newsgroups would be nice to have for scoring.

Sure.


> Currently the OVER command must be disabled for this to work in flnews.
> Quoted from man page:
> |
> | o  nntp_no_over (Integer) Disable usage of overview (OVER command) for
> |    NNTP protocol
> |
> |    Setting this to a nonzero value disables usage of overview and makes
> |    the whole newsgroup list usable for scoring rules.
> |    [...]

Why not automatically disable OVER if there exists a scoring rule using 
the Newsgroups header field?  (and keep using OVER otherwise)

In case you wish to test a possible use of the Newsgroups field if 
present in overview data, I've added it in my news server 
(news.trigofacile.com):

LIST OVERVIEW.FMT
215 Order of fields in overview database
Subject:
From:
Date:
Message-ID:
References:
:bytes
:lines
Xref:full
Newsgroups:full
Path:full
.

GROUP news.software.nntp
211 10940 1 15264 news.software.nntp

OVER 15262
224 Overview information for 15262 follows
15262	Re: Advertising metadata and other fields in overview	Michael 
=?ISO-8859-1?Q?B=E4uerle?= <michael.baeuerle@stz-e.de>	Mon, 1 Aug 2022 
12:55:15 +0200 (CEST)	<AABi57ETSaEAAAJK.A3.flnews@WStation5.stz-e.de> 
<tc6fmu$2q025$1@news.trigofacile.com>	1585	21	Xref: 
news.trigofacile.com news.software.nntp:15262	Newsgroups: 
news.software.nntp,news.software.readers	Path: 
news.trigofacile.com!weretis.net!feeder8.news.weretis.net!lilly.ping.de!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail
.



I've also added Path, as Urs has a special handling of it in tin.
And switched to the "preferred" naming of ":bytes" and ":lines" (feel 
free to test that everything is still OK with these names).

-- 
Julien ÉLIE

« Just don't create a file called -rf. » (Larry Wall)
Re: Advertising metadata and other fields in overview
#89497
Author: Michael Bäuerle
Date: Wed, 03 Aug 2022 09:50
70 lines
3767 bytes
Julien ÉLIE wrote:
> Michael Bäuerle wrote:
> > 
> > [...]
> > Currently the OVER command must be disabled for this to work in flnews.
> > Quoted from man page:
> > |
> > | o  nntp_no_over (Integer) Disable usage of overview (OVER command) for
> > |    NNTP protocol
> > |
> > |    Setting this to a nonzero value disables usage of overview and makes
> > |    the whole newsgroup list usable for scoring rules.
> > |    [...]
> 
> Why not automatically disable OVER if there exists a scoring rule using
> the Newsgroups header field?  (and keep using OVER otherwise)

Currently scoring rules are silently skipped, if they cannot be applied.
This can happen in other cases too, e.g. if a rule contains text that
cannot be converted to the charset of the locale (flnews uses Unicode
internally, but explicitly supports operating systems without Unicode
locales).

But yes, this is likely not what a user would expect.

> In case you wish to test a possible use of the Newsgroups field if
> present in overview data, I've added it in my news server
> (news.trigofacile.com):
> 
> LIST OVERVIEW.FMT
> 215 Order of fields in overview database
> Subject:
> From:
> Date:
> Message-ID:
> References:
> :bytes
> :lines
> Xref:full
> Newsgroups:full
> Path:full
> .
> 
> GROUP news.software.nntp
> 211 10940 1 15264 news.software.nntp
> 
> OVER 15262
> 224 Overview information for 15262 follows
> 15262	Re: Advertising metadata and other fields in overview	Michael
> =?ISO-8859-1?Q?B=E4uerle?= <michael.baeuerle@stz-e.de>	Mon, 1 Aug 2022
> 12:55:15 +0200 (CEST)	<AABi57ETSaEAAAJK.A3.flnews@WStation5.stz-e.de>
> <tc6fmu$2q025$1@news.trigofacile.com>	1585	21	Xref: news.trigofacile.com
> news.software.nntp:15262	Newsgroups:
> news.software.nntp,news.software.readers	Path:
> news.trigofacile.com!weretis.net!feeder8.news.weretis.net!lilly.ping.de!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail
> .

Thank you. I will try to implement support for LIST OVERVIEW.FMT and
Newsgroups field from overview.

This should be sufficient to feed the corresponding scoring rules
without the automatic OVER disabling logic discussed above.

> I've also added Path, as Urs has a special handling of it in tin.
> And switched to the "preferred" naming of ":bytes" and ":lines" (feel
> free to test that everything is still OK with these names).

My plan is to simply skip the first 7 fields of the response.
Different order or meaning is not allowed by RFC 3977. And this
information was already used before (implicitly).
Re: Advertising metadata and other fields in overview
#89498
Author: Urs JanĂźen
Date: Wed, 03 Aug 2022 11:26
19 lines
1803 bytes
Michael Bäuerle <michael.baeuerle@stz-e.de> wrote:
>> I've also added Path, as Urs has a special handling of it in tin.

JFTR: works like expected in tin; no extra HDR, XHDR or XPAT cmds. issued
when Path data is available in NOV and used for scoring.

> My plan is to simply skip the first 7 fields of the response.
> Different order or meaning is not allowed by RFC 3977. And this

newsoverview(5) from Geoff Collyer (some time in 1992) did specify an order
(but did't mention LIST OVERVIEW.FMT as that was invented AFAIK ~1 year
later).

RFC 2980 (from 10.2000) didn't specify an order.

RFC 3977 (from 10.2006) does specify an order.

IIRC I've seen non RFC 3977 compliant setups in the wild (reversed order,
missing mandatory fields, duplicate fields, ...). 
Re: Advertising metadata and other fields in overview
#89499
Author: Michael Bäuerle
Date: Wed, 03 Aug 2022 12:10
26 lines
2222 bytes
Urs JanĂźen wrote:
> Michael Bäuerle <michael.baeuerle@stz-e.de> wrote:
> > 
> > [...]
> > My plan is to simply skip the first 7 fields of the response.
> > Different order or meaning is not allowed by RFC 3977. And this
> 
> newsoverview(5) from Geoff Collyer (some time in 1992) did specify an order
> (but did't mention LIST OVERVIEW.FMT as that was invented AFAIK ~1 year
> later).
> 
> RFC 2980 (from 10.2000) didn't specify an order.

flnews has never supported RFC 2980 (XOVER command).
 
> RFC 3977 (from 10.2006) does specify an order.
> 
> IIRC I've seen non RFC 3977 compliant setups in the wild (reversed order,
> missing mandatory fields, duplicate fields, ...). 

Hopefully such setups have not advertised OVER via CAPABILITIES
command.

Currently flnews uses overview only with OVER command, and only if the
server advertises OVER capability. If the overview is broken, it can be
disabled with the "nntp_no_over" option.
Re: Advertising metadata and other fields in overview
#89500
Author: Michael Bäuerle
Date: Wed, 03 Aug 2022 20:56
76 lines
3247 bytes
Julien ÉLIE wrote:
>
> [...]
> In case you wish to test a possible use of the Newsgroups field if 
> present in overview data, I've added it in my news server 
> (news.trigofacile.com):
> 
> LIST OVERVIEW.FMT
> 215 Order of fields in overview database
> Subject:
> From:
> Date:
> Message-ID:
> References:
> :bytes
> :lines
> Xref:full
> Newsgroups:full
> Path:full
> .
> [...]

I have implemented support for LIST OVERVIEW.FMT in the snapshot flnews
1.2.0pre1. According to the comment from Russ, the command is executed
only once per session.

Protocol log:
------------------------------------------------------------------------
[Using NNTP protocol driver]
[=> Connect to news.trigofacile.com:nntps]
[Established encrypted connection using TLSv1.3 protocol with cipher suite TLS_AES_256_GCM_SHA384]
[<= Expect X509 certificate]
Certificate:
[...]
[Server certificate verification successful]
[<=] 200 news.trigofacile.com InterNetNews NNRP server INN 2.8.0 (20220801 prerelease) ready (no posting)
[=>] CAPABILITIES
[<=] 101 Capability list:
[<= Expect multiline data block]
VERSION 2
IMPLEMENTATION INN 2.8.0 (20220801 prerelease)
AUTHINFO USER SASL
COMPRESS DEFLATE
HDR
LIST ACTIVE ACTIVE.TIMES COUNTS DISTRIB.PATS DISTRIBUTIONS HEADERS MODERATORS MOTD NEWSGROUPS OVERVIEW.FMT SUBSCRIPTIONS
OVER
READER
SASL GS2-IAKERB GS2-KRB5 SCRAM-SHA-1 SCRAM-SHA-256 GSS-SPNEGO GSSAPI DIGEST-MD5 OTP NTLM CRAM-MD5 LOGIN PLAIN
XPAT
[Switch to NNTP V2 (RFC 3977) mode]

[Client authentication]
[Compression]

[=>] LIST OVERVIEW.FMT
[<=] 215 Order of fields in overview database
[<= Expect multiline data block]
Subject:
From:
Date:
Message-ID:
References:
:bytes
:lines
Xref:full
Newsgroups:full
Path:full
[Newsgroups header field available from overview]
[...]
------------------------------------------------------------------------

Urs noted that some server implementations are broken.
The mandatory fields are now checked for presence and order.

The Newsgroups header field, if present, is copied from the overview.
Scoring rules of type "group" are applied to all groups in this case.
Re: Advertising metadata and other fields in overview
#89501
Author: Julien ÉLIE
Date: Thu, 04 Aug 2022 07:05
29 lines
2269 bytes
Hi Michael,

> I have implemented support for LIST OVERVIEW.FMT in the snapshot flnews
> 1.2.0pre1.

Good news!


> [Compression]

I hope more news clients and servers get to implement the COMPRESS 
command...


> [Newsgroups header field available from overview]
> > Urs noted that some server implementations are broken.
> The mandatory fields are now checked for presence and order.
> 
> The Newsgroups header field, if present, is copied from the overview.
> Scoring rules of type "group" are applied to all groups in this case.

Sounds great!  Thanks for it.

-- 
Julien ÉLIE

« Il y a un proverbe serbe qui dit ceci : « Notre passé est sinistre,
   notre présent est invivable, heureusement que nous n'avons pas
   d'avenir ! » (Philippe Geluck)
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