Perl module to parse a MIME Content-Type header

Email::MIME::ContentType provides a method for parsing email Content-
Type headers according to section 5.1 of RFC 2045. The method returns
a hash having entries for the discrete type, the composite type, and a
hash of attributes.
