summaryrefslogtreecommitdiff
path: root/alot/message.py
diff options
context:
space:
mode:
Diffstat (limited to 'alot/message.py')
-rw-r--r--alot/message.py7
1 files changed, 4 insertions, 3 deletions
diff --git a/alot/message.py b/alot/message.py
index ec5bef34..3afb048a 100644
--- a/alot/message.py
+++ b/alot/message.py
@@ -297,9 +297,10 @@ class Attachment(object):
self.part = emailpart
def __str__(self):
- return '%s:%s (%s)' % (self.get_content_type(),
- self.get_filename(),
- helper.humanize_size(self.get_size()))
+ desc = '%s:%s (%s)' % (self.get_content_type(),
+ self.get_filename(),
+ helper.humanize_size(self.get_size()))
+ return string_decode(desc)
def get_filename(self):
"""return the filename, extracted from content-disposition header"""