Re: questions on QP, non-text attachments and munpack
Ned Freed <NED@innosoft.com> Fri, 09 February 1996 04:20 UTC
Received: from ietf.nri.reston.va.us by IETF.CNRI.Reston.VA.US id aa00444;
8 Feb 96 23:20 EST
Received: from CNRI.Reston.VA.US by IETF.CNRI.Reston.VA.US id aa00440;
8 Feb 96 23:20 EST
Received: from list.cren.net by CNRI.Reston.VA.US id aa00362;
8 Feb 96 23:20 EST
Received: from localhost (localhost [127.0.0.1]) by list.cren.net
(8.6.12/8.6.12) with SMTP id WAA02018; Thu, 8 Feb 1996 22:50:02 -0500
Received: from THOR.INNOSOFT.COM (THOR.INNOSOFT.COM [192.160.253.66]) by
list.cren.net (8.6.12/8.6.12) with ESMTP id WAA01976 for
<ietf-822@list.cren.net>; Thu, 8 Feb 1996 22:49:08 -0500
Received: from INNOSOFT.COM by INNOSOFT.COM (PMDF V5.0-6 #2001)
id <01I0Z8EEHWBK9QUQZX@INNOSOFT.COM>; Thu, 08 Feb 1996 19:47:33 -0800 (PST)
Message-Id: <01I0ZDNYEKV29QUQZX@INNOSOFT.COM>
Date: Thu, 08 Feb 1996 19:20:32 -0800 (PST)
X-Orig-Sender: owner-ietf-822@list.cren.net
Sender: ietf-archive-request@IETF.CNRI.Reston.VA.US
From: Ned Freed <NED@innosoft.com>
To: Jamie Zawinski <jwz@netscape.com>
Cc: hansen@pegasus.att.com, ietf-822@list.cren.net
Subject: Re: questions on QP, non-text attachments and munpack
In-Reply-To: "Your message dated Thu, 08 Feb 1996 18:54:39 -0800"
<311AB76E.5555D8C6@netscape.com>
References: <9602081358.AA07818@ig4.att.att.com>
MIME-version: 1.0
Content-type: text/plain; charset=us-ascii
Content-transfer-encoding: 7BIT
X-Listprocessor-Version: 8.0(beta) -- ListProcessor by CREN
hansen@pegasus.att.com wrote: > o Is my mailer correct in believing that it should be able to use QP > for non-text attachments? After all, QP IS supposed to just be an > encoding. It is perfectly correct. If it makes sense for you to use QP for non-text material you are free to do so. The system I use makes this decision based on which encoding is more efficient. (Not that either one is all that efficient...) There are plenty of cases where QP is more efficient than base64 and I use it when it is, regardless of content type. > o Is munpack wrong in stripping CR's when dealing with non-text > attachments? It depends on what CRs you are referring to. There are three sorts in QP: (1) Those that appear as =0D. These should only appear in the content of types other than text -- the rules for text require that CR only be used a part of a CRLF sequence and that such sequences be represented as a line break in the encoded output. When they do appear in non-text material, however, they must not be stripped. (2) Those that appear as part of a =<CR><LF> sequence. These "soft breaks" should always be removed regardless of the type of content involved. (3) Those that appear as a <CR><LF> sequence that isn't preceeded by =. These "hard breaks" are only supposed to be used in MIME text. They should not appear in non-text material. When they appear in text material, however, they must not be discarded. My guess is that the case you're referring to is (3), and you did say that the material isn't textual in form. In this case there aren't supposed to be any hard breaks present. And if there are MUNPACK could strip them if it wanted to. It is neither "correct" or "incorrect" to do so. I could go either way on whether or not it is a good idea for MUNPACK to behave this way. On one hand, it would be nice to accomodate improper usage of hard line breaks when encoding non-text material. On the other hand, I can see an argument for ignoring such breaks as possibly having originated in mishandling of the encoded material at some point. For what it's worth, I believe my decoder would turn hard breaks into CRLF sequences in non-text material. In other words, I didn't do it the way MUNPACK does, but I cannot claim that my approach is clearly the better one. (In fact, now that I know what MUNPACK does, I'm going to rethink my choice!) Ned
- questions on QP, non-text attachments and munpack hansen
- Re: questions on QP, non-text attachments and mun… Jamie Zawinski
- Re: questions on QP, non-text attachments and mun… Ned Freed
- Re: questions on QP, non-text attachments and mun… Jamie Zawinski
- Re: questions on QP, non-text attachments and mun… hansen
- Re: questions on QP, non-text attachments and mun… hansen
- Re: questions on QP, non-text attachments and mun… Ned Freed
- Re: questions on QP, non-text attachments and mun… John Gardiner Myers
- Re: questions on QP, non-text attachments and mun… John Gardiner Myers
- Re: questions on QP, non-text attachments and mun… hansen
- Re: questions on QP, non-text attachments and mun… hansen
- Re: questions on QP, non-text attachments and mun… Ned Freed
- Re: questions on QP, non-text attachments and mun… Keith Moore
- Re: questions on QP, non-text attachments and mun… Ned Freed