summaryrefslogtreecommitdiff
path: root/alot/widgets
diff options
context:
space:
mode:
authorAnton Khirnov <anton@khirnov.net>2021-02-01 15:29:53 +0100
committerAnton Khirnov <anton@khirnov.net>2021-02-01 15:29:53 +0100
commit5f7571eeaf30f054b71327100caab2a15431cf66 (patch)
tree670b736116a3b3cd50fc5d5603f9c001e056d0be /alot/widgets
parent788f69048ba28f0345d9128eddf0522a34d6db08 (diff)
Fix access to Attachment filename.
Diffstat (limited to 'alot/widgets')
-rw-r--r--alot/widgets/thread.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/alot/widgets/thread.py b/alot/widgets/thread.py
index 52e23d07..7d3bafca 100644
--- a/alot/widgets/thread.py
+++ b/alot/widgets/thread.py
@@ -302,7 +302,7 @@ class _TextPart(_MIMEPartWidget):
# decorate inline-forced attachments with a linebox
if part.attachment:
title = 'attachment %s' % part.content_type
- fname = part.attachment.get_filename()
+ fname = part.attachment.filename
if fname:
title += ': %s' % fname