1Email::MIME::Kit::Role:U:sMearniCfoensttrDiebsuEutmgeaadirleP:re:(rM3lI)MDEo:c:uKmietn:t:aRtoiloen::ManifestDesugarer(3)
2
3
4
6 Email::MIME::Kit::Role::ManifestDesugarer - helper for desugaring
7 manifests
8
10 version 3.000006
11
13 This role also performs Email::MIME::Kit::Role::Component.
14
15 This is a role more likely to be consumed than implemented. It wraps
16 "around" the "read_manifest" method in the consuming class, and
17 "desugars" the contents of the loaded manifest before returning it.
18
19 At present, desugaring is what allows the "type" attribute in
20 attachments and alternatives to be given instead of a "content_type"
21 entry in the "attributes" entry. In other words, desugaring turns:
22
23 {
24 header => [ ... ],
25 type => 'text/plain',
26 }
27
28 Into:
29
30 {
31 header => [ ... ],
32 attributes => { content_type => 'text/plain' },
33 }
34
35 More behavior may be added to the desugarer later.
36
38 Ricardo Signes <rjbs@cpan.org>
39
41 This software is copyright (c) 2018 by Ricardo Signes.
42
43 This is free software; you can redistribute it and/or modify it under
44 the same terms as the Perl 5 programming language system itself.
45
46
47
48perl v5.34.0 2E0m2a1i-l0:7:-M2I2ME::Kit::Role::ManifestDesugarer(3)