Article View: news.software.nntp
Article #56034Re: [yenc] - the story goes on
From: Kjetil Torgrim Homme
Date: Thu, 10 Jan 2002 19:55
Date: Thu, 10 Jan 2002 19:55
89 lines
3912 bytes
3912 bytes
[The Archiver]
> after an exciting winter holiday I've got fresh energy to spent on
> the pending projects.
Glad to hear it! :)
> My first question:
>
> Would it be possible to use MIME and YENCODE together in a way
> that every MIME capable newsreader can fetch a message, and start
> an external decoder automatically (or with a simple click) ?
>
> Someone recommended me that the MIME-type: application/yEnc would
> allow to start an external decoder.
Yes, it would.
> I'm afraid that such a MIME embedding could solve just this one
> problem (more comfort) but again move the development into a wrong
> direction. So before I'm running against the next wall I wanted to
> ask more experienced people.
This is IMO the biggest problem with the MIME design: You can't have
nested media types. The same thing happens with application/x-gzip,
where you really want a list, from the outside and in, e.g.
Content-Type: application/x-gzip, text/plain; charset="iso-8859-1"
Changing the standard so drastically is now next to impossible, I'm
sure.
So what are the options?
Alternative A:
Content-Transfer-Encoding: x-yenc
Content-Type: image/jpeg
Pro:
The media type can be specified as normal.
Con:
All MIME tools need to add support the new encoding, you can't plug
in support. The RFC says
Any entity with an unrecognized Content-Transfer-Encoding must be
treated as if it has a Content-Type of "application/octet-stream",
regardless of what the Content-Type header field actually says.
so the user can save it to file and run the decoder manually.
Alternative B:
Fudge Content-Type to keep the media type in an attribute:
Content-Type: application/x-yenc; contains="image/jpeg"
Content-Transfer-Encoding: 8bit
Pro:
Can be handled by helper applications
Con:
It's a bit hackish. We also need to devise a way to code
attributes, but perhaps this is done easily:
contains="text/plain; charset=\"iso-8859-1\""
> When it comes to the embedding of YENC into MIME then
> I dont wont to loose the feature to have a checksum (CRC32)
> for every single part of a multipart message.
> Does anybody know how to protect single messages of a multipart
> post in a MIME compliant way ?
If you use the Content-Type, you can add whatever attribute you like.
Content-Type: application/x-yenc; contains="image/jpeg"; crc32="deadbeef"
Content-Transfer-Encoding: 8bit
> I will now try to make the next steps to a "well defined standard"
> and believe that a mailing list which discusses the open issues
> might be better than my previous attempts to do everything in
> public in some newsgroups.
Hmm.
--
Kjetil T. abusing standards for the greater good
http://www.microsoft.com:products@3333866552/
Technical Details
Message-ID:
<1radvmm14q.fsf@sex.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!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!newsfeed1.uni2.dk!uio.no!nntp.uio.no!ifi.uio.no!not-for-mailReferences:
<3041a.a12202@archiver.winews.net>Show Full Headers
Complete Article Headers
Message-ID: <1radvmm14q.fsf@sex.ifi.uio.no> Subject: Re: [yenc] - the story goes on Date: Thu, 10 Jan 2002 19:55:49 +0000 From: Kjetil Torgrim Homme <kjetilho@haey.ifi.uio.no> References: <3041a.a12202@archiver.winews.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!newsfeed1.uni2.dk!uio.no!nntp.uio.no!ifi.uio.no!not-for-mail Newsgroups: news.software.nntp Organization: Dept. of Informatics, Univ. of Oslo, Norway Lines: 88 NNTP-Posting-Host: sex.ifi.uio.no Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: maud.ifi.uio.no 1010692549 9970 129.240.64.170 (10 Jan 2002 19:55:49 GMT) X-Complaints-To: abuse@ifi.uio.no NNTP-Posting-Date: 10 Jan 2002 19:55:49 GMT User-Agent: Gnus/5.0808 (Gnus v5.8.8) Emacs/20.7