def get_content_maintype(self):
        ctype = self.get_content_type()
        return ctype.split('/')[0]
Return the message's main content type.
dataset/ETHPy150Open babble/babble/include/jython/Lib/email/message.py/Message.get_content_maintype