[Koha-bugs] [Bug 26948] Some Koha Emails are double encoded (HOLD, ODUE, ...)

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Fri Nov 6 13:14:18 CET 2020


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

--- Comment #3 from Joonas Kylmälä <joonas.kylmala at helsinki.fi> ---
Created attachment 113244
  -->
https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=113244&action=edit
Bug 26948: Remove double encoding from sent emails

The sent emails from Koha were garbled / double encoded because
Koha::Email now after the refactoring and moving to use Email::Stuffer
handles the encoding itself. Previously the Koha::Email callee had to
handle the encoding. This patch removes the double encoding in the
email subject and content.

To test:
 1) Put some UTF-8 characters like ä in the HOLD template subject and body
 2) Create hold and check-in an item to make it Waiting and cause the
 email to be send
 3) Notice the email comes garbled / double encoded
 4) Apply patch
 5) Repeat step 2) and notice the email comes without any issues in
    encoding and look OK.
 6) Make sure "prove t/Koha/Email.t" and "prove
    t/db_dependent/Letters.t" and passes

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


More information about the Koha-bugs mailing list