spamassassin-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jqu...@apache.org
Subject svn commit: r1706850 - /spamassassin/trunk/lib/Mail/SpamAssassin/Message.pm
Date Mon, 05 Oct 2015 15:20:25 GMT
Author: jquinn
Date: Mon Oct  5 15:20:25 2015
New Revision: 1706850

URL: http://svn.apache.org/viewvc?rev=1706850&view=rev
Log:
decode MIME attachment names for better rule matching

Modified:
    spamassassin/trunk/lib/Mail/SpamAssassin/Message.pm

Modified: spamassassin/trunk/lib/Mail/SpamAssassin/Message.pm
URL: http://svn.apache.org/viewvc/spamassassin/trunk/lib/Mail/SpamAssassin/Message.pm?rev=1706850&r1=1706849&r2=1706850&view=diff
==============================================================================
--- spamassassin/trunk/lib/Mail/SpamAssassin/Message.pm (original)
+++ spamassassin/trunk/lib/Mail/SpamAssassin/Message.pm Mon Oct  5 15:20:25 2015
@@ -1046,6 +1046,9 @@ sub _parse_normal {
   elsif ($ct[3]) {
     $msg->{'name'} = $ct[3];
   }
+  if ($msg->{'name'}) {
+    $msg->{'name'} = Encode::decode("MIME-Header", $msg->{'name'});
+  }
 
   $msg->{'boundary'} = $boundary;
 



Mime
View raw message