Article View: news.software.nntp
Article #62792Re: yEnc decoding implementation
From: Curt Welch
Date: Sun, 05 Jan 2003 01:15
Date: Sun, 05 Jan 2003 01:15
168 lines
8897 bytes
8897 bytes
Rene <invalid@email.addr> wrote: > curt@kcwc.com (Curt Welch) wrote: > > The xBin id _is_ the file name. If someone wants to include another > > name, it's done outside of the xBin standard (and they will of course > > do that). > > ...here I disagree. The xBin id is the file hash. Yes, for the xBin > system, this is "its" name. Its only identification point. But the system > is here to help the user, and I am extremely certain any user doesn't > want to find a file "I8REUBPHGJ+qcCiUb3TXz4Z80" after his newsreader > software is done downloading but something like "my_holliday_movie.avi" Of course. A lot of ideas have been talked to death about how to change Usenet to make it better, but many of the reasons for lack of progress was because it was easy to start with one small issue (like uuencode overhead being a waste), and before you found an answer to that problem, you found you had sucked all of Usenet's problems into the doman of what you were going to "fix" - and the solution required you changed everything all at once. To make anything happen, it's important to find ways to fix one problem without having to fix everything. That is part of why yEnc has been able to make a difference. It was a small enought step away from uuencode that usenet was ablle to take that step. The filename problem and aritcle encoding problem is something we very much do not want to suck into the xBin issue today. It's a very long and very sliperly sloope. xBin is only trying to address one problem now, and that's the relieable transport of data. The end-user metadata problem is for tomorrow. The _only_ metadata problem xBin should touch in this verison is the metadata needed to correctly transport the files (metadata which is currently missing for Usenet posts). The filename problem is not a problem. There are many current valid ways to encode the data. You can use uuencode multipart files - which only puts the filename in the first file and in the Subject - which is messy. You can use yEnc, which will give you the file name in every part - which is much better. And yEnc currectly allows you to correclty encode the data except the stupid part= which _NEVER_ should have been part of yEnc but is too late to fix now. Or you can use various options from MIME, none of which work correctly for file segements but could be used anyhow. I suspect yEnc will become the xBin standard for multipart posts with maybe uuencode a option for single part xBin posts. > But where does the newsreader get the filename as which the xBin blocks > should be saved to disc? The same places it gets it from now. The begin lines, the =ybegin lines, and the various MIME headers. In all cases, the download tool will have one or many file names to choose from. The download tool just needs to present a file-name option to the user and let them ultimatly name the file anything they want. Even if we were to specify a re-work of the article format from the ground up for all xBin posts, there will not be any answer for the problem of multiple file names for the same data. Everybody can post the same data using whatever filename they decided to call it. The best the download tool will ever be able to do is either pick one for the user, or give the user a list of files names to pick from - and always give them the option to name it anything they want. The way the tool will work is to collect all the parts and information to build the file piece by piece in some place like a directory set up to hold all the pieces. When it has the complet file, then the user needs to tell the tool where to save it, and what to call it. The tool should never automatically write a filled called "my_movie.avi" just because that was one of the names used in one of the posts. > Don't say subject now :) If it's a uuencode multiplart with the first article missing, the subject is the only source of the filename. > What I meant was, how does the body of an xBin posting look like if for > example the blocks are sent using yEnc. Exactly like they look now without xBin. If xBin catches on, then we might migrate to a different (and standard) body convention down the road, but the nice thing about how we are doing this now is that it allows us not to deal with that issue right now. It's all backward compatible with what is currently being done. > A way to do it would be: > [taken from http://www.yenc.org/yenc-draft.1.3.txt ] > =ypart begin=1 end=100000 > .... data > =yend size=100000 part=1 pcrc32=abcdef12 > > or: > > =ybegin part=5 line=128 size=500000 name=mybinary.dat > =ypart begin=400001 end=500000 It's best of you don't put =ybegin lines in usenet posts starting in the first column because newsreaders that decode data in-line think it is data. Just show examples with extra spaces in front of each line like this: =ybegin part=5 line=128 size=500000 name=mybinary.dat =ypart begin=400001 end=500000 .... data =yend size=100000 part=10 pcrc32=12a45c78 crc32=abcdef12 > In the first example, the [p]crc32 is superflous, Yes, but it should be included for tools which are not using the xBin data. > the xBin hash already > ensures the integrity. In the second example, the part numbering is too, > because the xBin header clearly states which blocks are in the body. > > The name though is something new.. it tells as what the data should be > saved. It tells us the default name the tool should offer to the user when the user decides to save the data. > > Half the point of xBin is to create a data-id standard that could take > > is to a time where data was transported separate from RFC-1036 articles > > by Usenet. > > > > If we went there, then the standards for how Usenet would do that would > > probably be a new NNTP extension and have nothing to do with MIME or > > uuencode, or yEnc, and the file name would probably not be transported > > with the data, though maybe it could. There would be a separate text > > post that said "the following xBin file has been posted to usenet, and > > oh, BTW, the file name I used for it was "bigfile.vcd". > > Yes, but there WILL be a transition phase. And probably a damn long one. > For the time being, I'd look at xBin as a new binary transport encoding > (althoug I perfectly know it is none) like yEnc was. Some will change, > others will not, some will observe cautiously if it is worth the effort > for a transition. > > But if the filename is only transmitted using a non-xBin message, that > removes a bit of comfort xBin could provide. We could easily provide the > filename using the meta-data of the transfer encodings, or probably far > better, using MIME and then using yEnc, uuenc or base64 as a > content-type-encoding within MIME as has been suggested. (I still need to > read up on MIME myself though...) xBin _must_ work with all existing formats. We can not tell people "the body must be encoded like this...". It will prevent xBin from cathing on when there is no need to handicap it's development like that. > Well we could define that each block or all blocks within one article are > considered one single file, for example. Or are each blocks independently > encoded ? That was basically my question. It's all one chunk of data in the article. There's no need or point to break it up on hash-block boundries. -- Curt Welch http://CurtWelch.Com/ curt@kcwc.com Webmaster for http://NewsReader.Com/
Technical Details
Message-ID:
<20030104201540.262$gt@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.uchicago.edu!yellow.newsread.com!netaxs.com!newsread.com!feed3.newsreader.com!newsreader.com!news2.newsreader.com!ellis.newsreader.com!not-for-mailReferences:
<PM0003B2ED450C7E1E@minion.nashville.comcast.net> <20021229082401.490$G0@newsreader.com> <PM0003B30F3B8CE199@minion.nashville.comcast.net> <20021231084658.395$lx@newsreader.com> <20021231144148.538$ul@newsreader.com> <20030103184045.717$ro@newsreader.com>Show Full Headers
Complete Article Headers
Message-ID: <20030104201540.262$gt@newsreader.com>
Subject: Re: yEnc decoding implementation
Date: Sun, 05 Jan 2003 01:15:40 +0000
From: curt@kcwc.com (Curt Welch)
References: <PM0003B2ED450C7E1E@minion.nashville.comcast.net> <20021229082401.490$G0@newsreader.com> <PM0003B30F3B8CE199@minion.nashville.comcast.net> <20021231084658.395$lx@newsreader.com> <20021231144148.538$ul@newsreader.com> <20030103184045.717$ro@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.uchicago.edu!yellow.newsread.com!netaxs.com!newsread.com!feed3.newsreader.com!newsreader.com!news2.newsreader.com!ellis.newsreader.com!not-for-mail
Organization: NewsReader.Com
Newsgroups: news.software.nntp
X-Trace: NewsReader.Com yWj3x68GFkiOL7X4qBTC1AOrtPwsS_T9R6ZXZ8K=BdV4vxT
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: 167