diff options
Diffstat (limited to 'alot/mail/attachment.py')
-rw-r--r-- | alot/mail/attachment.py | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/alot/mail/attachment.py b/alot/mail/attachment.py index 5c993a68..114859fc 100644 --- a/alot/mail/attachment.py +++ b/alot/mail/attachment.py @@ -54,3 +54,10 @@ class Attachment: ret += ' (%s)' % _humanize_size(len(self.data)) return ret + + @property + def content_maintype(self): + return self.content_type.partition('/')[0] + @property + def content_subtype(self): + return self.content_type.partition('/')[2] |