X-Git-Url: http://wagnertech.de/gitweb/gitweb.cgi/mfinanz.git/blobdiff_plain/73b3a0627fe093f5ee1b9536f93648571a3bf971..a8628c6af6ab8303fe67d874adbee0211bd86c1e:/SL/Mailer.pm diff --git a/SL/Mailer.pm b/SL/Mailer.pm index c931dd319..c8fe0f2a4 100644 --- a/SL/Mailer.pm +++ b/SL/Mailer.pm @@ -160,7 +160,7 @@ sub _create_attachment_part { return undef if $email_journal > 1 && !defined $attachment_content; $attachment_content ||= ' '; - $attributes{charset} = $self->{charset} if $self->{charset}; + $attributes{charset} = $self->{charset} if $self->{charset} && ($attributes{content_type} =~ m{^text/}); $::lxdebug->message(LXDebug->DEBUG2(), "mail6 mtype=" . $attributes{Type} . " filename=" . $attributes{Filename});