Article View: news.software.nntp
Article #57426Re: [yEnc] A small MIME fix
From: Nuutti Kotivuori
Date: Tue, 19 Mar 2002 19:22
Date: Tue, 19 Mar 2002 19:22
67 lines
3681 bytes
3681 bytes
Do note that all I say here are for the current version of yEnc - not for the real MIME encoding that is worked on. Andrew Gierth wrote: >>>>>> "Claus" == Claus F๏ฟฝrber <claus-usenet-20020319@faerber.muc.de> >>>>>> writes: > > Claus> This is what I thought at first too. However, if you look > Claus> closer, that's not so unambigous any longer: > > Claus> . yEnc contains additional data, such as the =ybegin > Claus> boundary, file names, etc., which a typical MIME encoding > Claus> does not. > > MIME encodings put metadata info in the Content-* headers as a > general rule. Exactly - they put it in the headers that are a part of the MIME-structure. They do _not_ put it in the body of the part. This is a very definite distinction. > Claus> . application/max-binhex is a content type. > > As I understand it, the content of a binhex file is not a single > entity, but contains both the data fork and resource fork of the > file being transferred. Yes - and yEnc is a part of a big file that has crc's and filename's embedded and what not. yEnc is not a single entity either, it carries additional stuff. > Claus> . gzip, tar, zip, etc. are all content types. > > Last time I looked, gzip was _not_ a content type. Actually, it is both. It can be used as a Content-Encoding (not Content-Transfer-Encoding) - where it will be usually transparently uncompressed on reception. Or it can be a MIME-type, which kind of says that the gzip form is part of the data - and SHOULD NOT be transparently uncompressed. Example 1. You want to send a mail message to somebody, but you don't want it taking up too much bandwidth in transit. Solution 1. You use a Content-Encoding header specifying gzip and have the MIME-type as message/rfc822. Example 2. You have a broken gzip file you want the recipient to have a look at. Solution 2. You use a MIME-type specifying gzip and no Content-Encoding. Do you realize the difference? > tar and zip are both multiple-file formats. Yes and yEnc is a single-file splitting format that is not suitable for transmitting parts of abstract data, but parts of a file. So - I re-iterate - yEnc _as it is_, is more a Content-Type than a Content-Transfer-Encoding. So this simple fix will just make sure it conforms to MIME and does not cause problems for MIME aware clients. -- Naked
Technical Details
Message-ID:
<871yegcqhk.fsf@iki.fi>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!news2.google.com!news1.google.com!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!news.stealth.net!news.stealth.net!news.cc.tut.fi!uutiset.saunalahti.fi!localhostReferences:
<87k7s9d7tr.fsf@iki.fi> <1016494435.447075@ok-corral.gunslinger.net> <3C968113.D4E2A742@ehsco.com> <8LAqxaNocDB@3247.org> <871yeg4nrv.fsf@erlenstar.demon.co.uk>Show Full Headers
Complete Article Headers
Message-ID: <871yegcqhk.fsf@iki.fi> Subject: Re: [yEnc] A small MIME fix Date: Tue, 19 Mar 2002 21:22:15 +0200 From: Nuutti Kotivuori <naked@iki.fi> References: <87k7s9d7tr.fsf@iki.fi> <1016494435.447075@ok-corral.gunslinger.net> <3C968113.D4E2A742@ehsco.com> <8LAqxaNocDB@3247.org> <871yeg4nrv.fsf@erlenstar.demon.co.uk> 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!news2.google.com!news1.google.com!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!news.stealth.net!news.stealth.net!news.cc.tut.fi!uutiset.saunalahti.fi!localhost Newsgroups: news.software.nntp Organization: SAUNALAHDEN asiakas Lines: 66 NNTP-Posting-Host: cs183115.pp.htv.fi Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Trace: tron.sci.fi 1016566846 9813 213.243.183.115 (19 Mar 2002 19:40:46 GMT) X-Complaints-To: newsmaster@saunalahti.fi NNTP-Posting-Date: 19 Mar 2002 19:40:46 GMT User-Agent: Gnus/5.090006 (Oort Gnus v0.06) XEmacs/21.4 (Common Lisp, i386-debian-linux) Cancel-Lock: sha1:kY2shho7F7nFqWlKvU3o6wsx7oY=