ContentType.parse
gmime.content_type.ContentType parse(gmime.parser_options.ParserOptions options, string str)Parses the input string into a #GMimeContentType object.
Parameters
options | a #GMimeParserOptions or null |
str | input string containing a content-type (and params) |
Returns
a new #GMimeContentType object.