[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
Fri Jul 30 08:18:42 CEST 2021
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=28729
--- Comment #35 from Marcel de Rooy <m.de.rooy at rijksmuseum.nl> ---
(In reply to Ulrich Kleiber from comment #34)
> With this patch only the envelope-from is changed. After that, emailing
> under 20.11 behaves much like emailing under 18.11. At least that's true for
> our installations.
>
> It's not pretty and I don't know if it covers everything or has any negative
> side effects. I hope this helps with further troubleshooting.
>
> --- Email.pm 2021-07-29 11:07:24.560924469 +0200
> +++ Email.pm.patched 2021-07-29 16:33:26.636468041 +0200
> @@ -173,6 +173,9 @@
> $args->{to} = \@recipients;
> }
>
> + $args->{from} = $self->email->header("Sender") ||
> 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
> $self->SUPER::send_or_die($args);
> }
The default for Return-Path should be preference ReturnpathDefault.
Is that still used then?
--
You are receiving this mail because:
You are watching all bug changes.
More information about the Koha-bugs
mailing list