[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 17:12:26 CEST 2021


https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=28729

--- Comment #34 from Ulrich Kleiber <ulrich.kleiber at bsz-bw.de> ---
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);
 }

-- 
You are receiving this mail because:
You are watching all bug changes.


More information about the Koha-bugs mailing list