1Email::MIME::ContentTypUes(e3r)Contributed Perl DocumentEamtaiioln::MIME::ContentType(3)
2
3
4

NAME

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

VERSION

9       version 1.013
10
11         $Id: /my/pep/Email-MIME-ContentType/trunk/lib/Email/MIME/ContentType.pm 31133 2007-03-22T19:52:26.296283Z rjbs  $
12

SYNOPSIS

14         use Email::MIME::ContentType;
15
16         # Content-Type: text/plain; charset="us-ascii"; format=flowed
17         my $ct = 'text/plain; charset="us-ascii"; format=flowed';
18         my $data = parse_content_type($ct);
19
20         $data = {
21           discrete   => "text",
22           composite  => "plain",
23           attributes => {
24             charset => "us-ascii",
25             format  => "flowed"
26           }
27         };
28

FUNCTIONS

30       parse_content_type
31
32       This routine is exported by default.
33
34       This routine parses email content type headers according to section 5.1
35       of RFC 2045. It returns a hash as above, with entries for the discrete
36       type, the composite type, and a hash of attributes.
37

WARNINGS

39       This is not a valid content-type header, according to both RFC 1521 and
40       RFC 2045:
41
42         Content-Type: type/subtype;
43
44       If a semicolon appears, a parameter must.  "parse_content_type" will
45       carp if it encounters a header of this type, but you can suppress this
46       by setting $Email::MIME::ContentType::STRICT_PARAMS to a false value.
47       Please consider localizing this assignment!
48

PERL EMAIL PROJECT

50       This module is maintained by the Perl Email Project.
51
52       <http://emailproject.perl.org/wiki/Email::MIME::ContentType>
53

AUTHOR

55       Casey West, "casey@geeknest.com" Simon Cozens, "simon@cpan.org"
56

SEE ALSO

58       Email::MIME
59
60
61
62perl v5.8.8                       2007-03-22       Email::MIME::ContentType(3)
Impressum