]> git.evergreen-ils.org Git - Evergreen.git/commit
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:32:49 +0000 (07:32 -0500)
commit74cfa01849ed54855d832cae58ab3ed3c481eaa5
treed6c348df39cc924887b4f2a431c979651719828d
parent6e2631a96ea649ed300171ead8d6c7e8bc663cda
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]