svn commit: r1931575 - spamassassin/trunk/lib/Mail/SpamAssassin/Plugin

[email protected]
Newsgroups gmane.mail.spam.spamassassin.cvs
Message-ID <176955420127.2008740.3465437006580155559@svn02-us-east.apache.org>
Author: gbechis
Date: Tue Jan 27 22:50:00 2026
New Revision: 1931575

Log:
Google is using more ipv6 ip addresses for Gmail relay, fix check accordingly

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

Modified: spamassassin/trunk/lib/Mail/SpamAssassin/Plugin/HeaderEval.pm
==============================================================================
--- spamassassin/trunk/lib/Mail/SpamAssassin/Plugin/HeaderEval.pm	Tue Jan 27 20:10:03 2026	(r1931574)
+++ spamassassin/trunk/lib/Mail/SpamAssassin/Plugin/HeaderEval.pm	Tue Jan 27 22:50:00 2026	(r1931575)
@@ -572,7 +572,7 @@ sub check_for_forged_gmail_received_head
   my $received = $pms->get('Received');
 
   if ($xreceived =~ /by 10\.\S+ with SMTP id \S+/) { return 0; }
-  if ($xreceived =~ /by 2002\:a\d\d\:\w+\:\S+ with SMTP id \S+/) { return 0; }
+  if ($xreceived =~ /by 2002\:a\w{1,2}\:\w+\:\S+ with SMTP id \S+/) { return 0; }
   if ($received =~ /by smtp\.googlemail\.com with ESMTPSA id \S+/) {
     return 0;
   }
@@ -1239,4 +1239,4 @@ sub has_check_invalid_from { 1 }
 sub has_check_invalid_sender { 1 }
 sub has_check_invalid_replyto { 1 }
 
-1;
\ No newline at end of file
+1;
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.