summaryrefslogtreecommitdiff
path: root/alot/db
diff options
context:
space:
mode:
authorAnton Khirnov <anton@khirnov.net>2021-01-21 15:13:52 +0100
committerAnton Khirnov <anton@khirnov.net>2021-01-21 15:13:52 +0100
commitfc10ff87c52005d660900953d48a1d7c327b544b (patch)
tree05bd9f00ffebbba4bf5c35b9d3a977942c7c06aa /alot/db
parent6b3e3e2b0bd1e827191e48d7ff6c1d50cb906438 (diff)
widgets/thread: generic pygments highlighting
Diffstat (limited to 'alot/db')
-rw-r--r--alot/db/message.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/alot/db/message.py b/alot/db/message.py
index 20782c5a..cb72b2ad 100644
--- a/alot/db/message.py
+++ b/alot/db/message.py
@@ -190,6 +190,10 @@ class _MimeTree:
def content_subtype(self):
return self._part.get_content_subtype()
+ @property
+ def filename(self):
+ return self._part.get_filename()
+
def _handle_signed_pgp(self, session_keys):
"""
Handle PGP-signed data.