MCPcopy Create free account
hub / github.com/chatmail/core / has_html

Method has_html

python/src/deltachat/message.py:96–98  ·  view source on GitHub ↗

return True if this message has an html part, False otherwise.

(self)

Source from the content-addressed store, hash-verified

94 return from_optional_dc_charpointer(lib.dc_get_msg_html(self.account._dc_context, self.id)) or ""
95
96 def has_html(self):
97 """return True if this message has an html part, False otherwise."""
98 return lib.dc_msg_has_html(self._dc_msg)
99
100 def set_html(self, html_text):
101 """set the html part of this message.

Callers 1

test_html_messageFunction · 0.45

Calls

no outgoing calls

Tested by 1

test_html_messageFunction · 0.36