summaryrefslogtreecommitdiff
path: root/alot/db/message.py
diff options
context:
space:
mode:
authorAnton Khirnov <anton@khirnov.net>2020-03-05 12:46:24 +0100
committerAnton Khirnov <anton@khirnov.net>2020-03-05 13:51:48 +0100
commite2efd81f0dc4f913c73a2494091f67c748001942 (patch)
tree01b13bd2bdc6aa444c86d60c7091f3149266d9eb /alot/db/message.py
parentc5a951d8ed69741c43302a8ed8ca8d1b388cb17f (diff)
Update tests.
Drop some tests for removed functions.
Diffstat (limited to 'alot/db/message.py')
-rw-r--r--alot/db/message.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/alot/db/message.py b/alot/db/message.py
index f420d377..c0bdb398 100644
--- a/alot/db/message.py
+++ b/alot/db/message.py
@@ -494,12 +494,12 @@ class Message:
"Message file is no longer accessible:\n%s" % self.filename
try:
with open(self.filename, 'rb') as f:
- email = _decrypted_message_from_bytes(f.read(), session_keys)
+ mail = _decrypted_message_from_bytes(f.read(), session_keys)
except IOError:
- email = email.message_from_string(
+ mail = email.message_from_string(
warning, policy=email.policy.SMTP)
- return email
+ return mail
def get_email(self):
"""returns :class:`email.email.EmailMessage` for this message"""