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

            Bug ID: 7798
           Summary: Incorrect call to Encode::decode() in
                    Mail/SpamAssassin/Message.pm bails scanning of
                    message.
           Product: Spamassassin
           Version: 3.4.4
          Hardware: All
                OS: All
            Status: NEW
          Severity: normal
          Priority: P2
         Component: Libraries
          Assignee: [email protected]
          Reporter: [email protected]
  Target Milestone: Undefined

There's an incorrect call to the Encode::decode() function in
Mail/SpamAssassin/Message.pm, sub _parse_normal:

| $msg->{'name'} = Encode::decode("MIME-Header", $msg->{'name'});

Resulting in log lines:

| warn: plugin: eval failed: Unknown encoding 'MIME-Header' at
/usr/share/perl5/Mail/SpamAssassin/Message.pm line 1079.

Encode::decode() seems to expect a valid charset as first argument, not a
scalar 'MIME-Header'.
The effect of a message hitting this condition is that it is passed unscanned
as 'Not Spam'.

The part of the offending message that caused this condition, had incorrect
formatting of MIME headers:

| --b1_062eb3f6cfc5596181d8a530cc41f3ea
| Content-Type: ; name="d41de55ba35893873a220bbf8fa539fd"
| Content-Transfer-Encoding: base64
| Content-ID: <d41de55ba35893873a220bbf8fa539fd>
| 
| 
| 
| 
| --b1_062eb3f6cfc5596181d8a530cc41f3ea
| Content-Type: image/gif; name="a857ec7d29eed25bbc7359368bb699f2"
| Content-Transfer-Encoding: base64
| Content-ID: <a857ec7d29eed25bbc7359368bb699f2>
| 
| R0[..snipped..]==
| 
| 
| --b1_062eb3f6cfc5596181d8a530cc41f3ea--

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

Reply via email to