Skip to content

Commit

Permalink
remove extra chars only if md5 encryption is not used
Browse files Browse the repository at this point in the history
  • Loading branch information
bigio committed Dec 30, 2022
1 parent 04f562d commit f76afd8
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions Esp.pm
Original file line number Diff line number Diff line change
Expand Up @@ -589,7 +589,9 @@ sub esp_amazonses_check {
my $fid;

# Change base64 chars that are not valid in dns records into "_", uid must be limited to chars permitted in dns records
$opts .= "nobase64";
if($opts ne "md5") {
$opts .= "nobase64";
}

# return if X-SES-Outgoing is not what we want
my $xses = $pms->get("X-SES-Outgoing", undef);
Expand Down Expand Up @@ -850,7 +852,9 @@ sub esp_msnd_check {
my $uid;

# Change "-" into "_", uid must be limited to chars permitted in dns records
$opts .= "nodash";
if($opts ne "md5") {
$opts .= "nodash";
}

# return if X-Mailer is not what we want
my $xmailer = $pms->get("X-Mailer", undef);
Expand Down

0 comments on commit f76afd8

Please sign in to comment.