You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@spamassassin.apache.org by gb...@apache.org on 2019/12/04 07:36:57 UTC

svn commit: r1870805 - in /spamassassin: branches/3.4/lib/Mail/SpamAssassin/Plugin/OLEVBMacro.pm trunk/lib/Mail/SpamAssassin/Plugin/OLEVBMacro.pm

Author: gbechis
Date: Wed Dec  4 07:36:57 2019
New Revision: 1870805

URL: http://svn.apache.org/viewvc?rev=1870805&view=rev
Log:
change some default values to catch more macros
seen on the wild

Modified:
    spamassassin/branches/3.4/lib/Mail/SpamAssassin/Plugin/OLEVBMacro.pm
    spamassassin/trunk/lib/Mail/SpamAssassin/Plugin/OLEVBMacro.pm

Modified: spamassassin/branches/3.4/lib/Mail/SpamAssassin/Plugin/OLEVBMacro.pm
URL: http://svn.apache.org/viewvc/spamassassin/branches/3.4/lib/Mail/SpamAssassin/Plugin/OLEVBMacro.pm?rev=1870805&r1=1870804&r2=1870805&view=diff
==============================================================================
--- spamassassin/branches/3.4/lib/Mail/SpamAssassin/Plugin/OLEVBMacro.pm (original)
+++ spamassassin/branches/3.4/lib/Mail/SpamAssassin/Plugin/OLEVBMacro.pm Wed Dec  4 07:36:57 2019
@@ -149,13 +149,13 @@ Configure the maximum number of matching
 
   push(@cmds, {
     setting => 'olemacro_num_zip',
-    default => 5,
+    default => 8,
     type => $Mail::SpamAssassin::Conf::CONF_TYPE_NUMERIC,
   });
 
 =over 4
 
-=item olemacro_num_zip (default: 5)
+=item olemacro_num_zip (default: 8)
 
 Configure the maximum number of matching zip members the plugin will scan
 
@@ -217,13 +217,13 @@ Choose if the content-disposition header
 
   push(@cmds, {
     setting => 'olemacro_max_file',
-    default => 512000,
+    default => 1024000,
     type => $Mail::SpamAssassin::Conf::CONF_TYPE_NUMERIC,
   });
 
 =over 4
 
-=item olemacro_max_file (default: 512000)
+=item olemacro_max_file (default: 1024000)
 
 Configure the largest file that the plugin will decode from the MIME objects
 
@@ -325,7 +325,7 @@ to skip entirely, these should only be g
 
   push(@cmds, {
     setting => 'olemacro_skip_ctypes',
-    default => qr/^(?:(audio|image|text)\/|application\/(?:pdf))/,
+    default => qr/^(?:(text)\/)/,
     type => $Mail::SpamAssassin::Conf::CONF_TYPE_STRING,
     code => sub {
       my ($self, $key, $value, $line) = @_;
@@ -344,7 +344,7 @@ to skip entirely, these should only be g
 
 =over 4
 
-=item olemacro_skip_ctypes (default: ^(?:(audio|image|text)\/|application\/(?:pdf)))
+=item olemacro_skip_ctypes (default: ^(?:(text)\/))
 
 Set the case-insensitive regexp used to configure content types for the
 plugin to skip entirely, these should only be guaranteed macro free

Modified: spamassassin/trunk/lib/Mail/SpamAssassin/Plugin/OLEVBMacro.pm
URL: http://svn.apache.org/viewvc/spamassassin/trunk/lib/Mail/SpamAssassin/Plugin/OLEVBMacro.pm?rev=1870805&r1=1870804&r2=1870805&view=diff
==============================================================================
--- spamassassin/trunk/lib/Mail/SpamAssassin/Plugin/OLEVBMacro.pm (original)
+++ spamassassin/trunk/lib/Mail/SpamAssassin/Plugin/OLEVBMacro.pm Wed Dec  4 07:36:57 2019
@@ -149,13 +149,13 @@ Configure the maximum number of matching
 
   push(@cmds, {
     setting => 'olemacro_num_zip',
-    default => 5,
+    default => 8,
     type => $Mail::SpamAssassin::Conf::CONF_TYPE_NUMERIC,
   });
 
 =over 4
 
-=item olemacro_num_zip (default: 5)
+=item olemacro_num_zip (default: 8)
 
 Configure the maximum number of matching zip members the plugin will scan
 
@@ -217,13 +217,13 @@ Choose if the content-disposition header
 
   push(@cmds, {
     setting => 'olemacro_max_file',
-    default => 512000,
+    default => 1024000,
     type => $Mail::SpamAssassin::Conf::CONF_TYPE_NUMERIC,
   });
 
 =over 4
 
-=item olemacro_max_file (default: 512000)
+=item olemacro_max_file (default: 1024000)
 
 Configure the largest file that the plugin will decode from the MIME objects
 
@@ -325,7 +325,7 @@ to skip entirely, these should only be g
 
   push(@cmds, {
     setting => 'olemacro_skip_ctypes',
-    default => qr/^(?:(audio|image|text)\/|application\/(?:pdf))/,
+    default => qr/^(?:(text)\/)/,
     type => $Mail::SpamAssassin::Conf::CONF_TYPE_STRING,
     code => sub {
       my ($self, $key, $value, $line) = @_;
@@ -344,7 +344,7 @@ to skip entirely, these should only be g
 
 =over 4
 
-=item olemacro_skip_ctypes (default: ^(?:(audio|image|text)\/|application\/(?:pdf)))
+=item olemacro_skip_ctypes (default: ^(?:(text)\/))
 
 Set the case-insensitive regexp used to configure content types for the
 plugin to skip entirely, these should only be guaranteed macro free