You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@spamassassin.apache.org by fe...@apache.org on 2004/04/15 04:17:20 UTC
svn commit: rev 10022 - incubator/spamassassin/trunk/lib/Mail/SpamAssassin
Author: felicity
Date: Wed Apr 14 19:17:18 2004
New Revision: 10022
Modified:
incubator/spamassassin/trunk/lib/Mail/SpamAssassin/EvalTests.pm
Log:
bug 3269: found that _check_attachments() was always looking at the message header, and not the MIME part headers. :(
Modified: incubator/spamassassin/trunk/lib/Mail/SpamAssassin/EvalTests.pm
==============================================================================
--- incubator/spamassassin/trunk/lib/Mail/SpamAssassin/EvalTests.pm (original)
+++ incubator/spamassassin/trunk/lib/Mail/SpamAssassin/EvalTests.pm Wed Apr 14 19:17:18 2004
@@ -2598,11 +2598,11 @@
$self->{mime_multipart_alternative} = 1;
}
- my $cte = $self->get('Content-Transfer-Encoding');
+ my $cte = $p->get_header('Content-Transfer-Encoding') || '';
if ($cte =~ /$re_cte/) { $cte = lc($1); }
chomp($cte = defined($cte) ? $cte : "");
- my $cd = $self->get('Content-Disposition');
+ my $cd = $p->get_header('Content-Disposition') || '';
if ($cd =~ /$re_cd/) { $cd = lc($1); }
chomp($cd = defined($cd) ? $cd : "");