svn commit: r1927782 - spamassassin/trunk/t

[email protected]
Newsgroups gmane.mail.spam.spamassassin.cvs
Message-ID <175507985958.2982414.5621710990286069729@svn02-us-east.apache.org>
Author: gbechis
Date: Wed Aug 13 10:10:59 2025
New Revision: 1927782

Log:
Net::LibIDN or Net::LibIDN2 module is needed to parse utf8 domains
bz #8344

Modified:
   spamassassin/trunk/t/util_parse_header_addresses.t

Modified: spamassassin/trunk/t/util_parse_header_addresses.t
==============================================================================
--- spamassassin/trunk/t/util_parse_header_addresses.t	Wed Aug 13 09:58:35 2025	(r1927781)
+++ spamassassin/trunk/t/util_parse_header_addresses.t	Wed Aug 13 10:10:59 2025	(r1927782)
@@ -8,6 +8,11 @@ use Test::More;
 use strict;
 require Mail::SpamAssassin::Util;
 
+use constant HAS_IDN => eval { require Net::LibIDN; };
+use constant HAS_IDN2 => eval { require Net::LibIDN2; };
+
+plan skip_all => "Net::LibIDN or Net::LibIDN2 is required for this test to pass" unless (HAS_IDN || HAS_IDN2);
+
 my @data = (
     {
         in  => 'companyname <"no reply"@example.com>',
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.