🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nntp
Article #89632

Re: How to permit user to set the right part of message-id

#89632
From: Julien ÉLIE
Date: Tue, 20 Sep 2022 08:18
44 lines
3143 bytes
Hi Russ,

>> I would tend to take the one from readers.conf anyway.  As it is forced
>> in readers.conf, there may be a reason; inn.conf documentation says to
>> have a look at domain (or virtualhost) in readers.conf to change the
>> righthand side of autogenerated Message-IDs, but that special rule is
>> not mentioned.  I would just drop it...
> 
> BTW, I had a bit of a hard time following the documentation, because
> inn.conf says to set domain in readers.conf but then domain isn't
> documented in readers.conf except in the list of inn.conf settings that
> can also be set there.

I noticed the same difficulty.  It definitely needs improving; I'll have 
a look.


> If the inn.conf documentation is correct, the domain setting is ignored if
> inn_getfqdn() succeeds, which also seems a bit weird.  It feels like an
> expicitly-set configuration option should override whatever we discover
> while probing around on the system.

Yes, I agree.


> I think the right result may be:
> 
> * Use domain unconditionally for forming message IDs if it's set in
>    readers.conf.
> 
> * Use domain if it's set in inn.conf, regardless of what we can discover
>    from other system calls.  (This is backwards-incompatible, so maybe not
>    on the stable branch.)

And run the current call to inn_fqdn() if domain is unset in both 
readers.conf and inn.conf.

A similar algorithm should also be done for Injection-Info, as discussed 
afterwards in this thread.

-- 
Julien ÉLIE

« Vinum bonum laetificat cor hominis. »
Technical Details
Message-ID: <tgbt12$7s0o$3@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: <632790d3$0$22052$426a74cc@news.free.fr> <argle-bargle@argle.bargle.xyz> <63279bd2$0$22055$426a74cc@news.free.fr> <87h7148aq4.fsf@hope.eyrie.org> <6328a840$0$2976$426a74cc@news.free.fr> <tgaje6$6pa5$1@news.trigofacile.com> <6328dcc9$0$5132$426a74cc@news.free.fr> <tganq1$6pa5$2@news.trigofacile.com> <87y1ufxary.fsf@hope.eyrie.org>

Show Full Headers
Complete Article Headers
Message-ID: <tgbt12$7s0o$3@news.trigofacile.com>
Subject: Re: How to permit user to set the right part of message-id
Date: Tue, 20 Sep 2022 10:18:42 +0200
From: Julien ÉLIE <iulius@nom-de-mon-site.com.invalid>
References: <632790d3$0$22052$426a74cc@news.free.fr> <argle-bargle@argle.bargle.xyz> <63279bd2$0$22055$426a74cc@news.free.fr> <87h7148aq4.fsf@hope.eyrie.org> <6328a840$0$2976$426a74cc@news.free.fr> <tgaje6$6pa5$1@news.trigofacile.com> <6328dcc9$0$5132$426a74cc@news.free.fr> <tganq1$6pa5$2@news.trigofacile.com> <87y1ufxary.fsf@hope.eyrie.org>
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: Tue, 20 Sep 2022 08:18:42 -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="258072"; 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.2.2
Cancel-Lock: sha1:ZhII1Wm2iGzMpoGUZfk9scAOcm8= sha256:9hhKtRE2vcE6uOpvAedeu5M7/cs5bXzGspI2Tl3f/lQ= sha1:dfxOjdJG1NePd6Pn3tonc87BVaQ= sha256:pjL0dpu04mR8LzMFiIs/fQq7syqdt1hC5xUvtW7OxVs=
In-Reply-To: <87y1ufxary.fsf@hope.eyrie.org>