func detectMultipartMessage(root *Part) bool {
	// Parse top-level multipart
	ctype := root.Header.Get(hnContentType)
	mediatype, _, _, err := parseMediaType(ctype)
	if err != nil {
		return false
	}
	// According to rfc2046#section-5.1.7 all other multipart should
	// be treated as multipart/mixed
	return strings.HasPrefix(mediatype, ctMultipartPrefix)
}
func detectMultipartMessage(root *Part) bool {
	
	ctype := root.Header.Get(hnContentType)
	mediatype, _, _, err := parseMediaType(ctype)
	if err != nil {
		return false
	}
	
	
	return strings.HasPrefix(mediatype, ctMultipartPrefix)
}
func detectMultipartMessage ( root * Part ) bool { // Parse top-level multipart ctype := root . Header . Get ( hnContentType ) mediatype , _ , _ , err := parseMediaType ( ctype ) if err != nil { return false } // According to rfc2046#section-5.1.7 all other multipart should // be treated as multipart/mixed return strings . HasPrefix ( mediatype , ctMultipartPrefix ) }
// detectMultipartMessage returns true if the message has a recognized multipart Content-Type header
detectMultipartMessage returns true if the message has a recognized multipart Content - Type header