CentOS5 の Logwatch

CentOS5のLogwatchはバージョンがあがったせいか、メール内にContent-Type:で余計な文字コードの指定をいれてくるので、日本人のメーラでは、表示が英語モード?のフォントになってしまい見にくいので、メール内に日本語ないけど、日本語のContent-Typeに変更してみる。

CentOS4
logwatch-5.2.2-2.EL4
CentOS5
logwatch-7.3-5
変更点
/usr/sbin/logwatch  (/usr/share/logwatch/scripts/logwatch.pl への symlink)
1020c1020
< $out_mime .= "Content-Type: text/plain; charset=\\"iso-2022-jp\\"\\n\\n";
---
> $out_mime .= "Content-Type: text/plain; charset=\\"iso-8859-1\\"\\n\\n";

コメントを残す

メールアドレスが公開されることはありません。 が付いている欄は必須項目です

CAPTCHA