🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nntp
Article #62746

Re: Power-Post 2003 - requesting input from authorities..

#62746
From: Kjetil Torgrim Homme
Date: Sat, 04 Jan 2003 03:52
146 lines
8123 bytes
[Russ Allbery]:
>
>   [Kjetil Torgrim Homme]:
>   > feel free to add a Content-Type header to the message, I'd love
>   > to see that.  xBin doesn't depend on it.
>   
>   So... how are you not now just recreating a MIME message?

I might create a MIME message, others would rather use existing yEnc
tools -- this is completely backwards compatible for both servers and
clients.

>   Why not just use MIME?

because then we need changes in NNTP to see any benefit (the enhanced
CHECK), and extensions to MIME for assuring integrity (to foil
attacks).

>   I mean, if you're reintroducing the idea of headers and metadata,
>   you're talking about something that carries at least as many
>   headers as HTTP traffic does, and HTTP uses MIME.

???

>   > you're right, this is a problem with the hypothetical NNTP FILE,
>   > but not a large one.  FILE (in my mind) essentially collects all
>   > the articles, decodes them, and send the file data verbatim to
>   > the client.
>   
>   Okay... now I'm really confused.
>   
>   I posted a bit ago that I thought the right way of handling things is to
>   figure out how to deal with articles of unlimited size, with some sort of
>   chunked encoding for transfer, and you said that was a horrible idea (I
>   thought).

I missed the bit about chunked encoding.  how do you suggest it will
work?

>   Now you're describing xBin as essentially exactly that.

no, FILE is a possibility iff xBin reaches saturation.  assembly is
left to the client.  this is actually a feature people wants, since it
is common to get parts from several news providers when parts go
missing.  FILE requires the file to complete on each server.

>   The only difference between what I was talking about and what
>   you're talking about seems to be that you're introducing a new
>   NNTP command for this purpose and I'd just reuse ARTICLE.  Why not
>   reuse ARTICLE?

backwards compatibility.  but how do you propose to reuse ARTICLE?

>   > now, if it's a MIME file, the metadata is gone.
>   
>   Not if you're adding Content-Type to the message....

my idea of FILE returns the decoded body only.  you can run a hash on
the data from FILE and it will match the file identity.

>   Well, message/partial also doesn't encode a file; it encodes a
>   message (which can have arbitrary nested structure).  So it's
>   inherently more general.

yes.  we haven't specified how xBin interacts with MIME, but the
natural thing to do is to just hash the entire top-level message sans
the metadata.  this means that you can send a JPEG, and xBin will hash
the JPEG itself, or you can send a nested MIME document, and xBin will
hash the textual representation of the entire MIME document.  the
latter has a slight problem if the message passes into the email
domain, since a gateway is allowed to change encoding of parts within
the MIME document, so it will produce a different hash.  no, wait.  we
just need a normalisation rule.  e.g., headers are kept verbatim[1],
bodies are decoded into binary.  it's a bit ugly, but it should work.

[1] is it allowed for gateways to rewrite headers, I'm thinking
changing the quoted word algorithm from Q to B, or the charset
specification when equivalent?

>   The restriction to base64 is due to the requirement in e-mail to
>   support 7-bit environments.  One could easily define an equivalent
>   to message/partial that doesn't have that restriction for use in
>   environments where 8-bit support is assured.

"easily"?  well, perhaps.  an unknown message/foo must be treated as
application/octet-stream, so it will require changes in the client.
(again, xBin requires no change in the client.)

>   That's not the real problem with message/partial.  The real
>   problem with message/partial is that it makes the user agent do
>   the reassembly.  That means that you can use message/partial
>   without changing any of the e-mail servers (which was the
>   requirement that they were trying to meet).  But that's not the
>   requirement we have; we want something that can be reassembled by
>   the *server* so that the client doesn't have to worry about it,
>   and you're already talking about changing NNTP to add a FILE
>   command.

I'm talking about the _possibility_, not the requirement.  FILE isn't
important.

>   So given that, what I don't understand is why not approach this
>   from the perspective of finding a way to accomodate
>   unlimited-length MIME messages with server-side chunking and
>   reassembly, generating new messages using an "enclosing" MIME type
>   analogous to message/partial that carry the metadata like the
>   checksum tree and xBin message IDs, that when reassembled yield a
>   regular Usenet message with an encoded binary embedded in it in
>   the normal fashion?

come up with a plan, and I'll listen.  xBin works today, with no
infrastructure changes.

>   Curt seems to be going in a very different direction than what I'm
>   getting out of what you're writing.

I don't think so, really.

