'Return the message\'s main content type.
This is the `maintype\' part of the string returned by
get_content_type().'

def get_content_maintype(self):

    ctype = self.get_content_type()
    return ctype.split('/')[0]
