From b6b48137e688f8daa3adaa9a1c7ca0dfbd8b5e17 Mon Sep 17 00:00:00 2001 From: Martin Vietz Date: Mon, 31 Aug 2020 17:47:13 +0200 Subject: [PATCH] Allow 'application/xhtml+xml' mimetype for content (#108) --- rss2email/feed.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/rss2email/feed.py b/rss2email/feed.py index 508939d..bedd16d 100644 --- a/rss2email/feed.py +++ b/rss2email/feed.py @@ -773,9 +773,9 @@ def _get_entry_content(self, entry): if entry.get('summary_detail', None): contents.append(entry.summary_detail) if self.html_mail: - types = ['text/html', 'text/plain'] + types = ['application/xhtml+xml', 'text/html', 'text/plain'] else: - types = ['text/plain', 'text/html'] + types = ['text/plain', 'text/html', 'application/xhtml+xml'] for content_type in types: for content in contents: if content['type'] == content_type: