diff options
Diffstat (limited to 'alot/db/attachment.py')
-rw-r--r-- | alot/db/attachment.py | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/alot/db/attachment.py b/alot/db/attachment.py index 94c0f7ad..a1b7bc04 100644 --- a/alot/db/attachment.py +++ b/alot/db/attachment.py @@ -86,8 +86,8 @@ class Attachment(object): def get_mime_representation(self): """returns mime part that constitutes this attachment""" part = deepcopy(self.part) - cd = self.part['Content-Disposition'] - del part['Content-Disposition'] - part['Content-Disposition'] = Header(cd, maxlinelen=78, - header_name='Content-Disposition') + part['Content-Disposition'] = Header( + self.part['Content-Disposition'], + maxlinelen=78, + header_name='Content-Disposition') return part |