Re: questions on QP, non-text attachments and munpack

hansen@pegasus.att.com Wed, 14 February 1996 06:49 UTC

Received: from ietf.nri.reston.va.us by IETF.CNRI.Reston.VA.US id aa07813; 14 Feb 96 1:49 EST
Received: from CNRI.Reston.VA.US by IETF.CNRI.Reston.VA.US id aa07809; 14 Feb 96 1:49 EST
Received: from list.cren.net by CNRI.Reston.VA.US id aa02012; 14 Feb 96 1:49 EST
Received: from localhost (localhost [127.0.0.1]) by list.cren.net (8.6.12/8.6.12) with SMTP id BAA20494; Wed, 14 Feb 1996 01:14:34 -0500
Received: from gw3.att.com (gw4.att.com [204.179.186.34]) by list.cren.net (8.6.12/8.6.12) with SMTP id BAA20449 for <ietf-822@list.cren.net>; Wed, 14 Feb 1996 01:13:17 -0500
Received: from pegasus.UUCP by ig4.att.att.com id AA22293; Wed, 14 Feb 96 01:06:06 EST
Message-Id: <9602140606.AA22293@ig4.att.att.com>
Date: Wed, 14 Feb 1996 00:52 EST
X-Orig-Sender: owner-ietf-822@list.cren.net
Sender: ietf-archive-request@IETF.CNRI.Reston.VA.US
From: hansen@pegasus.att.com
To: John Gardiner Myers <jgm+@cmu.edu>, ietf-822@list.cren.net
Subject: Re: questions on QP, non-text attachments and munpack
Content-Type: text
X-Listprocessor-Version: 8.0(beta) -- ListProcessor by CREN

< From: jgm+@CMU.EDU (John Gardiner Myers),
< That is because the heuristic is to use the choice of quoted-printable vs.
< base64 to intuit whether or not the object is textual.  Few textual
< non-text/* objects are encoded in base64.  All text/* objects are by the
< spec textual.

Unfortunately, this gives the totally wrong answer for non-text/* objects
encoded in quoted-printable!

Yes, all text/* objects are by the spec textual. And non-text/* objects may
be either textual or non-textual. And both base64 and quoted-printable may
be used with both text/* objects and non-text/* objects. But the use of
base64 vs. quoted-printable in non-text/* objects does not imply whether the
underlying object is textual or not.

What started this thread was a complaint from a customer who was using
munpack to decode a message with a non-text/* body part which was mostly
ascii, but definitely not textual. Since quoted-printable made complete
sense for encoding that body part (5% increase in encoded size instead of
33% increase), the body part had been encoded using quoted-printable.
Unfortunately, munpack was stripping out the =0D-encoded CR's when the body
part was decoded; that is, the decoded body part was ruined.

I then asked this group who was right: munpack or the software which encoded
the body part with quoted-printable. The consensus is that the q-p software
is right and munpack is wrong.

We've had to advise the customer to stop using munpack because of this. (We
may even have to put out a general customer advisory on this issue.)

					Tony Hansen
			  hansen@pegasus.att.com, tony@attmail.com
		    http://ourworld.compuserve.com/homepages/Tony_Hansen