Fix received_line hook behaviour (#312)

This commit is contained in:
Andreas Erhard 2023-09-05 17:35:04 +02:00 committed by GitHub
parent 265672ce2b
commit bf64ac9699
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -860,8 +860,8 @@ sub received_line {
my $header_str; my $header_str;
my ($rc, @received) = my ($rc, @received) =
$self->run_hooks("received_line", $smtp, $authheader, $sslheader); $self->run_hooks("received_line", $smtp, $authheader, $sslheader);
if ($rc == OK) { if ($rc == OK) {
return join("\n", @received); $header_str = join("\n", @received);
} }
else { # assume $rc == DECLINED else { # assume $rc == DECLINED
$header_str = $header_str =