summaryrefslogtreecommitdiff
path: root/alot/db/message.py
diff options
context:
space:
mode:
authorAnton Khirnov <anton@khirnov.net>2020-03-06 12:34:50 +0100
committerAnton Khirnov <anton@khirnov.net>2020-03-06 12:50:22 +0100
commit7f149c511a5170ee01fea05f9550ba4096bf8de8 (patch)
tree339abef21f005da4f1aae3a46ccaf71489251d39 /alot/db/message.py
parent172ce9724bb3702faaadc5202a7bd92f9ce938bf (diff)
db/message: stop calling get_email() unnecesarily
Diffstat (limited to 'alot/db/message.py')
-rw-r--r--alot/db/message.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/alot/db/message.py b/alot/db/message.py
index 90bba469..d9720167 100644
--- a/alot/db/message.py
+++ b/alot/db/message.py
@@ -518,7 +518,7 @@ class Message:
def get_message_parts(self):
"""yield all body parts of this message"""
- for msg in self.get_email().walk():
+ for msg in self._email.walk():
if not msg.is_multipart():
yield msg
@@ -638,7 +638,7 @@ class Message:
def get_body_text(self):
""" returns bodystring extracted from this mail """
# TODO: allow toggle commands to decide which part is considered body
- return extract_body(self.get_email())
+ return extract_body(self._email)
def matches(self, querystring):
"""tests if this messages is in the resultset for `querystring`"""