Article View: news.software.nntp
Article #63435Re: yEnc decoding implementation
From: Jeremy
Date: Mon, 20 Jan 2003 20:28
Date: Mon, 20 Jan 2003 20:28
35 lines
2714 bytes
2714 bytes
Russ Allbery <rra@stanford.edu> wrote: >> The second reason is more significant. A yEnc transfer-encoding needs >> (or really ought to have) an end-of-data marker, > > Hm. Why? None of the other ones do. A yEnc post consisting of a single MIME entity (ie, not a multipart post) will have the encoded data simply sitting in the message body with no delimiters. A server could add a blank line to the message, or worse, a signature block. Plus, the MIME rule that the trailing CRLF in a top-level entity is considered part of the data, while the trailing CRLF in a leaf entity of a multipart is not considered part of the data, is something client authors seem to guess at and often get wrong. This can result in corruption of decoded files (I observed this when testing my original qp-lite stuff). Having an end-of-data marker frees us from worrying about these issues. >> The reason I put the filename there is just so a client can grab one >> header to get required metadata, thus not even needing to grab the >> overview. But, even if this is done, it should probably be in >> Content-Disposition too anyway. > > I'm not sure this is actually useful. I guess it depends on the chances > of getting Content-Type into XHDR on binary servers and getting binary > download clients to use it, something I have no control over since I don't > run a binary server or write the clients. :) Sure, but you do write one of the servers, or at least lead the development of it. -- Jeremy | jeremy@exit109.com
Technical Details
Message-ID:
<1043094494.306870@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!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!newsfeed.icl.net!newsfeed.fjserv.net!news.tele.dk!news.tele.dk!small.news.tele.dk!newsfeed.icl.net!newsfeed.fjserv.net!c03.atl99!news.webusenet.com!telocity-west!DIRECTV!sn-xit-03!sn-xit-06!sn-xit-09!supernews.com!saloon!newsbastardReferences:
<PM0003B2ED450C7E1E@minion.nashville.comcast.net> <ylptqszh2j.fsf@windlord.stanford.edu> <1043036218.711994@ok-corral.gunslinger.net> <yl8yxgyqvl.fsf@windlord.stanford.edu>Show Full Headers
Complete Article Headers
Message-ID: <1043094494.306870@ok-corral.gunslinger.net> Subject: Re: yEnc decoding implementation Date: Mon, 20 Jan 2003 20:28:14 +0000 From: Jeremy <jeremy@exit109.com> References: <PM0003B2ED450C7E1E@minion.nashville.comcast.net> <ylptqszh2j.fsf@windlord.stanford.edu> <1043036218.711994@ok-corral.gunslinger.net> <yl8yxgyqvl.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!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!newsfeed.icl.net!newsfeed.fjserv.net!news.tele.dk!news.tele.dk!small.news.tele.dk!newsfeed.icl.net!newsfeed.fjserv.net!c03.atl99!news.webusenet.com!telocity-west!DIRECTV!sn-xit-03!sn-xit-06!sn-xit-09!supernews.com!saloon!newsbastard Newsgroups: news.software.nntp Organization: There Is No Organization Lines: 34 Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Newsreader: trn 4.0-test76 (Apr 2, 2001) X-Meow: Meow