You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@spamassassin.apache.org by do...@apache.org on 2006/12/11 20:39:09 UTC

svn commit: r485837 - /spamassassin/branches/3.1/lib/Mail/SpamAssassin/Plugin/AntiVirus.pm

Author: dos
Date: Mon Dec 11 11:39:08 2006
New Revision: 485837

URL: http://svn.apache.org/viewvc?view=rev&rev=485837
Log:
bug 5052: update AntiVirus plugin to ignore content-type when looking for exe files

Modified:
    spamassassin/branches/3.1/lib/Mail/SpamAssassin/Plugin/AntiVirus.pm

Modified: spamassassin/branches/3.1/lib/Mail/SpamAssassin/Plugin/AntiVirus.pm
URL: http://svn.apache.org/viewvc/spamassassin/branches/3.1/lib/Mail/SpamAssassin/Plugin/AntiVirus.pm?view=diff&rev=485837&r1=485836&r2=485837
==============================================================================
--- spamassassin/branches/3.1/lib/Mail/SpamAssassin/Plugin/AntiVirus.pm (original)
+++ spamassassin/branches/3.1/lib/Mail/SpamAssassin/Plugin/AntiVirus.pm Mon Dec 11 11:39:08 2006
@@ -93,7 +93,7 @@
   $pms->{antivirus_suspect_name} = 0;
 
   # MICROSOFT_EXECUTABLE triggered here
-  foreach my $p ($pms->{msg}->find_parts(qr/^(application|text)\b/)) {
+  foreach my $p ($pms->{msg}->find_parts(qr/./, 1)) {
     my ($ctype, $boundary, $charset, $name) =
       Mail::SpamAssassin::Util::parse_content_type($p->get_header('content-type'));