http://issues.apache.org/SpamAssassin/show_bug.cgi?id=5553

           Summary: MIME_BASE64_TEXT does not handle charset properly
           Product: Spamassassin
           Version: 3.2.1
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: P5
         Component: Plugins
        AssignedTo: [email protected]
        ReportedBy: [EMAIL PROTECTED]


MIME_BASE64_TEXT is intended to fire on "text disguised using base64
encoding"; however, MIME_BASE64_TEXT does not properly handle MIME
charset rules.  The fix for bug 4687 corrects the problem for big5,
but does not solve the general case.

MIME_BASE64_TEXT should fire on base64 encoded messages where the
original encoding is a 7bit character set.  The most common 7bit
character set is US-ASCII, and that's also the default character set
for MIME messages if no charset has been explicitly set.

A bug fix which modifies the charset handling in _check_mime_header of
MIMEEval.pm is attached.  This patch modifies the
mime_base64_encoded_text if statement to handle the cases of no
charset defined (thus, US-ASCII) and charset explicitly set to
US-ASCII or one of the aliases contained in the master IANA charset
list <URL:http://www.iana.org/assignments/character-sets>.

This bug was uncovered by a non-spam message sent from hanmail.  The
Content-Type was set to "text/html; charset=euc-kr" and the hanmail
servers appropriately converted the message from 8bit to base64 before
transmission.



------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.

Reply via email to