using Content-Description in attachments

From: Zvi Har'El <>
Date: Sun, 16 Jan 2000 10:25:14 +0200 (IST)
Message-ID: <>


I have a problem with the way hypermail use the Content-Description field of attachments:

A correspondent sent my forum a message with an attachment of the form

Content-Type: application/octet-stream
Content-Transfer-Encoding: base64
Content-Description: <GI.JPG>

This was really a JPEG, but for some reason it was not attached as such. Also the name of the attachment was not included properly. What hypermail did, is to generate an attachment file named 01-part (which is OK with my apache server since it uses magic-mime to decide what the file type is and not suffixes), and generated HTML code of the following form:

<LI>application/octet-stream attachment: <A HREF="att-0090/01-part"><GI.JPG></A>

(line splitting is for convenience here only). The main problem is that the ***angular brackets*** in the Content-Description field were ***not encoded*** to &lt; and &gt;. This makes the browser (netscape 4.7) ignore the
``unrecognized HTML tag'', and the attachment becomes unreachable. You can view
this example in, and the mailbox file is in



Dr. Zvi Har'El     Department of Mathematics
vox:+972-4-8296534                   Technion - Israel Institute of Technology
fax:+972-4-8296114     Haifa 32000, ISRAEL

``If you can't say somethin' nice, don't say nothin' at all.''--Thumper (1942)
Sunday, 9 Shevat 5760, 16 January 2000, 10:05AM
Received on Sun 16 Jan 2000 10:26:59 AM GMT

This archive was generated by hypermail 2.2.0 : Thu 22 Feb 2007 07:33:52 PM GMT GMT