summaryrefslogtreecommitdiff
path: root/alot/db
diff options
context:
space:
mode:
authorAnton Khirnov <anton@khirnov.net>2021-01-21 16:03:30 +0100
committerAnton Khirnov <anton@khirnov.net>2021-01-21 16:05:12 +0100
commit5c4c77cac16e2a76b49734a68933764b105b06af (patch)
treeb362f8538eb4075029ef716d6e4847cebb9fc1e0 /alot/db
parent5eff7b964ee0557e9a5d12fcf4b15d06555a0ce5 (diff)
db/message: implement __str__
Diffstat (limited to 'alot/db')
-rw-r--r--alot/db/message.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/alot/db/message.py b/alot/db/message.py
index a8590d9f..bc2125c6 100644
--- a/alot/db/message.py
+++ b/alot/db/message.py
@@ -154,6 +154,9 @@ class _MimeTree:
if cd == 'attachment' or fn is not None:
self.attachment = Attachment(part)
+ def __str__(self):
+ return 'MimePart(%s)' % self.content_type
+
def render_str(self, alt_preference = None):
if self.children is not None:
if self.is_alternative and len(self.children) > 0: