Bug 1157 - Multiple Content-Type headers fools defang-mime
Summary: Multiple Content-Type headers fools defang-mime
Status: RESOLVED FIXED
Alias: None
Product: Spamassassin
Classification: Unclassified
Component: spamassassin (show other bugs)
Version: SVN Trunk (Latest Devel Version)
Hardware: All All
: P2 normal
Target Milestone: ---
Assignee: SpamAssassin Developer Mailing List
URL:
Whiteboard:
Keywords: mime
Depends on:
Blocks:
 
Reported: 2002-10-25 14:11 UTC by Sidney Markowitz
Modified: 2002-12-13 02:20 UTC (History)
0 users



Attachment Type Modified Status Actions Submitter/CLA Status
zip of email message that demonstrates the bug application/octet-stream None Sidney Markowitz [HasCLA]

Note You need to log in before you can comment on or make changes to this bug.
Description Sidney Markowitz 2002-10-25 14:11:53 UTC
Email with multiple Content-Type headers fools defang-mime processing so that 
the mail is not defanged, at least when viewed in Outlook Express.

I'm attaching one of the spams that does this in case my diagnosis is 
incorrect. I xx'd out the host names in the IMG tags so you don't have to look 
at the pictures if you look at it in an HTML viewer and verified that it still 
demnstrates this bug.

The spam has two Content-Type headers that both specify text/html and the body 
is HTML-only. When it is run through Spamassassin with defang-mime 1 in the 
preferences, it correctly gets a high score, the first Content-Type header is 
rewritten and the second one is left untouched. I have only looked atthe result 
with Outlook Express, so I can't say how other MUAs handle them, but OE uses 
the second Content-Type header, displaying the result as HTML.

This is not good when you are used to being able to click on the entries in the 
spam folder while at work to check for FPs :-)
Comment 1 Sidney Markowitz 2002-10-25 14:14:08 UTC
Created attachment 423 [details]
zip of email message that demonstrates the bug
Comment 2 Justin Mason 2002-12-13 11:20:24 UTC
ok, now fixed.