LP#1801163: (follow-up) deal with header fields that contain Unicode strings
authorGalen Charlton <gmc@equinoxinitiative.org>
Fri, 3 Jan 2020 22:55:10 +0000 (17:55 -0500)
committerJason Boyer <JBoyer@eoli.info>
Thu, 23 Jan 2020 12:32:22 +0000 (07:32 -0500)
commit8eb50bde112efb128a7cbc2b98675ea681fbbab8
tree62ae453b504660417af0d004ca030638863ee9c0
parent2a3dcc0624d38de4fcc14b815b3fe2df1afa83e4
LP#1801163: (follow-up) deal with header fields that contain Unicode strings

Since Email::MIME->header_str_set() expects Unicode strings, not octets,
use decode_utf8() on the header values to

To test
-------
[1] Update the biblio.format.record_entry.print A/T event definition
    to include non-ASCII characters in the subject and from headers.
[2] Upon applying the patch series, verifying that the strings provided
    in step 1 are not mangled when the email is sent.

Signed-off-by: Galen Charlton <gmc@equinoxinitiative.org>
Signed-off-by: Jason Boyer <JBoyer@eoli.info>
Open-ILS/src/perlmods/lib/OpenILS/Application/Trigger/Reactor/SendEmail.pm