Skip to content

Commit

Permalink
correct empty line in received-header (#619)
Browse files Browse the repository at this point in the history
when the 'if' statements at lines 235 and 239 were both false, nothing more was added except another '\n' at line 244.
  • Loading branch information
dneuhaeuser authored Oct 24, 2022
1 parent 72c9818 commit 0fe2cbc
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions common/usr/sbin/MSMilter
Original file line number Diff line number Diff line change
Expand Up @@ -233,15 +233,13 @@ sub envrcpt_callback
MailScanner::Log::DebugLog("envrcpt_callback: ssl/tls detected");
}
if (!defined($symbols->{'H'}->{'{cert_subject}'})) {
${$message_ref} .= "\t(no client certificate requested)";
${$message_ref} .= "\t(no client certificate requested)\n";
MailScanner::Log::DebugLog("envrcpt_callback: no client certificate requested");
}
if (defined($symbols->{'M'}->{'{auth_type}'}) && defined($symbols->{'M'}->{'{auth_authen}'})) {
${$message_ref} .= "\t(Authenticated sender)\n";
MailScanner::Log::DebugLog("envrcpt_callback: Authenticated sender: " . $symbols->{'M'}->{'{auth_authen}'});
${$message_ref} = "A<sasl_method=" . $symbols->{'M'}->{'{auth_type}'} . ">\n" . ${$message_ref};
} else {
${$message_ref} .= "\n";
}
${$message_ref} .= "\tby " . hostname . ' (MailScanner Milter) with SMTP id ';
}
Expand Down

0 comments on commit 0fe2cbc

Please sign in to comment.