Hi,

On Tue, 20 Jul 2004 17:44:10 -0500 Chris <[EMAIL PROTECTED]> wrote:

> I'm not sure what to make of this.  First of all instead of being in my spam 
> folder it was in my inbox.  I'll show the headers and maybe someone has an 
> idea, this is from "view all headers" in Kmail:

Looks like Kmail is improperly decoding the headers as quoted-printable:

The following script is qp.pl:

#!/usr/bin/perl -w

$rawhdr=<<"HERE";
Date: Tue, 20 Jul 2004 11:29:16 -0700 (PDT)
X-ELNK-AV: 0
X-Spam-DCC: MessageCare: chris.localdomain 1108; Body=1 Fuz1=1 Fuz2=1
X-Spam-Flag: YES
X-Spam-Checker-Version: SpamAssassin 2.63 (2004-01-11) on chris.localdomain
X-Spam-Level: ******************************************
X-Spam-Status: Yes, hits=42.8 required=5.0 tests=AB_URI_RBL,AM_BODY_PLING,
        BAYES_99,HTML_MESSAGE,MIME_HTML_ONLY,OB_URI_RBL,RCVD_IN_DSBL,
        RCVD_IN_NJABL,RCVD_IN_NJABL_PROXY,RCVD_IN_OPM,RCVD_IN_OPM_HTTP,
        RCVD_IN_SORBS,RCVD_IN_SORBS_HTTP,RM_t_bobbf,SARE_HTML_INV_TAG2,
        SARE_HTML_INV_TAG3,SARE_HTML_P_BREAKcb,SPAMCOP_URI_RBL,WS_URI_RBL
        autolearn=no version=2.63
X-Spam-Pyzor: Reported 0 times.
HERE

open OFH, '|qpd.pl';
print OFH $rawhdr;
close OFH;

__END__

# The following is qpd.pl, needed due to MIME::Decoder's abyssmal "sod off, you
# procedural programming troglodytes!" documentation. It wouldn't kill you to
# let someone program against your effing module without having to jump
# through arcane IO redirection hoops or subclass it into something sensible.

#!/usr/bin/perl -w
use MIME::Decoder;
$decoder = new MIME::Decoder "quoted-printable" or die "unsupported";
$decoder->decode(\*STDIN, \*STDOUT);

Running qp.pl, I get

Date: Tue, 20 Jul 2004 11:29:16 -0700 (PDT)
X-ELNK-AV: 0
X-Spam-DCC: MessageCare: chris.localdomain 1108; Body=1 Fuz1=1 Fuz2=1
X-Spam-Flag: YES
X-Spam-Checker-Version: SpamAssassin 2.63 (2004-01-11) on chris.localdomain
X-Spam-Level: ******************************************
X-Spam-Status: Yes, hitsB.8 required=5.0 tests�_URI_RBL,AM_BODY_PLING,
        BAYES_99,HTML_MESSAGE,MIME_HTML_ONLY,OB_URI_RBL,RCVD_IN_DSBL,
        RCVD_IN_NJABL,RCVD_IN_NJABL_PROXY,RCVD_IN_OPM,RCVD_IN_OPM_HTTP,
        RCVD_IN_SORBS,RCVD_IN_SORBS_HTTP,RM_t_bobbf,SARE_HTML_INV_TAG2,
        SARE_HTML_INV_TAG3,SARE_HTML_P_BREAKcb,SPAMCOP_URI_RBL,WS_URI_RBL
        autolearn=no version=2.63
X-Spam-Pyzor: Reported 0 times.

Compare:

Raw:     X-Spam-Status: Yes, hits=42.8 required=5.0 
tests=AB_URI_RBL,AM_BODY_PLING,
Decoded: X-Spam-Status: Yes, hitsB.8 required=5.0 tests�_URI_RBL,AM_BODY_PLING,
KMail:   X-Spam-Status: Yes, hitsB.8 required~0 tests�_URI_RBL,AM_BODY_PLING,

Apparently MIME::Decode doesn't translate '=5.' to '~' as Kmail does.
Who knows what awful things you can make Kmail do by sending it an
appropriately malcoded message...? File a bug.

> Now the hits are correct as well as the required along with the rest of the 
> information.  Did SA burp on this one or something?

I think Kmail has indigestion. I traded Kmail for Sylpheed and haven't
looked back.

-- Bob

Reply via email to