Ricardo SIGNES > Email-MIME-Kit-2.102012 > Email::MIME::Kit::Role::ManifestDesugarer

Download:
Email-MIME-Kit-2.102012.tar.gz

Dependencies

Annotate this POD

Website

CPAN RT

Open  1
View/Report Bugs
Module Version: 2.102012   Source   Latest Release: Email-MIME-Kit-2.102014

NAME ^

Email::MIME::Kit::Role::ManifestDesugarer - helper for desugaring manifests

VERSION ^

version 2.102012

IMPLEMENTING ^

This role also performs Email::MIME::Kit::Role::Component.

This is a role more likely to be consumed than implemented. It wraps around the read_manifest method in the consuming class, and "desugars" the contents of the loaded manifest before returning it.

At present, desugaring is what allows the type attribute in attachments and alternatives to be given instead of a content_type entry in the attributes entry. In other words, desugaring turns:

  {
    header => [ ... ],
    type   => 'text/plain',
  }

Into:

  {
    header => [ ... ],
    attributes => { content_type => 'text/plain' },
  }

More behavior may be added to the desugarer later.

AUTHOR ^

Ricardo Signes <rjbs@cpan.org>

COPYRIGHT AND LICENSE ^

This software is copyright (c) 2013 by Ricardo Signes.

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

syntax highlighting: