diff options
Diffstat (limited to '')
-rw-r--r-- | lib/feed2imap/itemtomail.rb | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/lib/feed2imap/itemtomail.rb b/lib/feed2imap/itemtomail.rb index 4a6284f..56232b6 100644 --- a/lib/feed2imap/itemtomail.rb +++ b/lib/feed2imap/itemtomail.rb @@ -81,11 +81,8 @@ def item_to_mail(item, index, updated, from = 'Feed2Imap') textpart.body = item.to_text htmlpart = RMail::Message::new htmlpart.header['Content-Type'] = 'text/html; charset=utf-8' - htmlpart.header['Content-Transfer-Encoding'] = '7bit' - if item.respond_to?(:to_html_with_headers) - htmlpart.body = item.to_html_with_headers - else - htmlpart.body = '<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"><html><body>' + item.to_html + '</body></html>' + htmlpart.header['Content-Transfer-Encoding'] = '8bit' + htmlpart.body = item.to_html end message.add_part(textpart) message.add_part(htmlpart) |