Thread View: news.software.nntp
15 messages
15 total messages
Started by Andrew
Thu, 08 Nov 2001 10:40
Re: Announce: yEncoding - site with info has been created.
Author: Andrew
Date: Thu, 08 Nov 2001 10:40
Date: Thu, 08 Nov 2001 10:40
45 lines
2901 bytes
2901 bytes
In article <3be943fa.12864292@news.alt.net>, The Archiver wrote: > FYI: > > After more internal discussion and the first two implementations I've > now finally activated an information website for yEnc: > > http://www.yenc.org > http://www.i3w.com/yenc (mirror) Disappointing that you've managed to repeat almost all of uuencode's worst faults. The specific advantage that qp-lite had over your proposal is the significant installed base of client software that can _already_ decode it successfully. The expansion of nulls is the only serious drawback. Your proposal, on the other hand, continues the ridiculous tradition of uuencode of identifying the content and encoding of a message by looking for magic strings in the body. You'll note that already one post in this thread has contained that string. Your example of using yenc and MIME together shows that you've completely missed the point of how MIME works. There are two ways of doing it correctly: either use a specific content-type, e.g. application/x-yenc-encoded-file, rather than application/octet-stream; this allows MIME applications to decode the data automatically. In this case the content-transfer-encoding should be set to 8bit. The other way is to use x-yenc as the content-transfer-encoding, and use the _correct_ content-type and filename in the MIME headers (e.g. image/jpeg or whatever); this requires software changes in the MIME decoded in order to support the different transfer-encoding (which is why the MIME specs make addition of transfer encodings very hard, whereas adding a content-type is trivial). Using file extensions to distinguish content types is the mistake that OE (and for that matter Windows generally) makes that led to some, um, interesting security holes. Generating valid MIME articles is pretty straightforward if you're not trying to allow the user to compose arbitrarily-complex structured types. Parsing and decoding them is only slightly harder. -- Andrew, Supernews http://www.supernews.com - individual and corporate NNTP services
Re: Announce: yEncoding - site with info has been created.
Author: The Archiver
Date: Fri, 09 Nov 2001 10:06
Date: Fri, 09 Nov 2001 10:06
62 lines
3217 bytes
3217 bytes
andrew+nonews@supernews.com (Andrew) wrote: >Disappointing that you've managed to repeat almost all of uuencode's >worst faults. A really severe complaint. >The specific advantage that qp-lite had over your proposal is the >significant installed base of client software that can _already_ decode >it successfully. The expansion of nulls is the only serious drawback. If there would have a been any kind of specification (even a quickly written draft) then I would have tried to use it instead. But as that method does not really offer what binary people need (from my own experience as a binary poster) I've created a new thing. >Your proposal, on the other hand, continues the ridiculous tradition of >uuencode of identifying the content and encoding of a message by looking >for magic strings in the body. You'll note that already one post in this >thread has contained that string. You are very strictly looking to messages as an entity. For me a binary attachment can be also used without the headers. After storing a message to harddisk usually all headers are lost. yEnc is completely independent from headers. This might be an advantages - or a disadvantage. But as long as someone will save a message and try to decode it externally - which is default in the beginning when a new encoding is started - this seems to be a good choice. >Your example of using yenc and MIME together shows that you've completely >missed the point of how MIME works. I dont think so. >There are two ways of doing it correctly: I have tried to find out how to embed a yEncoded block into a MIME message. My visit to comp.mail.mime showed me that some other people should try this. Meanwhile I know why people are discouraged to introduce a new transfer encoding. Be sure that I would be really happy to have two proper and acceptable examples for yEncoded MIME-messages. (One for single part - the other one for multi part). I would immediately replace my 'be careful' document with it on the yenc.org site. But until now I've only got advices as: Do this - try that - you could also do this.... but nobody seems to be able to compose a message-format-example which really works with existing tools (during transition) and future tools. Sorry - I am very disappointed about MIME. -- Juergen, [The Archiver]
Re: Announce: yEncoding - site with info has been created.
Author: Andrew
Date: Fri, 09 Nov 2001 14:13
Date: Fri, 09 Nov 2001 14:13
79 lines
4668 bytes
4668 bytes
In article <3406b.9b1204@archiver.winews.net>, The Archiver wrote: [qp-lite] > If there would have a been any kind of specification > (even a quickly written draft) then I would have tried to use it instead. Here is a specification for QP-lite: ---- Except as specifically detailed below, the encoding method is exactly the same as MIME quoted-printable as detailed in RFC2045 or its successor. Note that the Content-Transfer-Encoding is still given as the value 'quoted-printable' even though we are violating the MIME spec. Quoted-printable is a mapping from the 'binary' domain to the '7bit' domain. QP-lite is instead a mapping from 'binary' to '8bit'. All octet values are encoded as themselves with the exception of the following four values: 0x00 (NUL), 0x0A (LF), 0x0D (CR), 0x3D (=). For those values, the normal QP encodings are used: =00, =0A, =0D, =3D. Optionally, other values may be encoded in cases where problems might otherwise result (e.g. robustness may be improved by encoding the '.' character if it appears at the start of a line). Lines can be up to 998 octets long after encoding, but a limit of 510 is suggested for encoders. Shorter values can be used if necessary. Each line is terminated by the normal QP 'soft' linebreak: an = character as the last character of the line. For decoders, the only change from the MIME specs is in the handling of input data that is not legal in QP but is generated by QP-lite. Specifically, all input octets other than NUL,CR,LF,"=" must be preserved, contrary to the suggestions of the MIME spec, and long lines must be decoded in full (in accordance with the existing suggestions, though a warning would not be appropriate). ---- That's it. See RFC2045 for the rest. Other features like specification of filename, integrity protection, etc., are all handled via MIME mechanisms (Content-Disposition, Content-Length, Content-MD5, etc.). Multipart posting is handled by message/partial (with another small standards violation: the restriction of message/partial to 7bit is ignored). >>Your example of using yenc and MIME together shows that you've completely >>missed the point of how MIME works. > > I dont think so. Your example confuses the use of content-types and transfer encodings in such a way as to produce something that can't usefully be used _either_ way. > But until now I've only got advices as: Do this - try that - you could > also do this.... but nobody seems to be able to compose a > message-format-example which really works with existing tools > (during transition) and future tools. > > Sorry - I am very disappointed about MIME. The reason it's tricky to do this with MIME is that it really does involve creating a new transfer-encoding (or perverting an existing one), and the nature of transfer encodings makes it hard to add them without large-scale software changes. (QP-lite, by labelling the encoding as 'quoted-printable' even though it doesn't strictly conform to the original spec, is an attempt to take advantage of those existing implementations that happen to work.) The impression I get is that the MIME authors did not consider the encoding overhead of base64 to be a problem, and assumed that support for the 'binary' encoding would be forthcoming for environments where the overhead _is_ a problem. That support isn't likely to happen on Usenet in the forseeable future (for mail, it can be deployed on a "cooperating site" basis, but that doesn't work for news), so a 'binary'->'8bit' encoding is necessary to supplement the existing 'binary'->'7bit' one (QP). -- Andrew, Supernews http://www.supernews.com - individual and corporate NNTP services
Re: Announce: yEncoding - site with info has been created.
Author: Miquel van Smoorenburg
Date: Fri, 09 Nov 2001 15:37
Date: Fri, 09 Nov 2001 15:37
20 lines
2213 bytes
2213 bytes
In article <slrn9unp3c.2v08.andrew+nonews@trinity.supernews.net>, Andrew <andrew@supernews.com> wrote: >The reason it's tricky to do this with MIME is that it really does involve >creating a new transfer-encoding (or perverting an existing one), and the >nature of transfer encodings makes it hard to add them without large-scale >software changes. (QP-lite, by labelling the encoding as 'quoted-printable' >even though it doesn't strictly conform to the original spec, is an attempt >to take advantage of those existing implementations that happen to work.) But that is not a good idea. It means that existing clients might decode an attachment incorrectly and you end up with a corrupt file without knowing it. Resulting in many cries for reposts. Several times in QP-Lite, which won't work, and after 10.000 reposts we're back to base64 since "QP-Lite is unreliable" Mike. -- "Only two things are infinite, the universe and human stupidity, and I'm not sure about the former" -- Albert Einstein.
Re: Announce: yEncoding - site with info has been created.
Author: Andrew
Date: Fri, 09 Nov 2001 15:55
Date: Fri, 09 Nov 2001 15:55
23 lines
2217 bytes
2217 bytes
In article <9sgt8a$91j$2@ncc1701.cistron.net>, Miquel van Smoorenburg wrote: > In article <slrn9unp3c.2v08.andrew+nonews@trinity.supernews.net>, > Andrew <andrew@supernews.com> wrote: >>The reason it's tricky to do this with MIME is that it really does involve >>creating a new transfer-encoding (or perverting an existing one), and the >>nature of transfer encodings makes it hard to add them without large-scale >>software changes. (QP-lite, by labelling the encoding as 'quoted-printable' >>even though it doesn't strictly conform to the original spec, is an attempt >>to take advantage of those existing implementations that happen to work.) > > But that is not a good idea. It means that existing clients might > decode an attachment incorrectly and you end up with a corrupt > file without knowing it. Resulting in many cries for reposts. > Several times in QP-Lite, which won't work, and after 10.000 reposts > we're back to base64 since "QP-Lite is unreliable" So you're back to requiring everyone to upgrade their clients? Why, when a good proportion of the installed base seems to work fine with it? -- Andrew, Supernews http://www.supernews.com - individual and corporate NNTP services
Re: Announce: yEncoding - site with info has been created.
Author: Jeremy
Date: Fri, 09 Nov 2001 20:54
Date: Fri, 09 Nov 2001 20:54
24 lines
1930 bytes
1930 bytes
Andrew <andrew@supernews.com> wrote: > So you're back to requiring everyone to upgrade their clients? Why, when > a good proportion of the installed base seems to work fine with it? While tagging the messages as quoted-printable (a) works, and (b) was my idea in the first place :) I have to admit that it's kind of hackish. Doing it right would mean creating a new transfer-encoding for it (like "quoted-binary"). That would also have the significant advantage that relays could re-encode it if they are about to send it down a 7-bit transmission path, which would make the encoding email-safe. One big drawback of qp-lite is that it is not suitable for email (and thus not suitable for moderated newsgroups). If tagged as quoted-printable, software might assume the message is suitable for 7-bit transmission. Tagging it properly would overcome that problem. I've pointed out in another newsgroup that yEnc is also unsuitable for email transmission, but this is really probably the group for that discussion. -- Jeremy | jeremy@exit109.com
Re: Announce: yEncoding - site with info has been created.
Author: The Archiver
Date: Sat, 10 Nov 2001 14:09
Date: Sat, 10 Nov 2001 14:09
30 lines
1689 bytes
1689 bytes
andrew+nonews@supernews.com (Andrew) wrote: >> If there would have a been any kind of specification >> (even a quickly written draft) then I would have tried to use it instead. > >Here is a specification for QP-lite: > > [...] Thanks for taking the time to write it finally down. As promised I did implent it into MyNews instantly. The result is pretty simple: Forte Agent and Outlook Express are properly detecting the attachment and offer storing it. Unfortunately both programs agree to store all included line-breaks also as CRLF - so the target file is extended by additional 0x0D and 0x0A words. Because there is a limitation of the maximum line size and CRLF must be used from time to time the qp-format is unusable for binary data. -- The Archiver
Re: Announce: yEncoding - site with info has been created.
Author: Andrew
Date: Sat, 10 Nov 2001 16:46
Date: Sat, 10 Nov 2001 16:46
20 lines
1806 bytes
1806 bytes
In article <2109f.ab1200@archiver.winews.net>, The Archiver wrote: > Thanks for taking the time to write it finally down. > As promised I did implent it into MyNews instantly. > The result is pretty simple: > > Forte Agent and Outlook Express are properly detecting > the attachment and offer storing it. > > Unfortunately both programs agree to store all included > line-breaks also as CRLF - so the target file is extended > by additional 0x0D and 0x0A words. Sounds like you didn't get the soft-linebreaks right - there must be an '=' immediately before each linebreak in the post. Certainly Jeremy's tests didn't have this problem. -- Andrew, Supernews http://www.supernews.com - individual and corporate NNTP services
Re: Announce: yEncoding - site with info has been created.
Author: J.B. Moreno
Date: Sat, 10 Nov 2001 18:09
Date: Sat, 10 Nov 2001 18:09
28 lines
2120 bytes
2120 bytes
In article <2109f.ab1200@archiver.winews.net>, The Archiver <archiver@i3w.com> wrote: > andrew+nonews@supernews.com (Andrew) wrote: > > >> If there would have a been any kind of specification > >> (even a quickly written draft) then I would have tried to use it instead. > > > >Here is a specification for QP-lite: > > > > [...] > > Thanks for taking the time to write it finally down. > As promised I did implent it into MyNews instantly. > The result is pretty simple: > > Forte Agent and Outlook Express are properly detecting > the attachment and offer storing it. > > Unfortunately both programs agree to store all included > line-breaks also as CRLF - so the target file is extended > by additional 0x0D and 0x0A words. Sounds like you've made the same mistake I did when I first tried to use QP-lite -- not adding a soft-line break at the end of each fake line break. I.e. you need to "escape" the CRLF by prefixing them with "=".
Re: Announce: yEncoding - site with info has been created.
Author: Jeremy
Date: Sat, 10 Nov 2001 21:03
Date: Sat, 10 Nov 2001 21:03
29 lines
1957 bytes
1957 bytes
The Archiver <archiver@i3w.com> wrote: > Thanks for taking the time to write it finally down. > As promised I did implent it into MyNews instantly. > The result is pretty simple: > > Forte Agent and Outlook Express are properly detecting > the attachment and offer storing it. > > Unfortunately both programs agree to store all included > line-breaks also as CRLF - so the target file is extended > by additional 0x0D and 0x0A words. > > Because there is a limitation of the maximum line size > and CRLF must be used from time to time the qp-format > is unusable for binary data. No, you don't insert CRLF, you use QP soft line breaks. It's also important to note that the *end* of the encoded attachment must also not be a hard line break. Agent actually has a problem decoding these attachments, at least it did when I did my tests -- it has a bug whereby it can't properly deal with an attachment which does not end in a line break, and the very end of the decoded attachment is corrupt. This is a bug in Agent's MIME implementation, not a problem with the encoding. -- Jeremy | jeremy@exit109.com
Re: Announce: yEncoding - site with info has been created.
Author: The Archiver
Date: Mon, 12 Nov 2001 10:06
Date: Mon, 12 Nov 2001 10:06
21 lines
1562 bytes
1562 bytes
"J.B. Moreno" <planb@newsreaders.com> wrote: >> Unfortunately both programs agree to store all included >> line-breaks also as CRLF - so the target file is extended >> by additional 0x0D and 0x0A words. > >Sounds like you've made the same mistake I did when I first tried to >use QP-lite -- not adding a soft-line break at the end of each fake >line break. I.e. you need to "escape" the CRLF by prefixing them with >"=". You are right - seems to be a common mistake. With the soft-line-break QP-lite works properly. -- The Archiver
Re: Announce: yEncoding - site with info has been created.
Author: The Archiver
Date: Mon, 12 Nov 2001 10:09
Date: Mon, 12 Nov 2001 10:09
25 lines
1785 bytes
1785 bytes
Jeremy <jeremy@exit109.com> wrote: >> Because there is a limitation of the maximum line size >> and CRLF must be used from time to time the qp-format >> is unusable for binary data. > >No, you don't insert CRLF, you use QP soft line breaks. >It's also important to note that the *end* of the encoded attachment >must also not be a hard line break. You are right - that's it. >Agent actually has a problem decoding >these attachments, at least it did when I did my tests -- it has a bug >whereby it can't properly deal with an attachment which does not end in >a line break, and the very end of the decoded attachment is corrupt. This >is a bug in Agent's MIME implementation, not a problem with the encoding. Adding a soft line break at the end works properly. Agent (and OE) are able to detect and decode it now properly. -- Juergen, [The Archiver]
Re: Announce: yEncoding - site with info has been created.
Author: The Archiver
Date: Mon, 12 Nov 2001 11:03
Date: Mon, 12 Nov 2001 11:03
33 lines
2308 bytes
2308 bytes
Jeremy <jeremy@exit109.com> wrote: >It's also important to note that the *end* of the encoded attachment >must also not be a hard line break. Agent actually has a problem decoding >these attachments, at least it did when I did my tests -- it has a bug >whereby it can't properly deal with an attachment which does not end in >a line break, and the very end of the decoded attachment is corrupt. This >is a bug in Agent's MIME implementation, not a problem with the encoding. I've just finished a few tests for multipart. Agent does not recognize the last boundary - and stores it in the resulting file. OE is adding far more wierd stuff for every part. Posting multiparts by QP-lite results in unpredictable results with these - and perhaps other - clients. I would have loved to deal with QP-lite and MIME if it would offer a chance that I had not to offer external decoders or require upgrades to existing news-tools. But as the current implementation of MIME is not consitent across the news-readers it seems to be criticial to post in a format which might have advantages over yEnc in its status of standardization and acceptance - but results in corrupt decoded files on the harddisk. Far more experienced people than I should deal with MIME. I'm really curious who will make the next experiments. Perhaps USEFOR will take care of it. -- Juergen, [The Archiver]
Re: Announce: yEncoding - site with info has been created.
Author: Andrew
Date: Mon, 12 Nov 2001 14:49
Date: Mon, 12 Nov 2001 14:49
16 lines
1643 bytes
1643 bytes
In article <0303c.cb1200@archiver.winews.net>, The Archiver wrote: > I've just finished a few tests for multipart. > Agent does not recognize the last boundary - and stores it in the > resulting file. OE is adding far more wierd stuff for every part. > > Posting multiparts by QP-lite results in unpredictable results > with these - and perhaps other - clients. have you posted examples illustrating the problems to some appropriate binaries group so that we can see whether it's the encoding or the decoding that's at fault? -- Andrew, Supernews http://www.supernews.com - individual and corporate NNTP services
Re: Announce: yEncoding - site with info has been created.
Author: The Archiver
Date: Mon, 12 Nov 2001 16:50
Date: Mon, 12 Nov 2001 16:50
25 lines
1885 bytes
1885 bytes
andrew+nonews@supernews.com (Andrew) wrote: >have you posted examples illustrating the problems to some appropriate >binaries group so that we can see whether it's the encoding or the >decoding that's at fault? No, I'm using only local groups for such early tests. It is already frustrating to get only negative comments. If I would try to elaborate on a MIME standard then people would shoot me - and they would be even right. And there the argument "works only for a few clients" is a real killer. Sorry, I dont have the courage to enter the MIME arena. There a far too many lions and tigers for my taste. I did a Q&D implementation for QP-lite to see if it works at all (and to be prepared for it with MyNews). There might be hope - so anybody who wants to extend MIME by QPlite could start right now. -- Juergen, [The Archiver]
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