Article View: news.software.nntp
Article #92382Re: INN laxmid clarification
From: Adam H. Kerman
Date: Sun, 31 Aug 2025 19:42
Date: Sun, 31 Aug 2025 19:42
75 lines
4643 bytes
4643 bytes
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.
Technical Details
Message-ID:
<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-srl.newsdeef.eu!srl.newsdeef.eu!news.mb-net.net!open-news-network.org!eternal-september.org!feeder.eternal-september.org!.POSTED!not-for-mailReferences:
<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>Show Full Headers
Complete Article Headers
Message-ID: <10928if$3djku$1@dont-email.me> Subject: Re: INN laxmid clarification Date: Sun, 31 Aug 2025 19:42:07 +0000 From: "Adam H. Kerman" <ahk@chinet.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> Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!i2pn2.pugleaf.net!archive.pugleaf.net!ygg-srl.newsdeef.eu!srl.newsdeef.eu!news.mb-net.net!open-news-network.org!eternal-september.org!feeder.eternal-september.org!.POSTED!not-for-mail Newsgroups: news.software.nntp Organization: A noiseless patient Spider Lines: 75 Injection-Date: Sun, 31 Aug 2025 19:42:09 +0000 (UTC) Injection-Info: dont-email.me; posting-host="5aee0e3c7f51487e75b0dc64b0862927"; logging-data="3591838"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18ZfqHFmBVyFgvkkot1e0IsKHBznOWc0xs=" Cancel-Lock: sha1:M26ROglNBW23QtksCoTpczyeGug= X-Newsreader: trn 4.0-test77 (Sep 1, 2010)