From 79f8a63a462785f3c8d06c9cecb1026a1c76fb2c Mon Sep 17 00:00:00 2001 From: tkempf Date: Fri, 21 Jul 2017 08:53:09 +0200 Subject: [PATCH] Bugfix in Encoding of vacation mail. UTF-8 header was missing and the mailbody is already utf8, so no need to recode --- VIRTUAL_VACATION/vacation.pl | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/VIRTUAL_VACATION/vacation.pl b/VIRTUAL_VACATION/vacation.pl index 8c996339..0fa9c218 100644 --- a/VIRTUAL_VACATION/vacation.pl +++ b/VIRTUAL_VACATION/vacation.pl @@ -582,11 +582,12 @@ sub send_vacation_email { header => [ To => $to, From => $from, - Subject => encode_mimewords($subject, 'Charset', 'UTF-8'), + Subject => $subject, Precedence => 'junk', + 'Content-Type' => "text/plain; charset=utf-8", 'X-Loop' => 'Postfix Admin Virtual Vacation', ], - body => encode("UTF-8", $body), + body => $body, ); if($test_mode == 1) {