Thread View: news.software.nntp
77 messages
77 total messages
Page 1 of 2
Started by Nuutti Kotivuori
Mon, 18 Mar 2002 18:55
Page 1 of 2 • 77 total messages
[yEnc] A small MIME fix
Author: Nuutti Kotivuori
Date: Mon, 18 Mar 2002 18:55
Date: Mon, 18 Mar 2002 18:55
26 lines
1929 bytes
1929 bytes
How about doing a simple quickfix to yEnc draft about MIME. Let's declare a new mime-type: application/x-yyencoded and so specify that the messages must contain the headers: MIME-Version: 1 Content-Type: application/x-yyencoded Content-Transfer-Encoding: 8bit That way atleast the posts are not interpreted as text/plain. Now ofcourse yyencoding isn't really a mime-type, since it's just an encoding - or rather a bit more, but still - but this would atleast let people easily produce MIME-compatible messages with yEnc and have the common news-readers not render the message as text. Ofcourse the problem is that it will probably take quite a while before these things would be done in the posting programs, but hopefully it's not too big of a change that enuff whining can make the simple three line addition. Comments? -- Naked
Re: [yEnc] A small MIME fix
Author: Jeremy
Date: Mon, 18 Mar 2002 23:33
Date: Mon, 18 Mar 2002 23:33
27 lines
1540 bytes
1540 bytes
Nuutti Kotivuori <naked@iki.fi> wrote: > How about doing a simple quickfix to yEnc draft about MIME. Let's > declare a new mime-type: > > application/x-yyencoded > > and so specify that the messages must contain the headers: > > MIME-Version: 1 > Content-Type: application/x-yyencoded > Content-Transfer-Encoding: 8bit > > That way atleast the posts are not interpreted as text/plain. That would be a decent interim fix. Though a CTE of "binary" may actually be more appropriate, I'm not sure. Anyway, there's no reason the above can't be done in the posting software right now. Those headers need only be a constant value, since the only goal is to prevent software from interpreting the message as 7-bit text/plain. (Though it's "MIME-Version: 1.0", not just "1", though I don't know if that makes a difference.) -- Jeremy | jeremy@exit109.com
Re: [yEnc] A small MIME fix
Author: Eric A. Hall
Date: Tue, 19 Mar 2002 00:06
Date: Tue, 19 Mar 2002 00:06
27 lines
2081 bytes
2081 bytes
Jeremy wrote: > > Content-Type: application/x-yyencoded > > Content-Transfer-Encoding: 8bit > That would be a decent interim fix. Though a CTE of "binary" may > actually be more appropriate, I'm not sure. Neither "8bit" nor "binary" would be appropriate. "8bit" says that the entity conforms to mail-safe line limits (998 max) where the <CRLF> is part of the data, while "binary" says that the entity does not conform to mail-safe line-limits and that <CRLF> is part of the data. In both cases, conversion to Base64 could legally happen and the understood treatment of <CRLF> would result in data corruption. Also, on the obvious point, yEnc is a transfer encoding not a MIME type. > it's "MIME-Version: 1.0", not just "1", though I don't know if that > makes a difference.) It does. This was specifically clarified in 2046. -- Eric A. Hall http://www.ehsco.com/ Internet Core Protocols http://www.oreilly.com/catalog/coreprot/
Re: [yEnc] A small MIME fix
Author: Andrew - Supernews
Date: Tue, 19 Mar 2002 00:44
Date: Tue, 19 Mar 2002 00:44
25 lines
1835 bytes
1835 bytes
In article <3C968113.D4E2A742@ehsco.com>, Eric A. Hall wrote: > Jeremy wrote: > >> > Content-Type: application/x-yyencoded >> > Content-Transfer-Encoding: 8bit > >> That would be a decent interim fix. Though a CTE of "binary" may >> actually be more appropriate, I'm not sure. "8bit" is correct > Neither "8bit" nor "binary" would be appropriate. "8bit" says that the > entity conforms to mail-safe line limits (998 max) where the <CRLF> is > part of the data, while "binary" says that the entity does not conform to > mail-safe line-limits and that <CRLF> is part of the data. In both cases, > conversion to Base64 could legally happen and the understood treatment of ><CRLF> would result in data corruption. in what way? If the data were converted to base64, it would have to be converted back to 8bit before it could be yDecoded anyway. -- Andrew, Supernews http://www.supernews.com - individual and corporate NNTP services
Re: [yEnc] A small MIME fix
Author: Curt Welch
Date: Tue, 19 Mar 2002 00:52
Date: Tue, 19 Mar 2002 00:52
37 lines
2599 bytes
2599 bytes
"Eric A. Hall" <ehall@ehsco.com> wrote: > Jeremy wrote: > > > > Content-Type: application/x-yyencoded > > > Content-Transfer-Encoding: 8bit > > > That would be a decent interim fix. Though a CTE of "binary" may > > actually be more appropriate, I'm not sure. > > Neither "8bit" nor "binary" would be appropriate. "8bit" says that the > entity conforms to mail-safe line limits (998 max) where the <CRLF> is > part of the data, What makes you think the CRLF is not part of the data in a yEnc file? A yEnc file is the output of a yEnc encoder and can easilly be thought of as an application specific data file and not just a new MIME transfer encoding. If yEnc was an encoding that was needed in MIME, then we could in theory try to go that way, but maybe treating it as an application specific data file type is actually the best way to deal with this. The mime multipart stuff doesn't seem to fit the needs of Usenet at all. But maybe multiple yEnc files could. It still however doesn't answer the question about how to get the needed information into the headers. Does MIME have any type of application specific keywords to make this work? Content-Type: application/x-yyencoded; x-crc=5a901c2f; x-offset=123000; x-end=246000 etc. ??? -- Curt Welch http://CurtWelch.Com/ curt@kcwc.com Webmaster for http://NewsReader.Com/
Re: [yEnc] A small MIME fix
Author: Jeremy
Date: Tue, 19 Mar 2002 01:48
Date: Tue, 19 Mar 2002 01:48
31 lines
1929 bytes
1929 bytes
Eric A. Hall <ehall@ehsco.com> wrote: >> That would be a decent interim fix. Though a CTE of "binary" may >> actually be more appropriate, I'm not sure. > > Neither "8bit" nor "binary" would be appropriate. "8bit" says that the > entity conforms to mail-safe line limits (998 max) where the <CRLF> is > part of the data, On reflection, "8bit" is the right answer, I think. > In both cases, conversion to Base64 could legally happen and the > understood treatment of <CRLF> would result in data corruption. No, because it would need to be converted back from base64 to 8bit before decoding, and that would put it back the way it was. CRLF is handled by the encoding, and will only happen at the ends of lines, not elsewhere in the post-encoding datastream, so the understood treatment of CRLF is still proper. > Also, on the obvious point, yEnc is a transfer encoding not a MIME type. Well, yes. I was just talking about an interim solution to prevent the most glaring problems with yEnc as it's being used now, where you get the problem that, without those MIME headers, software can treat the message body as 7bit text/plain. -- Jeremy | jeremy@exit109.com
Re: [yEnc] A small MIME fix
Author: Eric A. Hall
Date: Tue, 19 Mar 2002 01:49
Date: Tue, 19 Mar 2002 01:49
48 lines
3043 bytes
3043 bytes
Curt Welch wrote: > > > > Content-Type: application/x-yyencoded > > > > Content-Transfer-Encoding: 8bit > What makes you think the CRLF is not part of the data in a yEnc file? Well, it would be if a Content-Type identifier were used to signify that the entity contained yEnc output. And in that case, 8bit would work as a natural transfer encoding for the structured output. At that point you would have to reinvent a lot of the MIME features however, and you'd be back to where we are now. You'd have to define an entity header or a header block in the output for the real content-type, for example. Why not define yEnc as a simple eight-bit encoding with these escapes, and where <CRLF> is to be ignored (as with Base64), and keep these features, maximizing the code already in place? Wasn't that the general idea? or is the idea to fib just enough that MIME can be used as a carrier for the data, without trying to conform to the model? > The mime multipart stuff doesn't seem to fit the needs of Usenet > at all. MIME is not fixed in time or scope. Extend it however you wish. > Does MIME have any type of application specific keywords to make this > work? > > Content-Type: application/x-yyencoded; x-crc=5a901c2f; x-offset=123000; > x-end=246000 > > etc. ??? Any content-type can define any parameters that it needs. Parameters stack, so as long as the major media-type (application) doesn't define that parameter already, the minor media-type (yEnc) can define whatever parameters it needs. That should not be read as endorsing this approach. If a CTE is defined, we can define a generic application/partial media-type that provides the service above (whole-file MD5, this-part MD5, etc) and which works with base64, 7bit, X-yEnc, all of them equally. -- Eric A. Hall http://www.ehsco.com/ Internet Core Protocols http://www.oreilly.com/catalog/coreprot/
Re: [yEnc] A small MIME fix
Author: Jeremy
Date: Tue, 19 Mar 2002 01:50
Date: Tue, 19 Mar 2002 01:50
25 lines
1752 bytes
1752 bytes
Curt Welch <curt@kcwc.com> wrote: > It still however doesn't answer the question about how to get the > needed information into the headers. Does MIME have any type of > application specific keywords to make this work? > > Content-Type: application/x-yyencoded; x-crc=5a901c2f; x-offset=123000; > x-end=246000 Something very much like that is exactly what I was thinking. You don't want to add lots of new headers, because you want to minimize the number of headers which need to be grabbed by clients and exposed to XHDR/XPAT in servers. So, adding parameters to Content-Type is the way to go. (I wouldn't try to add this to the workaround which started this thread, which was application/x-yyencoded, though. Keep that as simple as possible if it's going to be used. But parameters are what I would use in a real standard.) I'll have to go back to the RFCs. Do unspecified parameters have to have the x- prefix? -- Jeremy | jeremy@exit109.com
Re: [yEnc] A small MIME fix
Author: J.B. Moreno
Date: Tue, 19 Mar 2002 05:18
Date: Tue, 19 Mar 2002 05:18
19 lines
1726 bytes
1726 bytes
In article <20020318195220.479$6R@newsreader.com>, Curt Welch <curt@kcwc.com> wrote: > It still however doesn't answer the question about how to get the > needed information into the headers. Does MIME have any type of > application specific keywords to make this work? > > Content-Type: application/x-yyencoded; x-crc=5a901c2f; x-offset=123000; > x-end=246000 > > etc. ??? Skipping whether I think MIME should be used -- in MIME unknown parameters are supposed to be ignored, so yeah, you could do the above (with or without the "x-" prefix, I'd recommend "without). -- J.B. Moreno
Re: [yEnc] A small MIME fix
Author: Russ Allbery
Date: Tue, 19 Mar 2002 06:22
Date: Tue, 19 Mar 2002 06:22
31 lines
2287 bytes
2287 bytes
J B Moreno <planb@newsreaders.com> writes:
> Curt Welch <curt@kcwc.com> wrote:
>> It still however doesn't answer the question about how to get the
>> needed information into the headers. Does MIME have any type of
>> application specific keywords to make this work?
>> Content-Type: application/x-yyencoded; x-crc=5a901c2f; x-offset=123000;
>> x-end=246000
>> etc. ???
> Skipping whether I think MIME should be used -- in MIME unknown
> parameters are supposed to be ignored, so yeah, you could do the above
> (with or without the "x-" prefix, I'd recommend "without).
In this case, you definitely use the x- prefix. Note the content type.
If you ever register application/yyencoded, *then* you register and start
using the non-"x-" versions.
MIME actively uses the x- prefix. It's not like mail where it's not
really necessary. Leaving off the "x-" means that you're saying what
you're doing is standardized.
--
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.
Re: [yEnc] A small MIME fix
Author: Nuutti Kotivuori
Date: Tue, 19 Mar 2002 06:28
Date: Tue, 19 Mar 2002 06:28
61 lines
3580 bytes
3580 bytes
Eric A. Hall wrote: > Well, it would be if a Content-Type identifier were used to signify > that the entity contained yEnc output. And in that case, 8bit would > work as a natural transfer encoding for the structured output. Exactly. Like everyone has pointed out here, 8bit is the proper CTE for yEncoded data. > At that point you would have to reinvent a lot of the MIME features > however, and you'd be back to where we are now. [...] > Wasn't that the general idea? or is the idea to fib just > enough that MIME can be used as a carrier for the data, without > trying to conform to the model? The idea was to fib just enough that MIME can be used as a carrier for the data for the _current_ yEnc. I was just suggesting a way non-MIME capable posting software can atleast produce the MIME messages, without coding MIME support - just add those three headers. I'm all for the proper MIME implementation of things - this is just a small fix, like said in the subject. [...] >> Does MIME have any type of application specific keywords to make >> this work? >> >> Content-Type: application/x-yyencoded; x-crc=5a901c2f; >> x-offset=123000; x-end=246000 >> >> etc. ??? > > Any content-type can define any parameters that it needs. Parameters > stack, so as long as the major media-type (application) doesn't > define that parameter already, the minor media-type (yEnc) can > define whatever parameters it needs. But these parameters would mean a lot more work for the posting software to generate them - and like you say below, this still wouldn't be the right solution. My solution above would just mean that MIME capable programs would not present the yEnc message as text - and possibly even being able to detect them without scanning the body, but that's secondary in this case, even. > That should not be read as endorsing this approach. If a CTE is > defined, we can define a generic application/partial media-type that > provides the service above (whole-file MD5, this-part MD5, etc) and > which works with base64, 7bit, X-yEnc, all of them equally. Yes ofcourse, this is a work that must be done - but my suggestion is just a simple hardcoded quickfix for yEnc. Then we can scrap yEnc for the proper implementation. -- Naked
Re: [yEnc] A small MIME fix
Author: Nuutti Kotivuori
Date: Tue, 19 Mar 2002 06:36
Date: Tue, 19 Mar 2002 06:36
45 lines
2558 bytes
2558 bytes
I'm replying to all of you globally here, since it seems to be faster that way. Nuutti Kotivuori wrote: [...] > MIME-Version: 1 Yes, this should be 1.0 - my mistake. > Content-Type: application/x-yyencoded > Content-Transfer-Encoding: 8bit Yes, this really is 8bit - the yEnc contents are data now, not an encoding. And the data conforms to 8bit CTE. > That way atleast the posts are not interpreted as text/plain. Now > ofcourse yyencoding isn't really a mime-type, since it's just an > encoding - or rather a bit more, but still - but this would atleast > let people easily produce MIME-compatible messages with yEnc and > have the common news-readers not render the message as text. ^^^ THIS IS THE REAL POINT ^^^ I am against putting more information in the content-type header or anyway elaborating the approach more. The proper MIME work is still something to be done - separately - but this just prevents old messages to be interpreted as text. The bonus is that it might help detecting yEnc binaries, but that is irrelevant. > Ofcourse the problem is that it will probably take quite a while > before these things would be done in the posting programs, but > hopefully it's not too big of a change that enuff whining can make > the simple three line addition. The change is just a simple hardcoded addition of 3 headers. If we include parameters, it will be more work. So I vote against it. Hope this cleared up the issue some. -- Naked
Re: [yEnc] A small MIME fix
Author: Jeremy
Date: Tue, 19 Mar 2002 07:11
Date: Tue, 19 Mar 2002 07:11
19 lines
1609 bytes
1609 bytes
Eric A. Hall <ehall@ehsco.com> wrote: > or is the idea to fib just enough that MIME can be used as a carrier > for the data, without trying to conform to the model? Yes, the idea is to stick a band-aid on the current yEnc stuff with the simple addition of three static, hard-coded headers. > That should not be read as endorsing this approach. If a CTE is defined, > we can define a generic application/partial media-type that provides the > service above (whole-file MD5, this-part MD5, etc) and which works with > base64, 7bit, X-yEnc, all of them equally. Might it be better to remove the 7bit restriction from message/partial and use that, rather than create an entire new application/* type? -- Jeremy | jeremy@exit109.com
Re: [yEnc] A small MIME fix
Author: Juergen Helbing
Date: Tue, 19 Mar 2002 08:03
Date: Tue, 19 Mar 2002 08:03
47 lines
2288 bytes
2288 bytes
Nuutti Kotivuori <naked@iki.fi> wrote: > application/x-yyencoded > Comments? You can search on Google in the group "comp.mail.mime" for "yenc". There you will see also some comments. >How about doing a simple quickfix to yEnc draft about MIME. The actual yEnc draft _is_ the "quick fix". The biggest problem with this kind of "quick fix" is that it will never permit to write a MIME-decoder which decodes yEnc properly. It will stay _always_ a "workaround" where a MIME decoder within a newsreader will have to scan the "application/xxxxx" to make decisions about the encoding. When I made this proposal (in Oct 2001) I also faced the problem that the "filename" must be modified: You cant use the "original" filename, because a MIME-decoder which does not understand yEnc will store a "picture.jpg" as "picture.jpg" - which is then a file with the JPG extension - but still yEncoded. An external yDecoder would have to _replace_ the source-file by the decoded output. Another idea was to use "picture.jpg.ync" as MIME-filename. (Another ugly hack as consequence). Or to add the real name only within the MIME-part (=ybegin - line) which keeps the problem that the charset for the filename is still unsolved...... This is not written to discourage you. Thanks for making proposals - and triggering people to think about the subject again. I can only recommend to read all the old discussions about yEnc & MIME. These groups were used: news.software.nntp comp.mail.mime alt.binaries.news-server-comparison -- Juergen
Re: [yEnc] A small MIME fix
Author: Eric A. Hall
Date: Tue, 19 Mar 2002 08:12
Date: Tue, 19 Mar 2002 08:12
15 lines
1729 bytes
1729 bytes
Jeremy wrote: > Might it be better to remove the 7bit restriction from message/partial > and use that, rather than create an entire new application/* type? It would be much easier to define a new media-type with the specific characterstics than to redefine message/partial. There are a lot of implementations that use it. The namespace is infinite, clone it to a new name, with eight-bit, that's the "fix". -- Eric A. Hall http://www.ehsco.com/ Internet Core Protocols http://www.oreilly.com/catalog/coreprot/
Re: [yEnc] A small MIME fix
Author: Claus Färber
Date: Tue, 19 Mar 2002 09:17
Date: Tue, 19 Mar 2002 09:17
13 lines
1507 bytes
1507 bytes
Eric A. Hall <ehall@ehsco.com> schrieb/wrote: > That should not be read as endorsing this approach. If a CTE is defined, > we can define a generic application/partial media-type that provides the > service above (whole-file MD5, this-part MD5, etc) and which works with > base64, 7bit, X-yEnc, all of them equally. HTTP's Content-Range? Claus -- ------------------------ http://www.faerber.muc.de/ ------------------------ OpenPGP: DSS 1024/639680F0 E7A8 AADB 6C8A 2450 67EA AF68 48A5 0E63 6396 80F0
Re: [yEnc] A small MIME fix
Author: Claus Färber
Date: Tue, 19 Mar 2002 09:27
Date: Tue, 19 Mar 2002 09:27
40 lines
2514 bytes
2514 bytes
Eric A. Hall <ehall@ehsco.com> schrieb/wrote: > Neither "8bit" nor "binary" would be appropriate. "8bit" says that the > entity conforms to mail-safe line limits (998 max) where the <CRLF> is > part of the data, while "binary" says that the entity does not conform to > mail-safe line-limits and that <CRLF> is part of the data. If yEnc is a Content-Type, the yEnc-*encoded* file makes up the MIME entity. The CRLF *is* part of the yEnc file. > In both cases, conversion to Base64 could legally happen and the > understood treatment of <CRLF> would result in data corruption. No, the CRLF would still be part of the data. If the body part is decoded, the original yEnc file (with CRLF, of course), which can be interpreted by the yEnc decoder, appears. > Also, on the obvious point, yEnc is a transfer encoding not a MIME type. This is what I thought at first too. However, if you look closer, that's not so unambigous any longer: . yEnc contains additional data, such as the =ybegin boundary, file names, etc., which a typical MIME encoding does not. . application/max-binhex is a content type. . gzip, tar, zip, etc. are all content types. It also has some useful implications: . Saving the body part will work with all newsreaders, even if it has been autoconverted by some MTA. . You don't need message/partial, which does not allow an 8bit content transfer encoding. Claus -- ------------------------ http://www.faerber.muc.de/ ------------------------ OpenPGP: DSS 1024/639680F0 E7A8 AADB 6C8A 2450 67EA AF68 48A5 0E63 6396 80F0
Re: [yEnc] A small MIME fix
Author: Claus Färber
Date: Tue, 19 Mar 2002 09:28
Date: Tue, 19 Mar 2002 09:28
22 lines
1958 bytes
1958 bytes
Russ Allbery <rra@stanford.edu> schrieb/wrote: > MIME actively uses the x- prefix. It's not like mail where it's not > really necessary. Leaving off the "x-" means that you're saying what > you're doing is standardized. No, that's wrong wrt content types. Here "x-" stands for non- registered; you can't register a content type starting with "x-". N.B. that a lot of registered content types, whose payload is not in a standardised format, don't have the "x-" either. Also N.B. that registering a content type is much easier than registering a content transfer encoding. "application/x-yenc- encoded" would be something UA authors could use at their own risk NOW; if we agree here than it should be registered as a non-"x-" type. Claus -- ------------------------ http://www.faerber.muc.de/ ------------------------ OpenPGP: DSS 1024/639680F0 E7A8 AADB 6C8A 2450 67EA AF68 48A5 0E63 6396 80F0
Re: [yEnc] A small MIME fix
Author: Jeremy
Date: Tue, 19 Mar 2002 09:41
Date: Tue, 19 Mar 2002 09:41
25 lines
1890 bytes
1890 bytes
Eric A. Hall <ehall@ehsco.com> wrote: > Jeremy wrote: > >> Might it be better to remove the 7bit restriction from message/partial >> and use that, rather than create an entire new application/* type? > > It would be much easier to define a new media-type with the specific > characterstics than to redefine message/partial. There are a lot of > implementations that use it. The namespace is infinite, clone it to a new > name, with eight-bit, that's the "fix". Okay, good point. But, my question would be, what would break if message/partial were suddenly allowed to use non-7bit encodings? Anything? Is there actually any software out there which uses message/partial as a workaround for old gateways, which seems to be the original intent (and the reason for the 7bit restriction), and which assumes the content to be 7bit without checking the transfer-encoding? If it's going to break old stuff, then yeah, a new type is the way to go. But is it going to? -- Jeremy | jeremy@exit109.com
Re: [yEnc] A small MIME fix
Author: Claus Färber
Date: Tue, 19 Mar 2002 09:42
Date: Tue, 19 Mar 2002 09:42
16 lines
1621 bytes
1621 bytes
Jeremy <jeremy@exit109.com> schrieb/wrote: > Curt Welch <curt@kcwc.com> wrote: >> Content-Type: application/x-yyencoded; x-crc=5a901c2f; x-offset=123000; >> x-end=246000 > I'll have to go back to the RFCs. Do unspecified parameters have to have > the x- prefix? Er, if you define a new content type (wheter registered or unregistered), you also define it's parameters' names. So they are not unspecified. Claus -- ------------------------ http://www.faerber.muc.de/ ------------------------ OpenPGP: DSS 1024/639680F0 E7A8 AADB 6C8A 2450 67EA AF68 48A5 0E63 6396 80F0
Re: [yEnc] A small MIME fix
Author: Jeremy
Date: Tue, 19 Mar 2002 12:45
Date: Tue, 19 Mar 2002 12:45
36 lines
2323 bytes
2323 bytes
Juergen Helbing <archiver@i3w.com> wrote: > The biggest problem with this kind of "quick fix" is that it will never > permit to write a MIME-decoder which decodes yEnc properly. > It will stay _always_ a "workaround" where a MIME decoder > within a newsreader will have to scan the "application/xxxxx" > to make decisions about the encoding. But that's exactly what you're doing now. All you need to do is add those three headers to each yEnc post. Nothing else. Nothing special in the message body. It will work with existing decoders. This particular workaround doesn't have to do with using the client's MIME decoder; it has to do with *preventing* the client's MIME decoder, or some other software while the message is in transit, from messing up the message and rendering it unusable. If you make the message's Content-Type "application/x-yyencode" or whatever, the client will treat it as opaque binary data and will not attempt to change it. That's *all* this does, but I think it's important. > When I made this proposal (in Oct 2001) I also faced the problem > that the "filename" must be modified: [...] You don't even need to bother with a MIME filename. Just do everything exactly like you're doing it now, but add those three static headers the same way in every post. This is *not* a proposal for "doing yEnc within MIME". This is a temporary workaround to make yEnc work without MIME doing it harm. -- Jeremy | jeremy@exit109.com
Re: [yEnc] A small MIME fix
Author: Andrew Gierth
Date: Tue, 19 Mar 2002 14:48
Date: Tue, 19 Mar 2002 14:48
34 lines
2147 bytes
2147 bytes
>>>>> "Claus" == Claus F�rber <claus-usenet-20020319@faerber.muc.de> writes: Claus> This is what I thought at first too. However, if you look closer, Claus> that's not so unambigous any longer: Claus> . yEnc contains additional data, such as the =ybegin boundary, Claus> file names, etc., which a typical MIME encoding does not. MIME encodings put metadata info in the Content-* headers as a general rule. 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. Claus> . gzip, tar, zip, etc. are all content types. Last time I looked, gzip was _not_ a content type. tar and zip are both multiple-file formats. Claus> It also has some useful implications: Claus> . Saving the body part will work with all newsreaders, even if it Claus> has been autoconverted by some MTA. which newsreaders do or don't have an option to save both headers and body? -- Andrew.
Re: [yEnc] A small MIME fix
Author: Eric A. Hall
Date: Tue, 19 Mar 2002 16:53
Date: Tue, 19 Mar 2002 16:53
33 lines
2604 bytes
2604 bytes
Jeremy wrote: > But, my question would be, what would break if message/partial were > suddenly allowed to use non-7bit encodings? Anything where the 8th bit was stripped during reassembly, in conformance to the specification. > If it's going to break old stuff, then yeah, a new type is the way > to go. But is it going to? The canonical reason for the 7bit limit is that message/partial specifically contains a "message" entity, and not a generic "data" entity. The embedded message is assumed to contain 7-bit data, whether this be a direct 7bit CTE, Quoted-Printable content, or Base64 content. Remember also that the message media-type family allows for recursive encoding, and that the whole family is fixated on the 7-bit nature of SMTP. Assuming that we are still discussing ways to provide yEnc features directly within MIME (and not using MIME as a carrier), then we are not talking about passing "messages" around, we are talking about passing around fragments of a binary object. This is a significant change. We can throw out the 7-bit notion of a message altogether. For another, we can define octet off-sets, which message/partial doesn't do. Short version, no you cannot just change any of the message/* types, and it would be the wrong thing to do anyway. -- Eric A. Hall http://www.ehsco.com/ Internet Core Protocols http://www.oreilly.com/catalog/coreprot/
Re: [yEnc] A small MIME fix
Author: Eric A. Hall
Date: Tue, 19 Mar 2002 17:11
Date: Tue, 19 Mar 2002 17:11
14 lines
1628 bytes
1628 bytes
Claus F�rber wrote: > HTTP's Content-Range? That is really specific to the HTTP transactions, rather than applying to content that is stored in fragments. I would think that the parameter value method of message/partial (changed to use off-sets, of course) would be the better method. -- Eric A. Hall http://www.ehsco.com/ Internet Core Protocols http://www.oreilly.com/catalog/coreprot/
Re: [yEnc] A small MIME fix
Author: Russ Allbery
Date: Tue, 19 Mar 2002 17:53
Date: Tue, 19 Mar 2002 17:53
32 lines
2617 bytes
2617 bytes
Claus F�rber <claus-usenet-20020319@faerber.muc.de> writes:
> Russ Allbery <rra@stanford.edu> schrieb/wrote:
>> MIME actively uses the x- prefix. It's not like mail where it's not
>> really necessary. Leaving off the "x-" means that you're saying what
>> you're doing is standardized.
> No, that's wrong wrt content types. Here "x-" stands for non-
> registered; you can't register a content type starting with "x-".
I'm not sure what you're disagreeing with; that's exactly my point.
> N.B. that a lot of registered content types, whose payload is not in a
> standardised format, don't have the "x-" either.
Right. But you can't use a non-"x-" name unless you register it.
> Also N.B. that registering a content type is much easier than
> registering a content transfer encoding. "application/x-yencencoded"
> would be something UA authors could use at their own risk NOW; if we
> agree here than it should be registered as a non-"x-" type.
Sure, if you're going to register it, drop the "x-". But as long as it's
not registered, you *can't* use the non-"x-" form; it's not like a header.
(At least as far as I understand MIME content types.)
--
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.
Re: [yEnc] A small MIME fix
Author: Andrew Gierth
Date: Tue, 19 Mar 2002 18:39
Date: Tue, 19 Mar 2002 18:39
36 lines
2612 bytes
2612 bytes
>>>>> "Eric" == Eric A Hall <ehall@ehsco.com> writes: Eric> Anything where the 8th bit was stripped during reassembly, in Eric> conformance to the specification. nothing in the specification requires or even implies this. The spec forbids the _generation_ of 8bit message/partial for one reason and one reason only: because there's no way for an individual gateway to convert the individual parts to a 7bit form if it needs to, and it can't reassemble the message first because the parts might go through different gateways. Neither of these is an issue for news. >> If it's going to break old stuff, then yeah, a new type is the way >> to go. But is it going to? Eric> The canonical reason for the 7bit limit is that message/partial Eric> specifically contains a "message" entity, and not a generic Eric> "data" entity. rubbish - the reason is spelled out in the spec A message/partial contains a _part_ of another entity which can be of any type whatsoever (whether simple or composite). Eric> The embedded message is assumed to contain 7-bit data, whether Eric> this be a direct 7bit CTE, Quoted-Printable content, or Base64 Eric> content. Remember also that the message media-type family Eric> allows for recursive encoding, and that the whole family is Eric> fixated on the 7-bit nature of SMTP. message/rfc822, for example, can quite legitimately be sent as 8bit. -- Andrew.
Re: [yEnc] A small MIME fix
Author: Curt Welch
Date: Tue, 19 Mar 2002 18:57
Date: Tue, 19 Mar 2002 18:57
94 lines
5523 bytes
5523 bytes
"Eric A. Hall" <ehall@ehsco.com> wrote: > Curt Welch wrote: > > or is the idea to fib just enough that MIME can be used > as a carrier for the data, without trying to conform to the model? I'm not sure what makes the most sense. > > The mime multipart stuff doesn't seem to fit the needs of Usenet > > at all. > > MIME is not fixed in time or scope. Extend it however you wish. Well, here's what I'm thinking now. What we need for Usenet is not a standard for sending a file as a multiple articles, but a standard for how to send a "file segment". An article which holds a partial (but contiguous) chunk of a file. We need to stop thinking about this problem as one of defining the correct format for posting a multipart file and simply think about it as a standard for the correct way to post a partial file. This format would be used for re-posting chunks of files which were lost as well as for posting the entire file in multiple chunks. For example, once you think about the problem this way, then decoding tools will look for all the chunks required to complete the file and will not care if some of them overlap because they were posted by different people with different part sizes. The decoders could then check the bytes in the overlaping sections to make sure they match. That's one more tool the decoder can use to make sure the segments match. And once the decoders are doing that, then the posting tools could make the segements overlap on purpose to help the decoders correctly join the segments. The mime message partial standard was not really created to solve this problem. Was it? (like I said, I have to read it. :)). > > Does MIME have any type of application specific keywords to make this > > work? > > > > Content-Type: application/x-yyencoded; x-crc=5a901c2f; x-offset=123000; > > x-end=246000 > > > > etc. ??? > > Any content-type can define any parameters that it needs. Parameters > stack, so as long as the major media-type (application) doesn't define > that parameter already, the minor media-type (yEnc) can define whatever > parameters it needs. > > That should not be read as endorsing this approach. If a CTE is defined, > we can define a generic application/partial media-type that provides the > service above (whole-file MD5, this-part MD5, etc) and which works with > base64, 7bit, X-yEnc, all of them equally. Yeah, some generic way in MIME to indicate that the data is a partial file and to include a standard whole-file identifier (MD5 or whatever), and other whole-file information (name, type, size), and then add the segment information, (offset/length), is what we are looking for. If it works with any transfer encoding, that's great. By yEnc is not just a transfer encoding. It's a tranfer encoding wrapped with file meta-data. I'm not seeing a clean way to do this "right" in MIME and still keep compatibility with yEnc. To do this "righ", you need a new MIME CTE, which simply has the same characteristis as yEnc - i.e. near-binary format that works safely on Usenet. A "real" MIME CTE would not include ybegin and yend lines even if the data was encoded bascially the same. To keep any compatibility with yEnc, I think you need to label it something like Content-Type: application/x-yencode. But then any general solution to allowing MIME to define "file segments" would not fit. A file segment of this type would impy that you were transporting only a segment of a yEnc part. And for more to think about... A new issue I see now is the problem of header size. The whole-file information like the MD5 needs to be repeated in every segment. But newsreaders don't really want to waste their time downloading the MD5, the file name and the file size, 50 times for a 50 part post if they don't have to. If we put the whole-file information in a different header from the segment information (offset/length), then newsreaders can use XHDR like commands to download the segment information for all the parts, but use HEAD do get the whole-file information only once. I don't know if this need can be addressed with how MIME would want to do this or not. -- Curt Welch http://CurtWelch.Com/ curt@kcwc.com Webmaster for http://NewsReader.Com/
Re: [yEnc] A small MIME fix
Author: Nuutti Kotivuori
Date: Tue, 19 Mar 2002 19:10
Date: Tue, 19 Mar 2002 19:10
34 lines
2451 bytes
2451 bytes
Claus F�rber wrote: > Eric A. Hall <ehall@ehsco.com> schrieb/wrote: >> Also, on the obvious point, yEnc is a transfer encoding not a MIME >> type. The idea of yEnc is that it is an encoding. In it's current form, with the =ybegin headers and everything, it is rather a MIME-type. > This is what I thought at first too. However, if you look closer, > that's not so unambigous any longer: > > . yEnc contains additional data, such as the =ybegin boundary, > file names, etc., which a typical MIME encoding does not. > . application/max-binhex is a content type. > . gzip, tar, zip, etc. are all content types. Exactly. Those are ofcourse _not_ the attributes of a future, yEnc derivative properly implemented in MIME - but they _are_ the attributes of the current version. > It also has some useful implications: > > . Saving the body part will work with all newsreaders, even if it > has been autoconverted by some MTA. > . You don't need message/partial, which does not allow an 8bit > content transfer encoding. Yes, but this really doesn't solve the big problem - that yEnc is an ugly hack and ill suited for MIME. That needs to be tackled separately. -- Naked
Re: [yEnc] A small MIME fix
Author: J.B. Moreno
Date: Tue, 19 Mar 2002 19:12
Date: Tue, 19 Mar 2002 19:12
18 lines
1748 bytes
1748 bytes
In article <87elihcbqi.fsf@iki.fi>, Nuutti Kotivuori <naked@iki.fi> wrote: > My solution above would just mean that MIME capable programs would not > present the yEnc message as text - and possibly even being able to > detect them without scanning the body, but that's secondary in this > case, even. Except your solution doesn't work -- at least not with the "MIME-capable" program I tried it with (MTNW 3.1). It /still/ corrupted the body. Of course it may work with other programs, but it's no sure fired solution for programs that don't know about yEnc. -- J.B. Moreno
Re: [yEnc] A small MIME fix
Author: Curt Welch
Date: Tue, 19 Mar 2002 19:13
Date: Tue, 19 Mar 2002 19:13
25 lines
2309 bytes
2309 bytes
Nuutti Kotivuori <naked@iki.fi> wrote: > The change is just a simple hardcoded addition of 3 headers. If we > include parameters, it will be more work. So I vote against it. If your point is simply to make MIME newsreaders stop displaying yEnc data as text, then yes, that's a simple and good and clean solution. But we were also addressing the more complex problem of how to get the segment information into the headers so newsreaders could use it to correctly deal with missing parts, and re-posts. That's where this gets fairly complex. It's easy to create 10 different standards of how to throw the data into the headers, but we are trying to figure out at the same time what is the correct way to do it now so that it doesn't have to all be re-done again in 5 years. But this type of complexity is what also kept us from actaully doing any type of yEnc in the first place and is why yEnc happened on it's own as we sat around debating it. :) I see the fact that newsreaders try to display yEnc as text to be mostly a non-problem for now. -- Curt Welch http://CurtWelch.Com/ curt@kcwc.com Webmaster for http://NewsReader.Com/
Re: [yEnc] A small MIME fix
Author: 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
Re: [yEnc] A small MIME fix
Author: Nuutti Kotivuori
Date: Tue, 19 Mar 2002 19:37
Date: Tue, 19 Mar 2002 19:37
85 lines
4259 bytes
4259 bytes
Juergen Helbing wrote: > Nuutti Kotivuori <naked@iki.fi> wrote: > >> application/x-yyencoded >> Comments? > > You can search on Google in the group "comp.mail.mime" for "yenc". > There you will see also some comments. > >> How about doing a simple quickfix to yEnc draft about MIME. > > The actual yEnc draft _is_ the "quick fix". > > The biggest problem with this kind of "quick fix" is that it will > never permit to write a MIME-decoder which decodes yEnc properly. > It will stay _always_ a "workaround" where a MIME decoder within a > newsreader will have to scan the "application/xxxxx" to make > decisions about the encoding. Yes I agree. But in my opinion, yEnc will always be the encoding where _every_ newsreader application will have to scan the body to make decisions about the encoding. So I don't think yEnc is salvageable in this sense - we need to make a yEnc lookalike content-transfer-encoding - and then transfer the metadata from the body of the message to the MIME-headers (even if they would reside physically inside the body). > When I made this proposal (in Oct 2001) I also faced the problem > that the "filename" must be modified: You cant use the "original" > filename, because a MIME-decoder which does not understand > yEnc will store a "picture.jpg" as "picture.jpg" - which is then a > file with the JPG extension - but still yEncoded. An external > yDecoder would have to _replace_ the source-file by the > decoded output. Yes, the MIME-filename should not be the internal filename. > Another idea was to use "picture.jpg.ync" as MIME-filename. > (Another ugly hack as consequence). One possibility. > Or to add the real name only within the MIME-part I personally think that the MIME headers should not say anything about the filename. > (=ybegin - line) which keeps the problem that the charset > for the filename is still unsolved...... Well that is a problem in the yEnc draft - with or without MIME. > This is not written to discourage you. > Thanks for making proposals - and triggering people to > think about the subject again. I think you are passing this subject off a bit too hastily. I am not saying that a solution like this would help parsing yEnc messages _at all_. This thing is only geared towards solving one problem: Make yEnc not show as garbage to those who stumble on such a message with a MIME-capable newsreader. And this does not require the posting nor the decoding software to understand a donkey's kidneys' worth of MIME - just adding three hardcoded lines or ignoring them like all unknown headers. All it does is make it display nicely on the MIME capable but yEnc unaware newsreader. > I can only recommend to read all the old discussions > about yEnc & MIME. These groups were used: > news.software.nntp > comp.mail.mime > alt.binaries.news-server-comparison I haven't read all of them, though some I have. I hope you don't pass this up as a rehash of an old issue before you have really verified that this is the same old issue I'm talking about. -- Naked
Re: [yEnc] A small MIME fix
Author: Nuutti Kotivuori
Date: Tue, 19 Mar 2002 19:48
Date: Tue, 19 Mar 2002 19:48
25 lines
2171 bytes
2171 bytes
J. B. Moreno wrote: > In article <87elihcbqi.fsf@iki.fi>, > Nuutti Kotivuori <naked@iki.fi> wrote: > >> My solution above would just mean that MIME capable programs would >> not present the yEnc message as text - and possibly even being able >> to detect them without scanning the body, but that's secondary in >> this case, even. > > Except your solution doesn't work -- at least not with the > "MIME-capable" program I tried it with (MTNW 3.1). It /still/ > corrupted the body. Then this MIME-capable program is not conforming to the standard I'd say. If you give me a message-id, I could check with Gnus. > Of course it may work with other programs, but it's no sure fired > solution for programs that don't know about yEnc. No it's not. But it supposed to be a sure fire solution for programs that implement MIME _properly_. -- Naked
Re: [yEnc] A small MIME fix
Author: Nuutti Kotivuori
Date: Tue, 19 Mar 2002 20:03
Date: Tue, 19 Mar 2002 20:03
43 lines
3057 bytes
3057 bytes
Curt Welch wrote: > Nuutti Kotivuori <naked@iki.fi> wrote: >> The change is just a simple hardcoded addition of 3 headers. If we >> include parameters, it will be more work. So I vote against it. > > If your point is simply to make MIME newsreaders stop displaying > yEnc data as text, then yes, that's a simple and good and clean > solution. Well that is exactly my point. > But we were also addressing the more complex problem of how to get > the segment information into the headers so newsreaders could use it > to correctly deal with missing parts, and re-posts. That's where > this gets fairly complex. It's easy to create 10 different > standards of how to throw the data into the headers, but we are > trying to figure out at the same time what is the correct way to do > it now so that it doesn't have to all be re-done again in 5 years. > But this type of complexity is what also kept us from actaully doing > any type of yEnc in the first place and is why yEnc happened on it's > own as we sat around debating it. :) Yes exactly - this is still work to be done. But that does not say why not do the above solution? > I see the fact that newsreaders try to display yEnc as text > to be mostly a non-problem for now. I still see it as a problem. I see every message in usenet that does not have MIME-Version: 1.0 a problem - especially if the contain 8bit characters. But this fix has very little bad sides IMO - and the few good sides are enough. We can atleast make yEnc non-intrusive to people with MIME-capable clients - and I think that is a big gain. 'cos right now my version of Gnus displays uuencoding neatly as a button, base64 and all mime attachments neatly as buttons - but yEnc as horrible garbage on the screen. And I don't see the reason for that since it's so easy to fix. -- Naked
Re: [yEnc] A small MIME fix
Author: Eric A. Hall
Date: Tue, 19 Mar 2002 20:11
Date: Tue, 19 Mar 2002 20:11
28 lines
2276 bytes
2276 bytes
Curt Welch wrote: > I'm not seeing a clean way to do this "right" in MIME and still keep > compatibility with yEnc. I don't think that's a viable option. The whole problem is that yEnc recreates all of the architecture that MIME already provides. Throw out the stuff from yEnc and use the MIME equivalents would be the smart play here. "compatibility with yEnc" should not be a design objective. > To do this "righ", you need a new MIME CTE, > which simply has the same characteristis as yEnc - i.e. near-binary > format that works safely on Usenet. A "real" MIME CTE would not > include ybegin and yend lines even if the data was encoded bascially > the same. Exactly. > A new issue I see now is the problem of header size. The whole-file > information like the MD5 needs to be repeated in every segment. There are a couple of ways to go at this. I'll post some info in a bit. -- Eric A. Hall http://www.ehsco.com/ Internet Core Protocols http://www.oreilly.com/catalog/coreprot/
Re: [yEnc] A small MIME fix
Author: Eric A. Hall
Date: Tue, 19 Mar 2002 20:13
Date: Tue, 19 Mar 2002 20:13
22 lines
2149 bytes
2149 bytes
Andrew Gierth wrote: > The spec forbids the _generation_ of 8bit message/partial for one > reason and one reason only: because there's no way for an individual > gateway to convert the individual parts to a 7bit form if it needs to, > and it can't reassemble the message first because the parts might go > through different gateways. Neither of these is an issue for news. Does the relevance matter? No, the parts are seven-bit, strip the eighth bit at will, regardless of the transfer protocol. > A message/partial contains a _part_ of another entity which can be of > any type whatsoever (whether simple or composite). The body of the reassembled message can certainly contain multiparts, yes, but the reassembled entity must still be a message. -- Eric A. Hall http://www.ehsco.com/ Internet Core Protocols http://www.oreilly.com/catalog/coreprot/
Re: [yEnc] A small MIME fix
Author: Andrew Gierth
Date: Tue, 19 Mar 2002 20:35
Date: Tue, 19 Mar 2002 20:35
41 lines
2460 bytes
2460 bytes
>>>>> "Nuutti" == Nuutti Kotivuori <naked@iki.fi> writes: 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. Nuutti> Yes - and yEnc is a part of a big file that has crc's and Nuutti> filename's embedded and what not. There's far more involved in the resource fork of a Mac file than the trivial amount of metadata that yenc has. Nuutti> yEnc is not a single entity either, it carries additional Nuutti> stuff. As far as MIME is concerned it's a single entity. Claus> . gzip, tar, zip, etc. are all content types. >> Last time I looked, gzip was _not_ a content type. Nuutti> Actually, it is both. No, it's not (and in fact tar isn't either). Don't take my word for it, check the registry of media types. x-gzip and x-tar do show up at times. However, according to the rules for media types, application/gzip could _not_ be registered. Nuutti> It can be used as a Content-Encoding (not Nuutti> Content-Transfer-Encoding) - where it will be usually Nuutti> transparently uncompressed on reception. there is no such thing as a Content-Encoding in mail. Are you thinking of HTTP? -- Andrew.
Re: [yEnc] A small MIME fix
Author: Claus Färber
Date: Tue, 19 Mar 2002 21:17
Date: Tue, 19 Mar 2002 21:17
16 lines
1782 bytes
1782 bytes
Russ Allbery <rra@stanford.edu> schrieb/wrote: > Claus F�rber <claus-usenet-20020319@faerber.muc.de> writes: >> No, that's wrong wrt content types. Here "x-" stands for non- >> registered; you can't register a content type starting with "x-". > I'm not sure what you're disagreeing with; that's exactly my point. Well, There's a huge difference betwenn a standardised data format and a registered content type. It was not clear which one you meant. Claus -- ------------------------ http://www.faerber.muc.de/ ------------------------ OpenPGP: DSS 1024/639680F0 E7A8 AADB 6C8A 2450 67EA AF68 48A5 0E63 6396 80F0
Re: [yEnc] A small MIME fix
Author: Andrew Gierth
Date: Tue, 19 Mar 2002 21:23
Date: Tue, 19 Mar 2002 21:23
15 lines
1660 bytes
1660 bytes
>>>>> "Eric" == Eric A Hall <ehall@ehsco.com> writes: Eric> The body of the reassembled message can certainly contain Eric> multiparts, yes, but the reassembled entity must still be a Eric> message. The content of a message/rfc822 entity is a message, but that can still be transferred in 8bit. The restriction to 7bit is not because the content is a message, but because of the gatewaying issue. -- Andrew.
Re: [yEnc] A small MIME fix
Author: Claus Färber
Date: Tue, 19 Mar 2002 21:27
Date: Tue, 19 Mar 2002 21:27
20 lines
1840 bytes
1840 bytes
Eric A. Hall <ehall@ehsco.com> schrieb/wrote: > The canonical reason for the 7bit limit is that message/partial > specifically contains a "message" entity, and not a generic "data" entity. No, that's not the real reason. A message/rfc822 could contain 8bit data without problems. However, for non-7bit data there must be the possibility to change the encoding if necessary. This would not be the case if message/ partial contained 8bit data: You would have to reassemble the whole message to be able to change the inner content-transfer- encoding header. This, however, is not possible in most cases either. So you have to outlaw 8bit so that the problem does not arise. Claus -- ------------------------ http://www.faerber.muc.de/ ------------------------ OpenPGP: DSS 1024/639680F0 E7A8 AADB 6C8A 2450 67EA AF68 48A5 0E63 6396 80F0
Re: [yEnc] A small MIME fix
Author: Eric A. Hall
Date: Tue, 19 Mar 2002 21:57
Date: Tue, 19 Mar 2002 21:57
21 lines
2048 bytes
2048 bytes
Andrew Gierth wrote: > > >>>>> "Eric" == Eric A Hall <ehall@ehsco.com> writes: > > Eric> The body of the reassembled message can certainly contain > Eric> multiparts, yes, but the reassembled entity must still be a > Eric> message. > > The content of a message/rfc822 entity is a message, but that can > still be transferred in 8bit. Okay. I had to re-read the spec. No-post-before-coffee rule goes into effect tomorrow. Anyway, the message/partial cannot be extended to allow 8bit. -- Eric A. Hall http://www.ehsco.com/ Internet Core Protocols http://www.oreilly.com/catalog/coreprot/
Re: [yEnc] A small MIME fix
Author: Nuutti Kotivuori
Date: Tue, 19 Mar 2002 22:31
Date: Tue, 19 Mar 2002 22:31
90 lines
4694 bytes
4694 bytes
Andrew Gierth wrote: >>>>>> "Nuutti" == Nuutti Kotivuori <naked@iki.fi> writes: > > 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. > > Nuutti> Yes - and yEnc is a part of a big file that has crc's and > Nuutti> filename's embedded and what not. > > There's far more involved in the resource fork of a Mac file than > the trivial amount of metadata that yenc has. Yes I know - I'm still advocating for resource fork/extensive metadata on UNIX as well. Still a binhex file represents one file - just a Mac file. > Nuutti> yEnc is not a single entity either, it carries additional > Nuutti> stuff. > > As far as MIME is concerned it's a single entity. I really don't see the separation between yEnc and BinHex. How is yEnc (in its current form) different from BinHex? > Claus> . gzip, tar, zip, etc. are all content types. > > >> Last time I looked, gzip was _not_ a content type. > > Nuutti> Actually, it is both. > > No, it's not (and in fact tar isn't either). Don't take my word for > it, check the registry of media types. You are right, gzip is not a media type. But it's not a transfer-encoding either. So neither gzip nor tar can be transferred in MIME messages at all, since they do not have registered types? That is a really poor indicator of things. There are not too many types registered in the whole list for obvious reasons. > x-gzip and x-tar do show up at times. However, according to the > rules for media types, application/gzip could _not_ be registered. Hmm. Could you elaborate? I'm guessing you might refer to these two bits: ,----[ RFC2048 ] | (1) Media types must function as an actual media format. | In particular, character sets and transfer encodings | may not be registered as media types. `---- and ,----[ RFC2048 ] | (2) Image, audio, video, and even application entities are | sometimes quite large. Compression algorithms are often | quite effective in reducing the size of large entities. | Transfer encodings can be used to apply general-purpose | non-lossy compression algorithms to MIME entities. `---- Interpreting this to the letter would indeed probably mean that gzip could not be registered as a media type. But then again, interpreting MIME to the letter would indeed probably mean that it should not be used in Usenet messages in any case. I'm not so certain that application/gzip could not be registered to transmit the actual encoded form of the message, instead of transparently coding it. In that context, it is not a transfer encoding - even though the encoding procedure would be exactly the same. > Nuutti> It can be used as a Content-Encoding (not > Nuutti> Content-Transfer-Encoding) - where it will be usually > Nuutti> transparently uncompressed on reception. > > there is no such thing as a Content-Encoding in mail. Are you > thinking of HTTP? Ah true - and it's Content-Coding there. In mail, it falls into Content-Transfer-Encoding - just that _nobody_ has registered any compressing CTE yet. Ofcourse this might have to do with the fact that it would require changes to the RFCs themselves. -- Naked
Re: [yEnc] A small MIME fix
Author: J.B. Moreno
Date: Wed, 20 Mar 2002 04:52
Date: Wed, 20 Mar 2002 04:52
40 lines
2658 bytes
2658 bytes
In article <87sn6wbapa.fsf@iki.fi>, Nuutti Kotivuori <naked@iki.fi> wrote: > J. B. Moreno wrote: > > Nuutti Kotivuori <naked@iki.fi> wrote: > > > >> My solution above would just mean that MIME capable programs would > >> not present the yEnc message as text - and possibly even being able > >> to detect them without scanning the body, but that's secondary in > >> this case, even. > > > > Except your solution doesn't work -- at least not with the > > "MIME-capable" program I tried it with (MTNW 3.1). It /still/ > > corrupted the body. > > Then this MIME-capable program is not conforming to the standard I'd > say. If you give me a message-id, I could check with Gnus. Don't have a Message-ID handy, check in alt.binaries.test.yenc for articles by me. I checked with Netscape 4.73 on the Mac and it worked -- but so does simply saving "as source". > > Of course it may work with other programs, but it's no sure fired > > solution for programs that don't know about yEnc. > > No it's not. But it supposed to be a sure fire solution for programs > that implement MIME _properly_. Well, it's not like I'm really against it, I just don't think it's really that necessary -- absent a MIME header saying otherwise, I'd expect most programs to save in a manner that is works. For instance on the Mac, MacSOUP, Outlook Express and Netscape can all work with an external decoder. -- J.B. Moreno
Re: [yEnc] A small MIME fix
Author: Juergen Helbing
Date: Wed, 20 Mar 2002 07:45
Date: Wed, 20 Mar 2002 07:45
74 lines
3489 bytes
3489 bytes
Nuutti Kotivuori <naked@iki.fi> wrote: >So I don't think yEnc is salvageable in >this sense - we need to make a yEnc lookalike >content-transfer-encoding - and then transfer the metadata from the >body of the message to the MIME-headers (even if they would reside >physically inside the body). Yes. >> (=ybegin - line) which keeps the problem that the charset >> for the filename is still unsolved...... > >Well that is a problem in the yEnc draft - with or without MIME. With MIME yEnc could store the filename only in the MIME headers. There the problem seems to be solved. >> This is not written to discourage you. >> Thanks for making proposals - and triggering people to >> think about the subject again. > >I think you are passing this subject off a bit too hastily. No - this is a misunderstanding. I am following this thread carefully - and I wanted to thank you for starting it again. I just wanted to share the knowhow from my previous attempts. >This thing is only geared towards solving one problem: > >Make yEnc not show as garbage to those who stumble on such a message >with a MIME-capable newsreader. As we see: A lot of work for solving "one problem" :-) >And this does not require the posting nor the decoding software to >understand a donkey's kidneys' worth of MIME - just adding three >hardcoded lines or ignoring them like all unknown headers. If it would be so easy, then I would wholeheartly agree. But as soon as you are using the MIME headers you must be aware of the fact that a newsreader (and a gateway) does _more_ than just 'not show as garbage". It is starting its entire internal MIME handling. So whatever you are doing after "adding just three headers" must be _fully_ MIME compliant. >All it does is make it display nicely on the MIME capable but yEnc >unaware newsreader. And here you are wrong. As soon as the MIME routines are used in a newsreader you are entering a completely new world of internal handling of the article. >> I can only recommend to read all the old discussions >> about yEnc & MIME. These groups were used: > >I haven't read all of them, though some I have. I hope you don't pass >this up as a rehash of an old issue before you have really verified >that this is the same old issue I'm talking about. Every proposal is slightly different - but in fact they all deal with the same problems. When I realised that it would be nearly impossible to introduce yEnc as a CTE I was also trying to use "just three headers". Thanks a again for restarting the discussion. I just wanted to add my previous experience. -- Juergen
Re: [yEnc] A small MIME fix
Author: Nuutti Kotivuori
Date: Wed, 20 Mar 2002 07:48
Date: Wed, 20 Mar 2002 07:48
22 lines
2214 bytes
2214 bytes
J. B. Moreno wrote: > I checked with Netscape 4.73 on the Mac and it worked -- but so does > simply saving "as source". > Well, it's not like I'm really against it, I just don't think it's > really that necessary -- absent a MIME header saying otherwise, I'd > expect most programs to save in a manner that is works. > > For instance on the Mac, MacSOUP, Outlook Express and Netscape can > all work with an external decoder. Oh! Now I get it. I wasn't talking about saving at all. I do expect programs to be able to save the entire message with headers unmangled. I was talking about the problem that the user is presented with garbage on the screen when they open the message - where as they could have it represented just as any binary on a newsgroup. And this without being yEnc aware, but being MIME aware - yEnc aware programs do it anyway. -- Naked
Re: [yEnc] A small MIME fix
Author: Nuutti Kotivuori
Date: Wed, 20 Mar 2002 19:08
Date: Wed, 20 Mar 2002 19:08
108 lines
5280 bytes
5280 bytes
Juergen Helbing wrote: > Nuutti Kotivuori <naked@iki.fi> wrote: >> So I don't think yEnc is salvageable in this sense - we need to >> make a yEnc lookalike content-transfer-encoding - and then transfer >> the metadata from the body of the message to the MIME-headers (even >> if they would reside physically inside the body). > > Yes. So we agree here. >>> (=ybegin - line) which keeps the problem that the charset >>> for the filename is still unsolved...... >> >> Well that is a problem in the yEnc draft - with or without MIME. > > With MIME yEnc could store the filename only in the MIME > headers. There the problem seems to be solved. With MIME, yEnc could store all the metadata in the MIME headers. Like said above. >>> This is not written to discourage you. >>> Thanks for making proposals - and triggering people to >>> think about the subject again. >> >> I think you are passing this subject off a bit too hastily. > > No - this is a misunderstanding. > I am following this thread carefully - and I wanted to thank you > for starting it again. > I just wanted to share the knowhow from my previous attempts. > >> This thing is only geared towards solving one problem: >> >> Make yEnc not show as garbage to those who stumble on such a message >> with a MIME-capable newsreader. > > As we see: A lot of work for solving "one problem" :-) The "lot of work" is part of discussing these things in a public forum - everybody has an opinion. >> And this does not require the posting nor the decoding software to >> understand a donkey's kidneys' worth of MIME - just adding three >> hardcoded lines or ignoring them like all unknown headers. > > If it would be so easy, then I would wholeheartly agree. > But as soon as you are using the MIME headers you must be aware of > the fact that a newsreader (and a gateway) does _more_ than just > 'not show as garbage". > It is starting its entire internal MIME handling. > So whatever you are doing after "adding just three headers" must be > _fully_ MIME compliant. But it is! It is not using MIME to the fullest extent it can be used - but it is _fully_ MIME compliant. And the specification explicitly says that an unknown application media type must be treated as application/octet-stream - which is exactly right in our case - the user sees that is an unknown binary message and is not presented with garbage on the screen. >> All it does is make it display nicely on the MIME capable but yEnc >> unaware newsreader. > > And here you are wrong. > As soon as the MIME routines are used in a newsreader you are > entering a completely new world of internal handling of the article. Yes, we are entering the MIME world of handling for the article - and in there the unknown article must be rendered as application/octet-stream as by the standard - which is exactly what we want. You seem to be thinking that the MIME requires that there is enough information for the client to parse the message. It does not. To simplify my proposal - it just tags the message as binary so newsreaders won't show it as is to the user. >>> I can only recommend to read all the old discussions >>> about yEnc & MIME. These groups were used: >> >> I haven't read all of them, though some I have. I hope you don't >> pass this up as a rehash of an old issue before you have really >> verified that this is the same old issue I'm talking about. > > Every proposal is slightly different - but in fact they all deal > with the same problems. When I realised that it would be nearly > impossible to introduce yEnc as a CTE I was also trying to use "just > three headers". Well what I'm here trying to do is to keep exact compatibility with the current yEnc version - but still make the messages compatible with MIME - without requiring either. And I haven't seen anybody yet present good reasons why not do this. Hopefully this discussion will progress from here. > Thanks a again for restarting the discussion. > I just wanted to add my previous experience. -- Naked
Re: [yEnc] A small MIME fix
Author: J.B. Moreno
Date: Wed, 20 Mar 2002 19:49
Date: Wed, 20 Mar 2002 19:49
34 lines
2606 bytes
2606 bytes
In article <878z8nbrxo.fsf@iki.fi>, Nuutti Kotivuori <naked@iki.fi> wrote: > J. B. Moreno wrote: > > I checked with Netscape 4.73 on the Mac and it worked -- but so does > > simply saving "as source". > > > Well, it's not like I'm really against it, I just don't think it's > > really that necessary -- absent a MIME header saying otherwise, I'd > > expect most programs to save in a manner that is works. > > > > For instance on the Mac, MacSOUP, Outlook Express and Netscape can > > all work with an external decoder. > > Oh! Now I get it. I wasn't talking about saving at all. I do expect > programs to be able to save the entire message with headers unmangled. > > I was talking about the problem that the user is presented with > garbage on the screen when they open the message - where as they could > have it represented just as any binary on a newsgroup. And this > without being yEnc aware, but being MIME aware - yEnc aware programs > do it anyway. Even with that -- MTNW 3.1 showed the "garbage" while Netscape showed an icon, and although it may not do so "proper" MTNW *does* handle MIME. And I don't have a preference between showing the "garbage" as you call it and just an attachment icon -- I think both have their pro's and con's. -- J.B. Moreno
Re: [yEnc] A small MIME fix
Author: Jeremy
Date: Thu, 21 Mar 2002 00:59
Date: Thu, 21 Mar 2002 00:59
11 lines
1024 bytes
1024 bytes
Curt Welch <curt@kcwc.com> wrote: > I'm not seeing a clean way to do this "right" in MIME and still keep > compatibility with yEnc. Backward compatibility with yEnc doesn't need to be (and shouldn't be) a design goal. -- Jeremy | jeremy@exit109.com
Re: [yEnc] A small MIME fix
Author: Nuutti Kotivuori
Date: Thu, 21 Mar 2002 06:53
Date: Thu, 21 Mar 2002 06:53
27 lines
2322 bytes
2322 bytes
jeremy@exit109.com wrote: > Curt Welch <curt@kcwc.com> wrote: > >> I'm not seeing a clean way to do this "right" in MIME and still >> keep compatibility with yEnc. > > Backward compatibility with yEnc doesn't need to be (and shouldn't > be) a design goal. I think you misunderstood. The new encoding that is getting written ofcourse should not be backward compatible - it should be done right. But this fix is for the _current_ version of yEnc. Since even the current yEnc messages are bound to get posted for quite a while to different groups - it would be nice if they atleast had the rudimentary tagging that they really are binary messages. So in this case, backward compatibility must be a design goal. I just want every yEnc message in the world _right now_ to have a content-type saying they are binary - and the easiest way to do this is get the suggestion included in the draft and then whine to people about not conforming to that - especially since there is only a need to whine to the posting software writers. -- Naked
Re: [yEnc] A small MIME fix
Author: Juergen Helbing
Date: Thu, 21 Mar 2002 07:15
Date: Thu, 21 Mar 2002 07:15
85 lines
3987 bytes
3987 bytes
Nuutti Kotivuori <naked@iki.fi> wrote: >> As we see: A lot of work for solving "one problem" :-) > >The "lot of work" is part of discussing these things in a public forum >- everybody has an opinion. I've done this since my first steps with yEnc. It is the only method to get input from all parties. >> So whatever you are doing after "adding just three headers" must be >> _fully_ MIME compliant. > >But it is! It is not using MIME to the fullest extent it can be used - >but it is _fully_ MIME compliant. And the specification explicitly >says that an unknown application media type must be treated as >application/octet-stream - which is exactly right in our case - the >user sees that is an unknown binary message and is not presented with >garbage on the screen. From my own (older) "MIME-proposals": Content-Type: application/octet-stream; name="al_larsonbw026_stranger.jpg.ync" Content-Transfer-Encoding: X-yEnc Content-Disposition: attachment; filename="al_larsonbw026_stranger.jpg.ync" >Yes, we are entering the MIME world of handling for the article - and >in there the unknown article must be rendered as >application/octet-stream as by the standard - which is exactly what we >want. I have learned meanwhile that some software does not follow this rule. It still corrupts the message-body. >You seem to be thinking that the MIME requires that there is enough >information for the client to parse the message. It does not. To >simplify my proposal - it just tags the message as binary so >newsreaders won't show it as is to the user. From my own experience some newsreaders are treating MIME messages completely different - especially when it comes to joining and saving to disk. The same newsreaders do save a message properly if they are are _not_ MIME, but simply text with a yEnc encoded body. I did _realise_ what you are proposing - and my own tools have a hidden "checkbox" which creates yEnc posts with a MIME embedding. If it would have worked properly, then I would have help up my proposals for MIME - and the pages which describe it would still be on my website. But there are _additional_ problems - at least with the newsreaders I am running. So I assume that for more MIME-clients will have problems with this method. This is the reason why I did not want to continue that way: Creating a MIME embedding which causes even more problem than 'raw' yEncoded messages would be a bad idea. Just my own experiences - feel free to make your own tests. >Well what I'm here trying to do is to keep exact compatibility with >the current yEnc version - but still make the messages compatible with >MIME - without requiring either. I dont know if you have read my own "MIME-embedding" proposal which was earlier on www.yenc.org. It is hidden, but still there: http://www.winews.net/yenc/ymime.txt >And I haven't seen anybody yet present good reasons why not do this. I dont remember all details. But my own proposal was discussed in the comp.mail.mime group (and here). My latest investigations with an honoured MIME expert did only add discouragement to the topic :-( -- Juergen
Re: [yEnc] A small MIME fix
Author: Juergen Helbing
Date: Thu, 21 Mar 2002 10:51
Date: Thu, 21 Mar 2002 10:51
74 lines
3496 bytes
3496 bytes
Nuutti Kotivuori <naked@iki.fi> wrote: >MIME-Version: 1 >Content-Type: application/x-yyencoded >Content-Transfer-Encoding: 8bit Just made a short test of this (to make sure what my own tools - and others ;-) would do with such MIME-headers in the messages - if they are invented: It seems that my version OE is no longer able to join multiparts automatically if such headers are used. It permits to join & decode manually - and then write the file with the full subject as filename to disk. It hides the parts - and there is not any text seen in the message body pane. Just the attachment icon. Combining and storing the parts results in one large file. But - as I noted previously - the CRLF between the messages is removed. This creates one large line which contains the =yend part=1 ....... =ybegin part=2 So the external yDecoder cant decode this file. And additional empty line after =yend must be included to make this work. (Some other newsreader might store this line-seperator as an empty line into the file, but for yEnc this is no problem because it is resistant to empty lines outside the =ybegin-=yend clause. Other formats (QPlite) have more problems with this. And - of course - it is not possible to display the "raw text" quickly. So any raw text in front of the binary is never visible. If the filename is not mentioned in the subject line then the user will never see it again. Single parts seems to work with this method. Even without the additional CRLF. But I dont know how many other decoders would have problems with a last line which is not terminated by CRLF but end-of-file. I did make these test because I was not sure - as you said - that your proposal is identical to one I made earlier. But unfortunately I am running into the same problems all the time: As soon as MIME is used the newsreaders all work differently - as you see in this example even with an "8bit" transfer encoding. Perhaps it would work better with a "full" multipart definition - but this has other consequences. (And even Jeremy is meanwhile thinking about better solutions than message/multipart ....) My most favorite newsreader is able to handle such posts. But this one has no problems with yEnc at all as long as it is fully embedded into MIME. Everybody might feel free to do similar tests. Feel free to create such messages and post them to: alt.binaries.test.yenc I would download them and run all my own tools on them. I am ready to _help_ in the verification of the different possible variants - perhaps someone can find one which really works. But I'd better not try to create new ones myself. -- Juergen
Page 1 of 2 • 77 total messages
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads