[Koha-bugs] [Bug 28729] Return-path header not set in emails
bugzilla-daemon at bugs.koha-community.org
bugzilla-daemon at bugs.koha-community.org
Thu Jul 29 11:54:15 CEST 2021
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=28729
--- Comment #28 from Ulrich Kleiber <ulrich.kleiber at bsz-bw.de> ---
Maybe in Email.pm the envelope-from should be set to the return-path.
Koha 20.11
--- Email.pm 2021-07-29 11:07:24.560924469 +0200
+++ Email.pm.patched 2021-07-29 11:49:01.108795689 +0200
@@ -76,9 +76,6 @@
my ( $self, $params ) = @_;
my $args = {};
- $args->{from} = $params->{from} ||
C4::Context->preference('KohaAdminEmailAddress');
- Koha::Exceptions::BadParameter->throw("Invalid 'from' parameter:
".$args->{from})
- unless Email::Valid->address( -address => $args->{from}, -fqdn => 0 );
# from is mandatory
$args->{subject} = $params->{subject} // '';
@@ -117,6 +114,9 @@
);
}
+ $args->{from} = $addresses->{sender} ||
C4::Context->preference('ReturnpathDefault') || $params->{from} ||
C4::Context->preference('KohaAdminEmailAddress');
+ Koha::Exceptions::BadParameter->throw("Invalid 'from' parameter:
".$args->{from})
+ unless Email::Valid->address( -address => $args->{from}, -fqdn => 0 );
# from is mandatory
$args->{cc} = $addresses->{cc}
if $addresses->{cc};
$args->{bcc} = $addresses->{bcc}
--
You are receiving this mail because:
You are watching all bug changes.
More information about the Koha-bugs
mailing list