SF.net SVN: postfixadmin:[1820] trunk/VIRTUAL_VACATION/vacation.pl
Brought to you by:
christian_boltz,
gingerdog
From: <gin...@us...> - 2015-10-20 16:06:37
|
Revision: 1820 http://sourceforge.net/p/postfixadmin/code/1820 Author: gingerdog Date: 2015-10-20 16:06:36 +0000 (Tue, 20 Oct 2015) Log Message: ----------- merge patch from https://github.com/lisergey/postfixadmin/commit/54a77ecb9c7bc03afaab9989d73411c9d312a0c7 - thanks lisergey - encode message body with wide-chars UTF8 Modified Paths: -------------- trunk/VIRTUAL_VACATION/vacation.pl Modified: trunk/VIRTUAL_VACATION/vacation.pl =================================================================== --- trunk/VIRTUAL_VACATION/vacation.pl 2015-10-11 19:37:59 UTC (rev 1819) +++ trunk/VIRTUAL_VACATION/vacation.pl 2015-10-20 16:06:36 UTC (rev 1820) @@ -114,8 +114,10 @@ # http://dag.wieers.com/home-made/apt/packages.php # +use utf8; use DBI; -use MIME::Base64; +use MIME::Base64 qw(encode_base64); +use Encode qw(encode); use MIME::EncWords qw(:all); use Email::Valid; use strict; @@ -550,7 +552,7 @@ 'from' => $from, 'fake_from' => $friendly_from . " <$from>", 'to' => $to, - 'msg' => encode_base64($body) + 'msg' => encode_base64(encode("UTF-8", $body)) ); if($test_mode == 1) { $logger->info("** TEST MODE ** : Vacation response sent to $to from $from subject $subject (not) sent\n"); This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |