def get_content_type(self):
        missing = object()
        value = self.get('content-type', missing)
        if value is missing:
            # This should have no parameters
            return self.get_default_type()
        ctype = paramre.split(value)[0].lower().strip()
        # RFC 2045, section 5.2 says if its invalid, use text/plain
        if ctype.count('/') <> 1:
            return 'text/plain'
        return ctype
Return the message's content type.
dataset/ETHPy150Open babble/babble/include/jython/Lib/email/message.py/Message.get_content_type