Article View: news.software.nntp
Article #55301Re: yEncoding -- gnus? slrn?
From: Russ Allbery
Date: Fri, 23 Nov 2001 00:01
Date: Fri, 23 Nov 2001 00:01
53 lines
3510 bytes
3510 bytes
In news.software.nntp, JanC <janc_removethis@digibel.org> writes:
> There is a discussion about yEnc and MIME starting here:
> From: archiver@i3w.com (The Archiver)
> Newsgroups: news.software.nntp
> Subject: yEnc and MIME ?
> Date: 16 Nov 2001 11:23:34 +0100
> Message-ID: <3423b.gb1204@archiver.winews.net>
> Seems like yEnc and MIME are incompatible...
No, the approach proposed in that message just doesn't make any sense.
It's still using magic text strings.
yEncode as a content transfer encoding is not at all incompatible with
MIME. It's actually quite straight-forward. Take the current yEnc
encoding rules, strip out the needless begin and end markers, remove the
checksum in favor of using Content-MD5, and call it a content transfer
encoding of x-yencode using the standard MIME encoding rules. All done.
As a content transfer encoding, there's no need to worry about multipart
messages, interaction with other MIME parts, or any of that. It just all
falls neatly out of the existing rules for content transfer encodings.
Any MIME part that's encoded using yEncode has in its header section the
line:
Content-Transfer-Encoding: x-yenc
and the body of that part is yEncode-encoded information.
Any MIME implementation, such as those in Gnus and slrn, can then just
plug in a new content transfer encoding like the existing handling for
quoted-printable and base64, using the yEncode decoding rules. It makes
implementation very simple.
The additional stuff in there about handling multipart binaries is
misplaced. message/partial is a better designed and more formal system;
see RFC 2046. It has a problem with use on Usenet in that it explicitly
requires that only 7-bit encodings be used, but I think that a variant of
message/partial that removes that restriction is still simpler and more
consistent with MIME than the ugly hack of using magic body strings.
For the right way to do message integrity checking, see RFC 1864. Note
that, properly used, Content-MD5 survives re-encoding from one transfer
encoding to another, just the way that it should.
--
Russ Allbery (rra@stanford.edu) <http://www.eyrie.org/~eagle/>
Please post questions rather than mailing me directly.
<http://www.eyrie.org/~eagle/faqs/questions.html> explains why.
Technical Details
Message-ID:
<ylk7wis6cu.fsf@windlord.stanford.edu>Path:
mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!i2pn2.pugleaf.net!archive.newsdeef.eu!mbox2nntp-gnu.emacs.gnus.mbox.zip!archiver1.google.com!news1.google.com!newsfeed.stanford.edu!nntp.stanford.edu!not-for-mailReferences:
<221120010211552470%planb@newsreaders.com> <slrn9vq5ai.c35.hezu@donner.ling.helsinki.fi> <1f3a1ms.1a2g1vy3mhwmlN%planb@newsreaders.com> <ylelmqwk4t.fsf@windlord.stanford.edu> <Xns91625CD0FD72JanC@195.130.132.65>Show Full Headers
Complete Article Headers
Message-ID: <ylk7wis6cu.fsf@windlord.stanford.edu> Subject: Re: yEncoding -- gnus? slrn? Date: Fri, 23 Nov 2001 00:01:21 +0000 From: Russ Allbery <rra@stanford.edu> References: <221120010211552470%planb@newsreaders.com> <slrn9vq5ai.c35.hezu@donner.ling.helsinki.fi> <1f3a1ms.1a2g1vy3mhwmlN%planb@newsreaders.com> <ylelmqwk4t.fsf@windlord.stanford.edu> <Xns91625CD0FD72JanC@195.130.132.65> Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!i2pn2.pugleaf.net!archive.newsdeef.eu!mbox2nntp-gnu.emacs.gnus.mbox.zip!archiver1.google.com!news1.google.com!newsfeed.stanford.edu!nntp.stanford.edu!not-for-mail Newsgroups: gnu.emacs.gnus,news.software.readers,news.software.nntp Organization: The Eyrie Lines: 52 NNTP-Posting-Host: windlord.stanford.edu Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: news.Stanford.EDU 1006473682 5130 171.64.13.23 (23 Nov 2001 00:01:22 GMT) X-Complaints-To: news@news.stanford.edu User-Agent: Gnus/5.0807 (Gnus v5.8.7) XEmacs/21.1 (Channel Islands)