Validate MIME content headers and transfer encoding before decoding bodies
A MIME-conformant top-level message declares MIME-Version: 1.0; body parts need their own declaration only when they encapsulate a MIME message. Content-Type identifies the body’s media type, subtype, and type-specific parameters so the receiver can choose an appropriate handler.
Read the guide