Simon Cozens > Email-MIME-ContentType-1.0 > Email::MIME::ContentType

Download:
Email-MIME-ContentType-1.0.tar.gz

Dependencies

Annotate this POD

CPAN RT

Open  0
Report a bug
Module Version: 1.0   Source   Latest Release: Email-MIME-ContentType-1.01

NAME ^

Email::MIME::ContentType - Parse a MIME Content-Type Header

SYNOPSIS ^

  use Email::MIME::ContentType;
  my $ct = "Content-Type: text/plain; charset="us-ascii"; format=flowed";
  my $data = parse_content_type($ct);
  $data = {
    discrete => "text",
    composite => "plain",
    attributes => {
        charset => "us-ascii",
        frormat => "flowed"
    }
  }

DESCRIPTION ^

This module is responsible for parsing email content type headers according to section 5.1 of RFC 2045. It returns a hash as above, with entries for the discrete type, the composite type, and a hash of attributes.

EXPORT

parse_content_type

AUTHOR ^

Simon Cozens, simon@cpan.org

SEE ALSO ^

Email::MIME