Entourage 2001 version 9.0.6 attachment corruption

F

Francois Grieu

Right after applying the Office 2001 Update 9.0.6 [on a
PowerMac G4 running MacOS 9.2.2], I noticed some attachments
of received messages are damaged, most notably compressed
files, and resource forks.

The problem affects received attachments mime-encoded
using "base64" as "application/octet-stream" or
"application/applefile", when the size of either the
data or resource fork is not a multiple of 3; they
loose their one or two last bytes.

It is reproducible. With SimpleText, create a file containing
exactly 4 letters. Save it. Make a duplicate. Change the
file type of the duplicate to "xxxx". Send both files
as attachment in an email to self, with the default attachment
settings (AppleDouble, no compression).
Receive the message and extract the two attachments. Change
the type of the duplicate file back to "TEXT". Notice that
the content is truncated to 3 chars, while the same file
sent as "TEXT" is OK (both are encoded as "base64", but only
the "xxxx" one is sent as "application/octet-stream").
Also note that ResEdit reports that the resource fork
of both received files is damaged beyond repair.

As a workaround, drag the whole received email to the
desktop, which saves it as a file with the undecoded
attachment; then extract the attachment using Stuffit
Expander 7.0.3 (version 6.0.1 will not do).

The faulty code appears to be in the library
"Microsoft Framework 2001" version 9.0.6 (8320).
The problem is cured by reverting to
"Microsoft Framework 2001" version 9.0.5 (7407).

Unfortunately, this library is destroyed by the
Office 2001 Update 9.0.6, and there is not source for
it that I could locate on the net.



Also, Entourage 2001 version 9.0.6 is still affected
by several unrelated bugs that plague earlier versions:

- When decoding an attachment encoded as quoted-printable,
and the last byte of a 65536 byte block is either a
space or a tab, it is lost.
This tends to randomly corrupt big attachments encoded
as quoted-printable, including text-only PDF files sent
by some some Unix mailers which notice the base64 version
would be bigger. For a test case, see
http://fragrieu.free.fr/QuotedPrintableBug.sit

- When decoding an attachment encoded as quoted-printable,
and a line ends without the = sign, Entourage decodes this
line-ending as 0x0D, when RFC 2045 unambiguously prescribes
it should be decoded as 0x0D 0x0A.
This tends to corrupt PDF files encoded as quoted-printable
by (another) Unix mailer.

- When sending text in a message (HTML or text-only),
Entourage creates line breaks to respect the 76-character
limit of RFC 2045, THEN encode some special characters
(diacriticals, the = sign..) using the = sign as prefix.
The result is often lines that are longer than 76 characters,
and this is NOT compliant with RFC 2045.
This is especially nasty in France, where we use a lot
of diacriticals, and many recipients see extra line breaks.
Demonstration: Make an HTML email with a line containing
50 times the sign = between two empty lines. Save. Examine
the source.


Francois Grieu
[reposted with improvements]
 
F

Francois Grieu

Again, after applying the Office 2001 Update 9.0.6, entourage
will corrupt decoded attachments; speciafically, when
- they are encoded as mime base64 (most common)
- they are NOT internally typed as text (most common for
.sit .zip or "resource fork")
- their size is not a multiple of 3 (they are truncated
to the next lower or equal multiple of 3)


A workaround is to download

http://www.makiciel.com/pub/Microsoft_Framework_2001.sit

[kindly hosted by a French Microsoft MPV for this purpose]
expand, and use the content to replace the
"Microsoft Framework 2001" library version 9.0.6 found in
the "Office" folder in the "Microsoft Office 2001" folder
usually located in the "Applications (Mac OS 9)" folder.

I confirm integrity of this .sit arhive with hashs
md5: D6E4209C42EE6EF8781C3F5FAA4A5D1B
sha1: DD423D7C8BBB28EEEB95E01D10EA408E2C36CCE0

Caveat: likely this reintroduce other bugs, but in my
experience they are more acceptable, and I found none
in a week of use.

Note: I whish this is only a temporary situation.

Francois Grieu
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top