[interchange] Fixed lookup for transfer encoding with text/html

Stefan Hornburg <[email protected]>
Newsgroups gmane.comp.web.interchange.cvs
Message-ID <[email protected]>
commit b56064a1a8f9f468fbaae3134216c6383e8af317
Author: Marco Pessotto <[email protected]>
Date:   Mon Feb 24 14:45:18 2014 +0100

    Fixed lookup for transfer encoding with text/html
    
    When UTF-8 was active, the content part was not just text/html,
    so the hash lookup for the transfer encoding to use returned undef
    and defaults to 8-bit, which is not safe for mail.

 code/UserTag/email.tag |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)
---
diff --git a/code/UserTag/email.tag b/code/UserTag/email.tag
index c4361d3..eaaf5fe 100644
--- a/code/UserTag/email.tag
+++ b/code/UserTag/email.tag
@@ -189,6 +189,7 @@ sub {
 		my %encoding_types = (
 			'text/plain' => ($utf8 ? 'quoted-printable' : '8bit'),
 			'text/html' => 'quoted-printable',
+            'text/html; charset=UTF-8' => 'quoted-printable',
 		);
 
 		for my $ref (@$att) {
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.