Article View: news.software.nntp
Article #57422Re: [yEnc] A small MIME fix
From: Curt Welch
Date: Tue, 19 Mar 2002 18:57
Date: Tue, 19 Mar 2002 18:57
94 lines
5523 bytes
5523 bytes
"Eric A. Hall" <ehall@ehsco.com> wrote: > Curt Welch wrote: > > or is the idea to fib just enough that MIME can be used > as a carrier for the data, without trying to conform to the model? I'm not sure what makes the most sense. > > The mime multipart stuff doesn't seem to fit the needs of Usenet > > at all. > > MIME is not fixed in time or scope. Extend it however you wish. Well, here's what I'm thinking now. What we need for Usenet is not a standard for sending a file as a multiple articles, but a standard for how to send a "file segment". An article which holds a partial (but contiguous) chunk of a file. We need to stop thinking about this problem as one of defining the correct format for posting a multipart file and simply think about it as a standard for the correct way to post a partial file. This format would be used for re-posting chunks of files which were lost as well as for posting the entire file in multiple chunks. For example, once you think about the problem this way, then decoding tools will look for all the chunks required to complete the file and will not care if some of them overlap because they were posted by different people with different part sizes. The decoders could then check the bytes in the overlaping sections to make sure they match. That's one more tool the decoder can use to make sure the segments match. And once the decoders are doing that, then the posting tools could make the segements overlap on purpose to help the decoders correctly join the segments. The mime message partial standard was not really created to solve this problem. Was it? (like I said, I have to read it. :)). > > Does MIME have any type of application specific keywords to make this > > work? > > > > Content-Type: application/x-yyencoded; x-crc=5a901c2f; x-offset=123000; > > x-end=246000 > > > > etc. ??? > > Any content-type can define any parameters that it needs. Parameters > stack, so as long as the major media-type (application) doesn't define > that parameter already, the minor media-type (yEnc) can define whatever > parameters it needs. > > That should not be read as endorsing this approach. If a CTE is defined, > we can define a generic application/partial media-type that provides the > service above (whole-file MD5, this-part MD5, etc) and which works with > base64, 7bit, X-yEnc, all of them equally. Yeah, some generic way in MIME to indicate that the data is a partial file and to include a standard whole-file identifier (MD5 or whatever), and other whole-file information (name, type, size), and then add the segment information, (offset/length), is what we are looking for. If it works with any transfer encoding, that's great. By yEnc is not just a transfer encoding. It's a tranfer encoding wrapped with file meta-data. I'm not seeing a clean way to do this "right" in MIME and still keep compatibility with yEnc. To do this "righ", you need a new MIME CTE, which simply has the same characteristis as yEnc - i.e. near-binary format that works safely on Usenet. A "real" MIME CTE would not include ybegin and yend lines even if the data was encoded bascially the same. To keep any compatibility with yEnc, I think you need to label it something like Content-Type: application/x-yencode. But then any general solution to allowing MIME to define "file segments" would not fit. A file segment of this type would impy that you were transporting only a segment of a yEnc part. And for more to think about... A new issue I see now is the problem of header size. The whole-file information like the MD5 needs to be repeated in every segment. But newsreaders don't really want to waste their time downloading the MD5, the file name and the file size, 50 times for a 50 part post if they don't have to. If we put the whole-file information in a different header from the segment information (offset/length), then newsreaders can use XHDR like commands to download the segment information for all the parts, but use HEAD do get the whole-file information only once. I don't know if this need can be addressed with how MIME would want to do this or not. -- Curt Welch http://CurtWelch.Com/ curt@kcwc.com Webmaster for http://NewsReader.Com/
Technical Details
Message-ID:
<20020319135716.578$kL@newsreader.com>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!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!netnews.com!xfer02.netnews.com!feed1.newsreader.com!news2.newsreader.com!ellis.newsreader.com!not-for-mailReferences:
<87k7s9d7tr.fsf@iki.fi> <1016494435.447075@ok-corral.gunslinger.net> <3C968113.D4E2A742@ehsco.com> <20020318195220.479$6R@newsreader.com> <3C969910.38C77BD4@ehsco.com>Show Full Headers
Complete Article Headers
Message-ID: <20020319135716.578$kL@newsreader.com>
Subject: Re: [yEnc] A small MIME fix
Date: Tue, 19 Mar 2002 18:57:16 +0000
From: curt@kcwc.com (Curt Welch)
References: <87k7s9d7tr.fsf@iki.fi> <1016494435.447075@ok-corral.gunslinger.net> <3C968113.D4E2A742@ehsco.com> <20020318195220.479$6R@newsreader.com> <3C969910.38C77BD4@ehsco.com>
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!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!netnews.com!xfer02.netnews.com!feed1.newsreader.com!news2.newsreader.com!ellis.newsreader.com!not-for-mail
Organization: NewsReader.Com
Newsgroups: news.software.nntp
X-Trace: NewsReader.Com mGLsdt8NQfzMoEolwfPiFS.9yZw585XwgjJ,sRh2hwn.WGAnA
X-Face: "p}G*1KH{+F7EYGKLb>ogDguabZ+%,?^epeFB!nzu`)`$=QcvL1KF6<0GH!Tbc!Sqo[|tV5
%IW48mQf3K=Ci&gZ7]]aazx@]Y-nq!r5{yH/#,?@lDdUDvOfByB2hVW0.@OM%{l/{cT'{w
X-Url: http://CurtWelch.Com/
User-Agent: NewsReader.Com
Lines: 93