Check if the message contains attachments :type: bool
(self)
| 368 | |
| 369 | @property |
| 370 | def has_attachments(self): |
| 371 | """ Check if the message contains attachments |
| 372 | |
| 373 | :type: bool |
| 374 | """ |
| 375 | if self.__has_attachments is False and self.body_type.upper() == 'HTML': |
| 376 | # test for inline attachments (Azure responds with hasAttachments=False when there are only inline attachments): |
| 377 | if any(img.get('src', '').startswith('cid:') for img in self.get_body_soup().find_all('img')): |
| 378 | self.__has_attachments = True |
| 379 | return self.__has_attachments |
| 380 | |
| 381 | @property |
| 382 | def is_draft(self): |
nothing calls this directly
no test coverage detected