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

[email protected]
Newsgroups gmane.mail.spam.spamassassin.cvs
Message-ID <175587011495.4069478.4756880363047885522@svn02-us-east.apache.org>
Author: gbechis
Date: Fri Aug 22 13:41:54 2025
New Revision: 1927961

Log:
silence a warning with some Mail::DMARC versions
bz #8345

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

Modified: spamassassin/trunk/lib/Mail/SpamAssassin/Plugin/DMARC.pm
==============================================================================
--- spamassassin/trunk/lib/Mail/SpamAssassin/Plugin/DMARC.pm	Fri Aug 22 12:45:02 2025	(r1927960)
+++ spamassassin/trunk/lib/Mail/SpamAssassin/Plugin/DMARC.pm	Fri Aug 22 13:41:54 2025	(r1927961)
@@ -396,7 +396,7 @@ sub _check_dmarc {
     }
   }
 
-  if(defined $result and ($result->result ne 'none') and ($result->published->can('stringify'))) {
+  if(defined $result and ($result->result ne 'none') and (defined $result->{published}) and ($result->published->can('stringify'))) {
     dbg("Evaluated DMARC record \"" . $result->published->stringify . "\" for domain $mfrom_domain");
   }
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.