]> git.koha-community.org Git - koha.git/commit
Bug 15133: encode correctly email generated by runreport.pl
authorFrédéric Demians <f.demians@tamil.fr>
Thu, 5 Nov 2015 07:45:25 +0000 (08:45 +0100)
committerFrédéric Demians <f.demians@tamil.fr>
Sun, 29 Nov 2015 21:04:40 +0000 (22:04 +0100)
commitbfbddd183c9c97b05b1e9305ff5e8f45ac19c179
tree362b7d9a385bd154326a6d4d75ce43a1e8bc6b1e
parent5288b0d9b579a90e287348c8650d9d92a36f8ca2
Bug 15133: encode correctly email generated by runreport.pl

/misc/cronjobs/runreport.pl send badly encoded email in text/csv
(partially ok in HTML).

TEST:

1. Send by email a report containing a subject with accented characters
   and resultset with accented characters. For example:

   ./runreport.pl --subject="éèà" --to=me@home.org  1
   ./runreport.pl --format=html --subject="éèà" --to=me@home.org  1

   The first email contains badly encoded subject & message. The second email
   contains badly encoded subject, but correct message.

2. Apply the patch

3. Repeat 1 => No more strange characters.

Signed-off-by: Liz Rea <liz@catalyst.net.nz>
Characters are correctly encoded now, thanks for that good spot.

Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
(cherry picked from commit 9515db57bdd13cdff33d9056963455fb850ad877)
Signed-off-by: Frédéric Demians <f.demians@tamil.fr>
misc/cronjobs/runreport.pl