@@ 62,7 62,7 @@ class Converter:
Date: {}
Subject: {}
List-ID: {}
-Content-Type: text/plain
+Content-Type: {}
{}
@@ 193,6 193,7 @@ Content-Type: text/plain
updated = updated.strftime('%a, %d %b %Y %H:%M:%S %Z')
desc = ''
+ content_type = 'text/plain'
if not self.links:
if self.strip:
stripper = HTMLStripper()
@@ 200,9 201,11 @@ Content-Type: text/plain
desc = stripper.get_data()
else:
desc = post.description
+ content_type = 'text/html'
return self.TEMPLATE.format(updated,
post.title,
title.lower().replace(' ', '-'),
+ content_type,
post.link,
desc)