Skip to content

Commit

Permalink
cronwrap: Specify utf8 encoding in mail header
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
donald committed Apr 25, 2023
1 parent 480ff75 commit ab5fc31
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions cronwrap/cronwrap
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,8 @@ if ($status || $opt{v})
From => "\"cronwrap\@$hostname\" <postmaster\@molgen.mpg.de>",
To => \@to,
Subject => $subject,
'MIME-Version' => '1.0',
'Content-Type' => 'text/plain; charset=utf-8',
}
);

Expand Down

0 comments on commit ab5fc31

Please sign in to comment.