Lp 1801163: Switch to Email::MIME in SendEmail A/T Reactor user/dyrcona/lp1801163-email-mime
authorJason Stephenson <jason@sigio.com>
Fri, 8 Feb 2019 20:47:41 +0000 (15:47 -0500)
committerJason Stephenson <jason@sigio.com>
Sat, 9 Feb 2019 16:58:59 +0000 (11:58 -0500)
commit6c629fc536c802c863b3ac12c937ac261c09b79e
treecabea9dbf5963a309adda681c45a984892749d23
parent6ae2427affb3e6cb8c5f96b2a21530efd6798a70
Lp 1801163: Switch to Email::MIME in SendEmail A/T Reactor

Switch from Email::Simple to Email::MIME Perl module in the SendEmail
Action/Trigger Reactor.  Email::MIME properly encodes unescaped header
fields when added to the message with the header_str_set method.

We allow only 1 of each address field to be created while doing the
encoding, so that messages conform to RFC 2822.

This commit adds a new prerequisite as mentioned in the release notes,
so be sure to install the prerequisites for your Linux distribution
before installing.

You can test this with concerto data from a fresh installation by:

1. Configuring your test system to send email.

2. Updating all actor.usr entries to have your email address.

3. Updating the New User Created Welcome Notice event definiton to
   active = true.

4. Run the action_trigger_runner with --process-hooks --run-pending.

5. You should get 237 new user welcome emails.  The exact number is
   subject to change.

Signed-off-by: Jason Stephenson <jason@sigio.com>
Open-ILS/src/extras/install/Makefile.debian-jessie
Open-ILS/src/extras/install/Makefile.debian-stretch
Open-ILS/src/extras/install/Makefile.ubuntu-bionic
Open-ILS/src/extras/install/Makefile.ubuntu-xenial
Open-ILS/src/perlmods/lib/OpenILS/Application/Trigger/Reactor/SendEmail.pm
docs/RELEASE_NOTES_NEXT/Administration/sendemail-reactor-mime.adoc [new file with mode: 0644]