From 38bf8b644a50320747712a223cdd5559aabfa2cf Mon Sep 17 00:00:00 2001 From: Alexander Sulfrian Date: Tue, 25 Aug 2020 17:42:08 +0200 Subject: Use Email::Address::XS Email::Address::XS is already a dependency of Mail::DMARC, so we do not need an additional dependency. --- Spline/DMARC.pm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Spline/DMARC.pm b/Spline/DMARC.pm index 1cea9cb..4a54bbd 100644 --- a/Spline/DMARC.pm +++ b/Spline/DMARC.pm @@ -22,7 +22,7 @@ use strict; use warnings; use Mail::DMARC::PurePerl; -use Email::Address; +use Email::Address::XS; use Spline::Log qw(info debug); use base 'Exporter'; @@ -105,7 +105,7 @@ returns 1. If there is no policy or a policy with any other value then sub check_addresses($) { my $from = shift; - my @addresses = Email::Address->parse($from); + my @addresses = Email::Address::XS->parse($from); foreach my $addr (@addresses) { my $policy = get_dmarc_policy($addr->host); if ($policy eq 'reject') { -- cgit v1.2.3-1-g7c22