Added support for parsing multipart messages