🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nntp
Article #55221

Re: yEnc and MIME ?

#55221
From: Andrew Gierth
Date: Sat, 17 Nov 2001 18:40
39 lines
2984 bytes
>>>>> "The" == The Archiver <archiver@i3w.com> writes:

 The> As my attempts at comp.mail.mime have not been very successful I
 The> want to ask if anybody here feels competent enough to help me in
 The> embedding YENC into MIME:

 The> The general plan would be to embed a YENC-block (from =ybegin 
 The> until =yend)  into a MIME message to maintain the structure,
 The> allowing exisiting decoders to extract YENC from a text-stream, but
 The> also permit future MIME decoders to handle YENC properly.

You need to decide, above all, whether you are proposing to use YENC as a
content type or a transfer encoding. The difference is as follows:

If you define a content type for yenc-encoded data, then you can
construct a MIME entity that says, "the content of this entity is
yenc-encoded data".  A MIME application can then know that it's
supposed to pass the data to a yenc decoder (handling of content-types
should be configurable in most MIME applications, so new ones can be
added easily), but it _doesn't_ know what to do with it afterwards.

If you define yenc as a transfer-encoding, then you can construct a
MIME entity that says "the content of this entity is (say) a JPEG
image, filename foo.jpg, which has been encoded using yenc". This way,
a MIME application doesn't understand the data at all unless it has
been extended to support yenc, but if it _has_ been extended, it not
only knows how to decode the data but also what to do with it
afterwards. This also allows gateways to recode the entity to base64
or some other transfer encoding if necessary.

Now, from my reading of the MIME registration procedures, you in fact
cannot register yenc as a content-type, because it isn't really a type
of content but in fact behaves as a transfer encoding, and as such you
could only use it under an unregistered name
(e.g. application/x-yenc-encoded). However I may be wrong on this.

-- 
Andrew.
Technical Details
Message-ID: <87d72hz1eg.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!news1.google.com!sn-xit-02!supernews.com!newsfeed.direct.ca!look.ca!news-feed.riddles.org.uk!erlenstar.demon.co.uk!newsmonster
References: <3423b.gb1204@archiver.winews.net>

Show Full Headers
Complete Article Headers
Message-ID: <87d72hz1eg.fsf@erlenstar.demon.co.uk>
Subject: Re: yEnc and MIME ?
Date: Sat, 17 Nov 2001 18:40:39 +0000
From: Andrew Gierth <andrew@erlenstar.demon.co.uk>
References: <3423b.gb1204@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!sn-xit-02!supernews.com!newsfeed.direct.ca!look.ca!news-feed.riddles.org.uk!erlenstar.demon.co.uk!newsmonster
Newsgroups: news.software.nntp
Organization: disorganised
Lines: 38
NNTP-Posting-Host: erlenstar.demon.co.uk (6852:0987)
X-Mayan-Date: Long count = 12.19.8.13.6; tzolkin = 6 Cimi; haab = 4 Ceh
X-Pgp-0x0E9FFBE9: 87 25 7F 14 41 24 B3 51 E0 19 8B DE 49 74 0C 29
X-Attribution: AG
X-P-Persistent-Headers: are a bad idea.
X-Newsreader: Gnus v5.5/Emacs 20.2
X-Complaints-To: andrew@erlenstar.demon.co.uk
X-Post-Filter: postfilter v0.6 alpha