Lp 1801163: Switch to Email::MIME in SendEmail A/T Reactor
authorJason Stephenson <jason@sigio.com>
Fri, 8 Feb 2019 20:47:41 +0000 (15:47 -0500)
committerJason Boyer <JBoyer@eoli.info>
Thu, 23 Jan 2020 12:30:14 +0000 (07:30 -0500)
commit52f004144d638225526734989eea742f984fb1f0
tree4e39ac4a5c7ca10b35182a1c82372f4c3856aa1a
parentbe89e4485f7ba3c4b958233d73a0721dcf21ed8d
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>
Signed-off-by: Galen Charlton <gmc@equinoxinitiative.org>
Signed-off-by: Jason Boyer <JBoyer@eoli.info>
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]