12.2.1.1 Deprecated methods
Changed in version 2.4: The add_payload() method was removed; use the attach() method instead.
The following methods are deprecated. They are documented here for completeness.
-
Return the message's content type, as a string of the form
maintype/subtype as taken from the
Content-Type: header.
The returned string is coerced to lowercase.
If there is no Content-Type: header in the message, failobj is returned (defaults to
None
).
-
Return the message's main content type. This essentially returns the
maintype part of the string returned by get_type(), with the
same semantics for failobj.
-
Return the message's sub-content type. This essentially returns the
subtype part of the string returned by get_type(), with the
same semantics for failobj.
See About this document... for information on suggesting changes.