🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nntp
Article #92384

Re: INN laxmid clarification

#92384
From: Jesse Rehmer
Date: Sun, 31 Aug 2025 23:52
108 lines
6888 bytes
On Aug 31, 2025 at 2:42:07 PM CDT, ""Adam H. Kerman"" <ahk@chinet.com> wrote:

> Russ Allbery <eagle@eyrie.org> wrote:
>> Julien <iulius@nom-de-mon-site.com.invalid> writes:
> 
>>> As your use is very specific, and writing a proper parsing of that kind of
>>> dates is time-consuming and complicated (as Russ told us), I wonder
>>> whether the faster approach wouldn't be to add a new level of control in
>>> syntaxchecks:
> 
>>>    syntaxchecks: [ laxmid laxdate ]
> 
>>> which would just take the current time (= arrival time) as the posting
>>> date when the Date header field exists and is not parseable.  The
>>> information is recorded in the history file and overview for expiry
>>> purpose, so it shouldn't break anything as far as I see.
> 
>> Maybe "ignoredate" in this case instead of "laxdate"? This is a bit
>> different than what "laxmid" means (ignore invalid message IDs and use the
>> message ID anyway), since it's ignoring the date entirely for the purposes
>> of all the other things INN does with dates. That way we would keep
>> laxdate in case we ever want to enable strict standards-enforcing date
>> parsing or provide a different laxer date parser that understands ctime(3)
>> and dashes, etc.
> 
>> The actual field stored in overview for clients will still be the value of
>> the Date header so far as I can see, so that will be invalid (not parsable
>> by clients) unless you put something different into the overview. That's
>> already the case with the existing lax date parsing, so might not matter
>> and will be true for any of the proposals for handling old dates. I'm not
>> sure how many clients try to parse the date information in overview and do
>> something with it.
> 
> Could I make a suggestion as a nonprogrammer but someone who has spent
> countless hours putting data into a consistent pattern or good syntax?
> 
> Think of the Date header as temporary and that at some point, it might
> be nice if it reflected the original date but now in modern syntax. I'm
> suggesting this as a Date header that reflects when it was appended to
> an archive is not going to be helpful to a newsreader when it comes to
> sorting. And a whole lot of articles are going to share an identical
> Date header as articles are going to be appended in huge batches.
> 
> Add a special X- header with an explicit header reflecting where the
> article came from in a specific pattern, so it can be readily found.
> 
> Then another X- header with a preliminary analysis of the Date string.
> 
> In the example
> 
> Date: Wed, 31-Dec-69 18:59:59 EDT
> 
> Leave the punctuation as is. Look for the alphanumeric pattern. X
> capital letter, x lower case letter, N numeral, _ space
> 
> X-Date-Pattern: Xxx,_NN-Xxx-NN_NN:NN:NN_XXX
> 
> Some time later, perhaps a year later, someone might analyze this. If a
> three-alpha recognizeable as a day is in the first Xxx group (which
> might be an XXX), then it's a day. It might have an optional "." and ","
> isn't always going to be present as a separator. Similarly, the second
> three-alpha might be a month.
> 
> The two-digit year could be confused with a time element but there
> probably won't be dates prior to the Unix epoch.
> 
> The three-alpha time zone isn't necessarily unique worldwide, but prior
> to a certain date we know that the articles were from the United States
> only.
> 
> If the transformation into modern syntax results in a logical day-date
> combination, then that's passed one test that the transformation was
> valid.
> 
> There's going to be a lot of eyeballing necessary but this could
> possibly be a way to choose which articles have dates requiring further
> analysis.

One of the ultimate goals of my archive is to sort the history file by posted
date and re-feed to another INN instance, so article numbering in the 'final'
archive is chronological. Though, I'm starting to think I'll never get to that
point. :-)

What I've discovered is that some newsreaders do not handle sorting a group by
Date where both two-digit and four-digit representations of the year in the
Date header exist throughout articles in the group. For example, in Usenapp,
articles whose Date header has the year represented in two digits will be
sorted and displayed first, then articles with the year represented using four
digits second, resulting in a wonky chronology. This is my primary driver for
getting the article numbers in chronological order, as most if not all
newsreaders sort using the article number by default.

Julien's suggestion would work to get the articles injected to the spool, but
could present other issues, primarily with article numbering.

When "Billy G." announced they had the archive.org Usenet content available
via NNTP, I was elated as it would save a ton of work, but between the Date
issue, and a lot of articles having duplicated headers that INN won't accept
(not sure if this is caused by his import process or if the source material
has duplicate headers), I'm starting to think I need to go back to dealing
with the source material directly. They built their own NNTP implementation
for this purpose, and I didn't think about 'complaince' of the content
initially.

That leaves me a few battles to win. Like Adam, I do not have a programmer's
mindset, so dealing with detecting date format issues and duplicated headers
isn't straightforward for me, at least not when dealing with hundreds of
millions of articles.
Technical Details
Message-ID: <1092n83$2c6e$1@nnrp.usenet.blueworldhosting.com>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!i2pn2.pugleaf.net!archive.pugleaf.net!ygg-srv.newsdeef.eu!srv.newsdeef.eu!weretis.net!feeder9.news.weretis.net!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!nnrp.usenet.blueworldhosting.com!.POSTED!not-for-mail
References: <u90srm$2mhb$1@nnrp.usenet.blueworldhosting.com> <10906hu$2tvn$1@nnrp.usenet.blueworldhosting.com> <10910cj$12r8f$1@news.trigofacile.com> <87bjnv4ait.fsf@hope.eyrie.org> <10928if$3djku$1@dont-email.me>

Show Full Headers
Complete Article Headers
Message-ID: <1092n83$2c6e$1@nnrp.usenet.blueworldhosting.com>
Subject: Re: INN laxmid clarification
Date: Sun, 31 Aug 2025 23:52:35 +0000
From: Jesse Rehmer <jesse.rehmer@blueworldhosting.com>
References: <u90srm$2mhb$1@nnrp.usenet.blueworldhosting.com> <10906hu$2tvn$1@nnrp.usenet.blueworldhosting.com> <10910cj$12r8f$1@news.trigofacile.com> <87bjnv4ait.fsf@hope.eyrie.org> <10928if$3djku$1@dont-email.me>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!i2pn2.pugleaf.net!archive.pugleaf.net!ygg-srv.newsdeef.eu!srv.newsdeef.eu!weretis.net!feeder9.news.weretis.net!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!nnrp.usenet.blueworldhosting.com!.POSTED!not-for-mail
Newsgroups: news.software.nntp
Organization: BWH Usenet Archive (https://usenet.blueworldhosting.com)
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8; format=fixed
Content-Transfer-Encoding: 8bit
Injection-Date: Sun, 31 Aug 2025 23:52:35 -0000 (UTC)
Injection-Info: nnrp.usenet.blueworldhosting.com;
 logging-data="78030"; mail-complaints-to="usenet@blueworldhosting.com"
User-Agent: Usenapp for MacOS
Cancel-Lock: sha1:uPHHZaU9kBeFrvFWPTBN58duVuA= sha256:jAVjTrQY5NhCHNzltTefb//QLal3wy2/ThcCsabcYbk=
X-Usenapp: v1.27.4/d - Full License