🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nntp
Article #90650

Re: INN laxmid clarification

#90650
From: Julien ÉLIE
Date: Sun, 30 Jul 2023 09:15
74 lines
3939 bytes
Hi Jesse,

>     syntaxchecks:               [ laxmid ]
> 
> I see in the manpage for inn.conf:
> 
>     When laxmid is set, Message-IDs containing ".." in the left
>     part are accepted, as well as Message-IDs with two "@".
> 
> I assume that because Message-IDs like the one below do not fall into those
> parameters, it is still rejected, but this there a way to accept these?
> 
>     <3f71e4a7_3@aeinews.> - 435 Syntax error in message-ID

Over these past years, I have often seen questions about syntax checks. 
Maybe laxmid should allow more Message-IDs than only the ones with ".." 
and two "@"?

Strictly speaking,  a dot (".") must be followed by another non-special 
chars, so <a.@b> and <a@b.> are invalid per RFC.

I suggest to change the behaviour of laxmid so that innd accepts even 
more Message-IDs.  For instance in the common dot-atom-text syntax, just 
checking we have "<", at least one non-special char, "@", at least one 
non-special char, and ">".
no-fold-literal is kept untouched but dot-atom-text is changed.

The syntax per RFC is:

msg-id          =  "<" msg-id-core ">"
msg-id-core     =  id-left "@" id-right
id-left         =  dot-atom-text
id-right        =  dot-atom-text / no-fold-literal

dot-atom-text   =   1*atext *("." 1*atext)
no-fold-literal =  "[" *mdtext "]"

mdtext          =  %d33-61 /        ; The rest of the US-ASCII
                    %d63-90 /        ; characters not including
                    %d94-126         ; ">", "[", "]", or "\"

atext           =   ALPHA / DIGIT /    ; Printable US-ASCII
                     "!" / "#" /        ;  characters not including
                     "$" / "%" /        ;  specials.  Used for atoms.
                     "&" / "'" /
                     "*" / "+" /
                     "-" / "/" /
                     "=" / "?" /
                     "^" / "_" /
                     "`" / "{" /
                     "|" / "}" /
                     "~"


laxmid would accept for innd:

dot-atom-text   =   1*(atext / "." / "@")


At least, I think it would cope with all Message-IDs in the wild.  (Are 
there ones without any "@" at all?)

As for nnrpd, laxmid would go on having the current behaviour of 
allowing ".." and two "@" as this was a request in 2017 from a news 
admin with users having broken posting agents sending such Message-IDs.
No need for now to allow the injection of even more broken Message-IDs.

Any thoughts about that change?

-- 
Julien ÉLIE

« – Dis, je crois avoir entendu parler gothique par là !
   – Tu as des visions, Pamplemus ! » (Astérix)
Technical Details
Message-ID: <ua59ms$cqti$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: <u90srm$2mhb$1@nnrp.usenet.blueworldhosting.com>

Show Full Headers
Complete Article Headers
Message-ID: <ua59ms$cqti$1@news.trigofacile.com>
Subject: Re: INN laxmid clarification
Date: Sun, 30 Jul 2023 11:15:08 +0200
From: Julien ÉLIE <iulius@nom-de-mon-site.com.invalid>
References: <u90srm$2mhb$1@nnrp.usenet.blueworldhosting.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
Newsgroups: news.software.nntp
Organization: Groupes francophones par TrigoFACILE
Mime-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
Injection-Date: Sun, 30 Jul 2023 09:15:08 -0000 (UTC)
Injection-Info: news.trigofacile.com; posting-account="julien"; posting-host="san13-h02-176-143-2-105.dsl.sta.abo.bbox.fr:176.143.2.105"; logging-data="420786"; mail-complaints-to="abuse@trigofacile.com"
User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:102.0) Gecko/20100101 Thunderbird/102.13.0
Cancel-Lock: sha1:UjjHSRl4LVFYCQwhmCNn3FVveMU= sha256:a/Owb8Alr5crZNzcEMYqDzeCL0/jzf0rsQZumJ0H11w= sha1:g4CeKP6SFZjqVlXTKmGOxJdtXik= sha256:7pUeHHDJraLydNnXKw6uUSSZiv8bKQ7qw4OBZNdnIiA=
In-Reply-To: <u90srm$2mhb$1@nnrp.usenet.blueworldhosting.com>