[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
Mon Oct 18 15:48:25 CEST 2021


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

--- Comment #40 from Martin Renvoize <martin.renvoize at ptfs-europe.com> ---
Created attachment 126436
  -->
https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=126436&action=edit
Bug 28729: Reverse 'sender' and 'from'

Having read through the docs for both Email::Stuffer (Email::Sender) and
Mail::Sendmail, I believe the meaning of 'from' and 'Sender' has
reversed between the two modules.

Email::Sendmail interpreted 'from' as the from address of the mail and
used Sender as an override for the envelope when it was passed. However,
in Email::Stuffer the 'from' is set at the envelope level and thus sets
the connection 'MAIL FROM' which is subsequently used as the return-path
by the mail server. It then uses 'Sender' as the message from address if
one is passed in as a header.

This patch reverses our handling of those attribute in Koha::Email.

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


More information about the Koha-bugs mailing list