From db707e994fa488cc5580db670d42fb2694599aa2 Mon Sep 17 00:00:00 2001 From: Donald Buczek Date: Tue, 25 Apr 2023 16:01:51 +0200 Subject: [PATCH] cronwrap: Specify utf8 encoding in mail header If the output of the external command is not ASCII anyway, the most likely character set and encoding is unicode/utf8. Say so in the mail header. --- cronwrap/cronwrap | 2 ++ 1 file changed, 2 insertions(+) diff --git a/cronwrap/cronwrap b/cronwrap/cronwrap index 1264122..9a1276e 100755 --- a/cronwrap/cronwrap +++ b/cronwrap/cronwrap @@ -86,6 +86,8 @@ if ($status || $opt{v}) From => "\"cronwrap\@$hostname\" ", To => \@to, Subject => $subject, + 'MIME-Version' => '1.0', + 'Content-Type' => 'text/plain; charset=utf-8', } );