email.message.Message.get_content_maintype()

get_content_maintype() Return the message’s main content type. This is the maintype part of the string returned by get_content_type().

email.message.Message.get_content_disposition()

get_content_disposition() Return the lowercased value (without parameters) of the message’s Content-Disposition header if it has one, or None. The possible values for this method are inline, attachment or None if the message follows RFC 2183. New in version 3.5.

email.message.Message.get_content_charset()

get_content_charset(failobj=None) Return the charset parameter of the Content-Type header, coerced to lower case. If there is no Content-Type header, or if that header has no charset parameter, failobj is returned. Note that this method differs from get_charset() which returns the Charset instance for the default encoding of the message body.

email.message.Message.get_charsets()

get_charsets(failobj=None) Return a list containing the character set names in the message. If the message is a multipart, then the list will contain one element for each subpart in the payload, otherwise, it will be a list of length 1. Each item in the list will be a string which is the value of the charset parameter in the Content-Type header for the represented subpart. However, if the subpart has no Content-Type header, no charset parameter, or is not of the text main MIME type, then tha

email.message.Message.get_charset()

get_charset() Return the Charset instance associated with the message’s payload.

email.message.Message.get_boundary()

get_boundary(failobj=None) Return the value of the boundary parameter of the Content-Type header of the message, or failobj if either the header is missing, or has no boundary parameter. The returned string will always be unquoted as per email.utils.unquote().

email.message.Message.get_all()

get_all(name, failobj=None) Return a list of all the values for the field named name. If there are no such named headers in the message, failobj is returned (defaults to None).

email.message.Message.get()

get(name, failobj=None) Return the value of the named header field. This is identical to __getitem__() except that optional failobj is returned if the named header is missing (defaults to None).

email.message.Message.epilogue

epilogue The epilogue attribute acts the same way as the preamble attribute, except that it contains text that appears between the last boundary and the end of the message. You do not need to set the epilogue to the empty string in order for the Generator to print a newline at the end of the file.

email.message.Message.del_param()

del_param(param, header='content-type', requote=True) Remove the given parameter completely from the Content-Type header. The header will be re-written in place without the parameter or its value. All values will be quoted as necessary unless requote is False (the default is True). Optional header specifies an alternative to Content-Type.