[Mimedefang] action_defang circumvented by x-mac-type

David F. Skoll dfs at roaringpenguin.com
Sat Nov 16 22:19:01 EST 2002


On Fri, 15 Nov 2002, Kelson Vibber wrote:

> They showed up in Eudora as defang-1.binary.doc and defang-2.binary.doc.  At 
> first I thought it wasn't defanging properly, and had left the MIME-type 
> unaltered.  Once I looked at the actual mailbox, I saw the following MIME 
> part header:

> Content-Type: application/octet-stream; name="defang-2.binary"; 
> x-mac-creator="4D535744"; x-mac-type="42494E41"

I think I have a fix for this in CVS.  In mimdefang.pl.in,
line 777 (this is 2.26-BETA-1) reads:

	$head->mime_attr("Content-Type" => $type);

I believe that changing it to:

	$head->replace("Content-Type", $type);

will eliminate the x-mac junk.  Please give it a try and let me know.

Regards,

David.




More information about the MIMEDefang mailing list