diff --git a/lib/Mail/DMARC/Policy.pm b/lib/Mail/DMARC/Policy.pm index 9b1c5173..7b9fbc9f 100644 --- a/lib/Mail/DMARC/Policy.pm +++ b/lib/Mail/DMARC/Policy.pm @@ -63,7 +63,7 @@ sub stringify { # "v" tag must be the first one my $dmarc_txt = 'v=' . delete $dmarc_record{v} . '; '; foreach my $key ( keys %dmarc_record ) { - next if ($key =~ /^domain|v$/); + next if $key eq 'domain'; $dmarc_txt .= "$key=$dmarc_record{$key}; "; } $dmarc_txt =~ s/;\s$//;