From 5f7571eeaf30f054b71327100caab2a15431cf66 Mon Sep 17 00:00:00 2001 From: Anton Khirnov Date: Mon, 1 Feb 2021 15:29:53 +0100 Subject: Fix access to Attachment filename. --- alot/widgets/thread.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'alot/widgets/thread.py') 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 -- cgit v1.2.3