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 2018/06/01 11:15:23 UTC

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

Author: gbechis
Date: Fri Jun  1 11:15:23 2018
New Revision: 1832678

URL: http://svn.apache.org/viewvc?rev=1832678&view=rev
Log:
fix custom headers length, fix another fp via Google Groups

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

Modified: spamassassin/branches/3.4/lib/Mail/SpamAssassin/Plugin/HeaderEval.pm
URL: http://svn.apache.org/viewvc/spamassassin/branches/3.4/lib/Mail/SpamAssassin/Plugin/HeaderEval.pm?rev=1832678&r1=1832677&r2=1832678&view=diff
==============================================================================
--- spamassassin/branches/3.4/lib/Mail/SpamAssassin/Plugin/HeaderEval.pm (original)
+++ spamassassin/branches/3.4/lib/Mail/SpamAssassin/Plugin/HeaderEval.pm Fri Jun  1 11:15:23 2018
@@ -583,8 +583,8 @@ sub check_for_forged_juno_received_heade
 
 sub check_for_forged_gmail_received_headers {
   my ($self, $pms) = @_;
-  use constant GOOGLE_MESSAGE_STATE_LENGTH_MIN => 80;
-  use constant GOOGLE_SMTP_SOURCE_LENGTH_MIN => 90;
+  use constant GOOGLE_MESSAGE_STATE_LENGTH_MIN => 60;
+  use constant GOOGLE_SMTP_SOURCE_LENGTH_MIN => 60;
 
   my $from = $pms->get('From:addr');
   if ($from !~ /\bgmail\.com$/i) { return 0; }

Modified: spamassassin/trunk/lib/Mail/SpamAssassin/Plugin/HeaderEval.pm
URL: http://svn.apache.org/viewvc/spamassassin/trunk/lib/Mail/SpamAssassin/Plugin/HeaderEval.pm?rev=1832678&r1=1832677&r2=1832678&view=diff
==============================================================================
--- spamassassin/trunk/lib/Mail/SpamAssassin/Plugin/HeaderEval.pm (original)
+++ spamassassin/trunk/lib/Mail/SpamAssassin/Plugin/HeaderEval.pm Fri Jun  1 11:15:23 2018
@@ -595,8 +595,8 @@ sub check_for_forged_juno_received_heade
 
 sub check_for_forged_gmail_received_headers {
   my ($self, $pms) = @_;
-  use constant GOOGLE_MESSAGE_STATE_LENGTH_MIN => 80;
-  use constant GOOGLE_SMTP_SOURCE_LENGTH_MIN => 90;
+  use constant GOOGLE_MESSAGE_STATE_LENGTH_MIN => 60;
+  use constant GOOGLE_SMTP_SOURCE_LENGTH_MIN => 60;
 
   my $from = $pms->get('From:addr');
   if ($from !~ /\bgmail\.com$/i) { return 0; }