🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nntp
Article #58006

Re: Binary posting update, and test code

#58006
From: Joe Greco
Date: Mon, 08 Apr 2002 17:10
65 lines
4105 bytes
In news.software.nntp article <1018169279.730816@ok-corral.gunslinger.net>, Jeremy <jeremy@exit109.com> wrote:
:I've updated my "Better way to post binaries" site.  Specifically, I have
:replaced the "encodings" page with a preliminary spec of yEnc as a MIME
:transfer-encoding.
:
:  http://www.exit109.com/~jeremy/news/binaries/
:
:Sample code is available implementing yEnc as a MIME encoding.  It works
:with the Perl MIME-tools package.  I have posted binaries with it and was
:able to decode them without incident with the current version of Thoth,
:so backwards compatibility is preserved.
:
:I also added a parameter to application/file-fragment to indicate the
:total size of the reassembled file.

With respect to the following:

> A very small number of servers do not allow client-supplied message-ids. I
> am aware of two such servers, and at least one of them does
> not even inform the client of the message-id it has decided to use for
> the post (it just silently changes a client-supplied id). This is
> unfortunate behavior which servers should not engage in (for
> reasons which go way beyond this specification), but unless they change,
> those servers would simply be considered unsuitable for
> posting of images. Even more unfortunately, there is no way for a client to
> automatically know that a server is going to discard client-supplied ids.

We do local rewrites; it's a built-in Diablo feature.  It helps to protect
against cancel attacks and a variety of other BS.  It's a great feature
that has kept my servers Hipcrime-free.

With the agreed-upon standard for forced rewriting, it works something
like this:

200 reader0-nwblwi.news.sol.net NNRP Service Ready - news@ns.sol.net (posting ok).
POST
340 345 <3cb1cc30$0$80225$39de8f09@news.sol.net> (forced)
.   
441 Article has no body -- just headers

Now, the only tricky part for your case is that you're creating
cross-linked Message-ID's, so you need to know both "in advance".  I'd
say that opening a second channel to POST would be acceptable; you send
POST on both channels, and there's your MID's.  Then you generate the
posts and stuff 'em at the server.

You can even detect that you need to do this, because the server tells
you so, when you initiate the first POST.

Diablo provides the ID either way.  Modern versions of INN also provide 
a recommended ID, and presumably could be altered to force an ID if the
option doesn't exist.  So most modern servers appear to provide this for
the client.  There's no good reason to ignore it just because you do not
like the idea of rewrites.

If the server fails to provide an ID as part of the 340, then of course 
making up one makes sense, and I don't mind saying that servers which
rewrite without letting the client know what the ID is can simply lose.

So your paragraph above is heinously wrong.  :-)  It's technically possible
and hardly difficult to do, so a standard would be well-advised to support
this, since a de facto method for doing it already exists.

... JG
Technical Details
Message-ID: <3cb1cef9$0$82600$39de8f09@news.sol.net>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.nntp.mbox.zip!archiver1.google.com!news1.google.com!newsfeed.stanford.edu!logbridge.uoregon.edu!newsengine.sol.net!posts0.nwblwi.newsops.execpc.com!posts.news.sol.net!reader2-nwblwi.news.sol.net!not-for-mail
References: <1018169279.730816@ok-corral.gunslinger.net>

Show Full Headers
Complete Article Headers
Message-ID: <3cb1cef9$0$82600$39de8f09@news.sol.net>
Subject: Re: Binary posting update, and test code
Date: Mon, 08 Apr 2002 17:10:18 +0000
From: jgreco@ns.sol.net (Joe Greco)
References: <1018169279.730816@ok-corral.gunslinger.net>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.nntp.mbox.zip!archiver1.google.com!news1.google.com!newsfeed.stanford.edu!logbridge.uoregon.edu!newsengine.sol.net!posts0.nwblwi.newsops.execpc.com!posts.news.sol.net!reader2-nwblwi.news.sol.net!not-for-mail
Newsgroups: news.software.nntp
Organization: sol.net Network Services - Milwaukee, WI
X-Newsreader: trn 4.0-test75 (Feb 13, 2001)
Originator: jgreco@terminus.sol.net (Joe Greco)
Lines: 64
NNTP-Posting-Host: 0c29064b.news.sol.net
X-Trace: DXC=AVV7i6le]5\R0S94H89mlQi7>_KXZ:dKU6iKD3LkWifQ<co?YYS=YjWoQ;Gj;4MmVXiSnTZ@jd:`WI<FBno:X9EP
X-Complaints-To: abuse@ns.sol.net