GSP
Quick Navigator

Search Site

Unix VPS
A - Starter
B - Basic
C - Preferred
D - Commercial
MPS - Dedicated
Previous VPSs
* Sign Up! *

Support
Contact Us
Online Help
Handbooks
Domain Status
Man Pages

FAQ
Virtual Servers
Pricing
Billing
Technical

Network
Facilities
Connectivity
Topology Map

Miscellaneous
Server Agreement
Year 2038
Credits
 

USA Flag

 

 

Man Pages


Manual Reference Pages  -  EMAIL::MIME::CONTENTTYPE (3)

.ds Aq ’

NAME

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

CONTENTS

VERSION

version 1.017

SYNOPSIS



  use Email::MIME::ContentType;

  # Content-Type: text/plain; charset="us-ascii"; format=flowed
  my $ct = text/plain; charset="us-ascii"; format=flowed;
  my $data = parse_content_type($ct);

  $data = {
    type       => "text",
    subtype    => "plain",
    attributes => {
      charset => "us-ascii",
      format  => "flowed"
    }
  };



FUNCTIONS

    parse_content_type

This routine is exported by default.

This routine parses email content type headers according to section 5.1 of RFC 2045. It returns a hash as above, with entries for the type, the subtype, and a hash of attributes.

For backward compatibility with a really unfortunate misunderstanding of RFC 2045 by the early implementors of this module, discrete and composite are also present in the returned hashref, with the values of type and subtype respectively.

WARNINGS

This is not a valid content-type header, according to both RFC 1521 and RFC 2045:



  Content-Type: type/subtype;



If a semicolon appears, a parameter must. parse_content_type will carp if it encounters a header of this type, but you can suppress this by setting $Email::MIME::ContentType::STRICT_PARAMS to a false value. Please consider localizing this assignment!

AUTHORS

o Simon Cozens <simon@cpan.org>
o Casey West <casey@geeknest.com>
o Ricardo SIGNES <rjbs@cpan.org>

COPYRIGHT AND LICENSE

This software is copyright (c) 2004 by Simon Cozens.

This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.

Search for    or go to Top of page |  Section 3 |  Main Index


perl v5.20.3 EMAIL::MIME::CONTENTTYPE (3) 2013-08-11

Powered by GSP Visit the GSP FreeBSD Man Page Interface.
Output converted with manServer 1.07.