>   What I was talking about above was, as below, the case where I
>   want the 1MB compile log but don't want the 200KB JPEG.  xBin
>   doesn't do anything to help that situation.  (And in fact, xBin
>   without Content-Type makes that situation *worse*, because now the
>   protocol that is used to transfer the binaries contains no
>   information at all about what type of binaries they are, whereas
>   right now at least some binaries are sent using MIME or one can
>   make guesses from the file name.)

the encoding won't change at all!  xBin _only_ changes the Message-ID
and adds a header X-Bin-Signature.  that's all it cares about.  the
rest can stay the same, whether it's MIME or uuencode with a horrible
Subject hack.  (_new_ clients won't need the Subject hack, but old
clients will want to download the data too.)

>   Although I agree, just getting rid of the *really* huge binaries
>   would make the whole problem simpler and would be an immediate
>   win.  That's a lot of low-hanging fruit, so maybe I shouldn't be
>   looking at the harder problems yet.

yes.  the whole point of xBin (for me!) is to make the server able to
identify which articles are parts of the same file in a robust and
simple manner.

-- 
Kjetil T.			|  read and make up your own mind
				|  http://www.cactus48.com/truth.html
Technical Details
Message-ID: <1rfzs9inbi.fsf@ellifu.ifi.uio.no>
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!uio.no!nntp.uio.no!ifi.uio.no!not-for-mail
References: <cdda0v4h6t52ov7abf1j0qkpo843itf4se@4ax.com> <1BE34317124A8BE0.7943779E42D2E55B.50557AE83F0515DF@lp.airnews.net> <yw73wdhe9p2r$.dlg@meowing.net> <1rhecsa6zr.fsf@thrir.ifi.uio.no> <14dfgjkm6p6u3.dlg@meowing.net> <1rznqk8qqs.fsf@thrir.ifi.uio.no> <ylk7hopk7n.fsf@windlord.stanford.edu> <1rlm248lyi.fsf@thrir.ifi.uio.no> <yln0mko1gk.fsf@windlord.stanford.edu> <20030102003252.529$hA@newsreader.com> <ylof70m4sh.fsf@windlord.stanford.edu> <20030102232803.181$Go@newsreader.com> <ylptre223l.fsf@windlord.stanford.edu> <1risx6joso.fsf@ellifu.ifi.uio.no> <ylvg16gkp8.fsf@windlord.stanford.edu> <1rof6xiyow.fsf@ellifu.ifi.uio.no> <ylisx5y9h2.fsf@windlord.stanford.edu>

Show Full Headers
Complete Article Headers
Message-ID: <1rfzs9inbi.fsf@ellifu.ifi.uio.no>
Subject: Re: Power-Post 2003 - requesting input from authorities..
Date: Sat, 04 Jan 2003 03:52:17 +0000
From: Kjetil Torgrim Homme <kjetilho@haey.ifi.uio.no>
References: <cdda0v4h6t52ov7abf1j0qkpo843itf4se@4ax.com> <1BE34317124A8BE0.7943779E42D2E55B.50557AE83F0515DF@lp.airnews.net> <yw73wdhe9p2r$.dlg@meowing.net> <1rhecsa6zr.fsf@thrir.ifi.uio.no> <14dfgjkm6p6u3.dlg@meowing.net> <1rznqk8qqs.fsf@thrir.ifi.uio.no> <ylk7hopk7n.fsf@windlord.stanford.edu> <1rlm248lyi.fsf@thrir.ifi.uio.no> <yln0mko1gk.fsf@windlord.stanford.edu> <20030102003252.529$hA@newsreader.com> <ylof70m4sh.fsf@windlord.stanford.edu> <20030102232803.181$Go@newsreader.com> <ylptre223l.fsf@windlord.stanford.edu> <1risx6joso.fsf@ellifu.ifi.uio.no> <ylvg16gkp8.fsf@windlord.stanford.edu> <1rof6xiyow.fsf@ellifu.ifi.uio.no> <ylisx5y9h2.fsf@windlord.stanford.edu>
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!uio.no!nntp.uio.no!ifi.uio.no!not-for-mail
Newsgroups: news.software.nntp
Organization: Dept. of Informatics, Univ. of Oslo, Norway
Lines: 145
NNTP-Posting-Host: ellifu.ifi.uio.no
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
X-Trace: maud.ifi.uio.no 1041652338 7180 129.240.65.211 (4 Jan 2003 03:52:18 GMT)
X-Complaints-To: abuse@ifi.uio.no
NNTP-Posting-Date: 4 Jan 2003 03:52:18 GMT
User-Agent: Gnus/5.0808 (Gnus v5.8.8) Emacs/20.7