def get_content_maintype(self):
        ctype = self.get_content_type()
        return ctype.split('/')[0]
Return the message's main content type.
dataset/ETHPy150Open kleientertainment/ds_mod_tools/pkg/win32/Python27/Lib/email/message.py/Message.get_content_maintype