You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@spamassassin.apache.org by bu...@spamassassin.apache.org on 2024/06/25 15:37:43 UTC

[Bug 8265] New: skip binary data on TextCat processing

https://bz.apache.org/SpamAssassin/show_bug.cgi?id=8265

            Bug ID: 8265
           Summary: skip binary data on TextCat processing
           Product: Spamassassin
           Version: SVN Trunk (Latest Devel Version)
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: normal
          Priority: P2
         Component: Plugins
          Assignee: dev@spamassassin.apache.org
          Reporter: giovanni@paclan.it
  Target Milestone: Undefined

Created attachment 5957
  --> https://bz.apache.org/SpamAssassin/attachment.cgi?id=5957&action=edit
Skip binary content

When Mail::SpamAssassin::Plugins::TextCat reads email content and encounters
binary data, it thinks it's reading utf-8 text and it might detect email
content as if it was written in chinese.

Wrongly formatted emails with
----==_mimepart_6671e32c1f96a_a4fd822983067
Content-Type: text/plain;
 charset=UTF-8
Content-Transfer-Encoding: base64
Content-Disposition: inline;   

but base64 binary content can mislead the plugin processing.
The attached patch skips binary content.

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

[Bug 8265] skip binary data on TextCat processing

Posted by bu...@spamassassin.apache.org.
https://bz.apache.org/SpamAssassin/show_bug.cgi?id=8265

Kent Oyer <ke...@mxguardian.net> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |kent@mxguardian.net

--- Comment #2 from Kent Oyer <ke...@mxguardian.net> ---
Can you provide a sample email with binary data as well as one written in
Chinese?

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

[Bug 8265] skip binary data on TextCat processing

Posted by bu...@spamassassin.apache.org.
https://bz.apache.org/SpamAssassin/show_bug.cgi?id=8265

Giovanni Bechis <gi...@paclan.it> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |giovanni@paclan.it

--- Comment #1 from Giovanni Bechis <gi...@paclan.it> ---
The patch breaks on chinese emails, a better check is needed.

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