🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nntp
Article #90364

Re: Using innfeed to send a batch instead of innxmit?

#90364
From: Julien ÉLIE
Date: Tue, 16 May 2023 20:12
65 lines
3903 bytes
Hi Russ,

>> Hmm, I'm wondering whether innfeed really makes use of the <message-id>
>> innd gives, apart for the IHAVE <message-id> exchange with the remote
>> peer.  I've not tested but maybe you couldn't try a batch with:
>> 
>> @token1@ <1@dumbid>
>> @token2@ <2@dumbid>
>> @token3@ <3@dumbid>
>> 
>> where @tokenX@ are the tokens you want to send, followed with an
>> arbitrary Message-ID (yet different for each token).  Are the 3 articles
>> fed OK?
> 
> I haven't checked the source code, but I would expect innfeed to use the
> message ID in the CHECK command to avoid reading the whole article from
> disk in the (very common) case that the remote server declines the CHECK.

I've just quickly had a look, and I do not see any parsing of headers. 
For CHECK, IHAVE and TAKETHIS, the Message-ID used is taken from 
artMsgId(article) where article->msgid has been set with newArticle() 
using the input from innd.

So this kludge may really work for Jesse.  I look forward to reading 
your results!



>> If the remote server is INN, it won't mind receiving an article with a
>> Message-ID different than the one in the NNTP command used to send it.
> 
> This remains true, of course.  You'll put a bunch of bogus message IDs in
> the remote server's conflict cache, so it's not exactly the friendliest
> thing to do, but for cooperating servers it might work.

Yes.  I would naturally not recommend to do that in other use cases than 
the one Jesse submitted here.



> That said, the message ID is also given on the TAKETHIS command line, and
> I'm not sure if innfeed gets that from the article or the input batch.

It seems not.



> If from the input batch, a server would be entirely within its rights
> to reject a message where the message ID on the TAKETHIS command line
> was different than the message ID in the article.  (I'm not sure if
> any do.)
Yes, it would totally be within its rights.

FWIW, RFC 4644 (streaming extension) explicitly says that the first 
parameter of the responses to CHECK and TAKETHIS *MUST* be the 
message-id provided by the client as the parameter to these commands. 
So for TAKETHIS, even if another Message-ID is found, this is not the 
one to use in the answer.  It will permit the sending site correctly 
wiping the bogus IDs sent.

-- 
Julien ÉLIE

« Être en vacances, c'est n'avoir rien à faire et avoir toute la journée
   pour le faire. » (Robert Orben)
Technical Details
Message-ID: <u40o3l$qmml$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: <u3n96o$1uvi$1@nnrp.usenet.blueworldhosting.com> <u3ncgc$2o3p$1@nnrp.usenet.blueworldhosting.com> <u40jee$ni4f$2@news.trigofacile.com> <87y1lo13ot.fsf@hope.eyrie.org>

Show Full Headers
Complete Article Headers
Message-ID: <u40o3l$qmml$1@news.trigofacile.com>
Subject: Re: Using innfeed to send a batch instead of innxmit?
Date: Tue, 16 May 2023 22:12:37 +0200
From: Julien ÉLIE <iulius@nom-de-mon-site.com.invalid>
References: <u3n96o$1uvi$1@nnrp.usenet.blueworldhosting.com> <u3ncgc$2o3p$1@nnrp.usenet.blueworldhosting.com> <u40jee$ni4f$2@news.trigofacile.com> <87y1lo13ot.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, 16 May 2023 20:12:37 -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="875221"; 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.10.1
Cancel-Lock: sha1:01AgDBqKvjXqqDj3c9On8XGuJQY= sha256:CrZEpJXN5ntyd926k2PfRRjE0NIprNNgqYrsWFF8upg= sha1:saIf9M2I2xWebtKHSyGeeJO42MI= sha256:GZ6dzmkBTFI1XXbrNiS0siJjPepc2fTINy9rwGU3FhA=
In-Reply-To: <87y1lo13ot.fsf@hope.eyrie.org>
Lines: 64