Skip to content

Commit

Permalink
match from and envelope-from domains even if they are written in
Browse files Browse the repository at this point in the history
different way (camelcase or uppercase)
  • Loading branch information
bigio committed Oct 21, 2024
1 parent c535e13 commit 80625e6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/Mail/DMARC/PurePerl.pm
Original file line number Diff line number Diff line change
Expand Up @@ -266,7 +266,7 @@ sub is_spf_aligned {

my $from_dom = $self->header_from or croak "header_from not set!";

if ( $spf_dom eq $from_dom ) {
if ( lc($spf_dom) eq lc($from_dom) ) {
$self->result->spf('pass');
$self->result->spf_align('strict');
return 1;
Expand Down

0 comments on commit 80625e6

Please sign in to comment.