(self)
return ctype.split('/')[0]
Return the message's main content type.

        This is the `maintype' part of the string returned by
        get_content_type().
Return the message's main content type.
Return the message s main content type .
def get_content_maintype(self):
        """Return the message's main content type.

        This is the `maintype' part of the string returned by
        get_content_type().
        """
        ctype = self.get_content_type()
        return ctype.split('/')[0]
def get_content_maintype ( self ) : ctype = self . get_content_type ( ) return ctype . split ( '/' ) [ 0 ]