summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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: