| Extracted from Pike v7.8 release 700 at 2013-06-08.

[Top]
MIME

# Method MIME.guess_subtype()

Method guess_subtype

  `string guess_subtype(string type)`

Description

  Provide a reasonable default for the subtype field.

  Some pre-RFC1521 mailers provide only a type and no subtype in the Content-Type header field. This function can be used to obtain a reasonable default subtype given the type of a message. (This is done automatically by the MIME.Message class.)

  Currently, the function uses the following guesses:

  `"text"` | `"plain"`
  `"message"` | `"rfc822"`
  `"multipart"` | `"mixed"`