tools (common/data_objects): add attachments in Message
This commit is contained in:
parent
ae0402fd75
commit
fd53fb537e
1 changed files with 5 additions and 0 deletions
|
|
@ -104,6 +104,11 @@ class Message(object):
|
|||
except KeyError:
|
||||
return safe(next(iter(self._html.values())))
|
||||
|
||||
@property
|
||||
def attachments(self):
|
||||
return self._extra.get("attachments", [])
|
||||
|
||||
|
||||
|
||||
class Messages(object):
|
||||
def __init__(self, msgs_data):
|
||||
|
|
|
|||
Loading…
Reference in a new issue