From 48399a5a2938079361780de1e87e15e6dbbca349 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Sven=20Sch=C3=B6ling?= Date: Wed, 11 Mar 2009 15:21:22 +0000 Subject: [PATCH] =?utf8?q?Charset=20nur=20bei=20Type=20'text'=20Anh=C3=A4n?= =?utf8?q?gen=20setzen.?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- SL/Mailer.pm | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/SL/Mailer.pm b/SL/Mailer.pm index 2cd3b4374..1cf519b60 100644 --- a/SL/Mailer.pm +++ b/SL/Mailer.pm @@ -194,7 +194,15 @@ $self->{message} } print OUT qq|--${boundary} -Content-Type: $application/$self->{format}; name="$filename"; charset="$self->{charset}" +Content-Type: $application/$self->{format}; name="$filename"; |; + + # only set charset for attachements of type text. every other type should not have this field + # refer to bug 883 for detailed information + if ($application eq 'text' && $self->{charset}) { + print OUT qq|charset="$self->{charset}" |; + } + + print OUT qq| Content-Transfer-Encoding: BASE64 Content-Disposition: attachment; filename="$filename"\n\n|; -- 2.20.1