summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--alot/db/utils.py2
-rw-r--r--tests/db/test_utils.py1
2 files changed, 1 insertions, 2 deletions
diff --git a/alot/db/utils.py b/alot/db/utils.py
index bdb76f1e..194e726a 100644
--- a/alot/db/utils.py
+++ b/alot/db/utils.py
@@ -477,7 +477,7 @@ def extract_body(mail):
"""
if settings.get('prefer_plaintext'):
- preferencelist = ('plain',)
+ preferencelist = ('plain', 'html')
else:
preferencelist = ('html', 'plain')
diff --git a/tests/db/test_utils.py b/tests/db/test_utils.py
index 59a46435..5fe7099f 100644
--- a/tests/db/test_utils.py
+++ b/tests/db/test_utils.py
@@ -677,7 +677,6 @@ class TestExtractBody(unittest.TestCase):
subtype='html')
return mail
- @unittest.expectedFailure
@mock.patch('alot.db.utils.settings.get', mock.Mock(return_value=True))
@mock.patch('alot.db.utils.settings.mailcap_find_match',
mock.Mock(return_value=(None, {'view': 'cat'})))