Email-MIME-Kit-3.000008/000755 000765 000024 00000000000 14474753533 014367 5ustar00rjbsstaff000000 000000 Email-MIME-Kit-3.000008/LICENSE000644 000765 000024 00000046435 14474753533 015410 0ustar00rjbsstaff000000 000000 This software is copyright (c) 2023 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. Terms of the Perl programming language system itself a) the GNU General Public License as published by the Free Software Foundation; either version 1, or (at your option) any later version, or b) the "Artistic License" --- The GNU General Public License, Version 1, February 1989 --- This software is Copyright (c) 2023 by Ricardo Signes. This is free software, licensed under: The GNU General Public License, Version 1, February 1989 GNU GENERAL PUBLIC LICENSE Version 1, February 1989 Copyright (C) 1989 Free Software Foundation, Inc. 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA Everyone is permitted to copy and distribute verbatim copies of this license document, but changing it is not allowed. Preamble The license agreements of most software companies try to keep users at the mercy of those companies. By contrast, our General Public License is intended to guarantee your freedom to share and change free software--to make sure the software is free for all its users. The General Public License applies to the Free Software Foundation's software and to any other program whose authors commit to using it. You can use it for your programs, too. When we speak of free software, we are referring to freedom, not price. Specifically, the General Public License is designed to make sure that you have the freedom to give away or sell copies of free software, that you receive source code or can get it if you want it, that you can change the software or use pieces of it in new free programs; and that you know you can do these things. To protect your rights, we need to make restrictions that forbid anyone to deny you these rights or to ask you to surrender the rights. These restrictions translate to certain responsibilities for you if you distribute copies of the software, or if you modify it. For example, if you distribute copies of a such a program, whether gratis or for a fee, you must give the recipients all the rights that you have. You must make sure that they, too, receive or can get the source code. And you must tell them their rights. We protect your rights with two steps: (1) copyright the software, and (2) offer you this license which gives you legal permission to copy, distribute and/or modify the software. Also, for each author's protection and ours, we want to make certain that everyone understands that there is no warranty for this free software. If the software is modified by someone else and passed on, we want its recipients to know that what they have is not the original, so that any problems introduced by others will not reflect on the original authors' reputations. The precise terms and conditions for copying, distribution and modification follow. GNU GENERAL PUBLIC LICENSE TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION 0. This License Agreement applies to any program or other work which contains a notice placed by the copyright holder saying it may be distributed under the terms of this General Public License. The "Program", below, refers to any such program or work, and a "work based on the Program" means either the Program or any work containing the Program or a portion of it, either verbatim or with modifications. Each licensee is addressed as "you". 1. You may copy and distribute verbatim copies of the Program's source code as you receive it, in any medium, provided that you conspicuously and appropriately publish on each copy an appropriate copyright notice and disclaimer of warranty; keep intact all the notices that refer to this General Public License and to the absence of any warranty; and give any other recipients of the Program a copy of this General Public License along with the Program. You may charge a fee for the physical act of transferring a copy. 2. You may modify your copy or copies of the Program or any portion of it, and copy and distribute such modifications under the terms of Paragraph 1 above, provided that you also do the following: a) cause the modified files to carry prominent notices stating that you changed the files and the date of any change; and b) cause the whole of any work that you distribute or publish, that in whole or in part contains the Program or any part thereof, either with or without modifications, to be licensed at no charge to all third parties under the terms of this General Public License (except that you may choose to grant warranty protection to some or all third parties, at your option). c) If the modified program normally reads commands interactively when run, you must cause it, when started running for such interactive use in the simplest and most usual way, to print or display an announcement including an appropriate copyright notice and a notice that there is no warranty (or else, saying that you provide a warranty) and that users may redistribute the program under these conditions, and telling the user how to view a copy of this General Public License. d) You may charge a fee for the physical act of transferring a copy, and you may at your option offer warranty protection in exchange for a fee. Mere aggregation of another independent work with the Program (or its derivative) on a volume of a storage or distribution medium does not bring the other work under the scope of these terms. 3. You may copy and distribute the Program (or a portion or derivative of it, under Paragraph 2) in object code or executable form under the terms of Paragraphs 1 and 2 above provided that you also do one of the following: a) accompany it with the complete corresponding machine-readable source code, which must be distributed under the terms of Paragraphs 1 and 2 above; or, b) accompany it with a written offer, valid for at least three years, to give any third party free (except for a nominal charge for the cost of distribution) a complete machine-readable copy of the corresponding source code, to be distributed under the terms of Paragraphs 1 and 2 above; or, c) accompany it with the information you received as to where the corresponding source code may be obtained. (This alternative is allowed only for noncommercial distribution and only if you received the program in object code or executable form alone.) Source code for a work means the preferred form of the work for making modifications to it. For an executable file, complete source code means all the source code for all modules it contains; but, as a special exception, it need not include source code for modules which are standard libraries that accompany the operating system on which the executable file runs, or for standard header files or definitions files that accompany that operating system. 4. You may not copy, modify, sublicense, distribute or transfer the Program except as expressly provided under this General Public License. Any attempt otherwise to copy, modify, sublicense, distribute or transfer the Program is void, and will automatically terminate your rights to use the Program under this License. However, parties who have received copies, or rights to use copies, from you under this General Public License will not have their licenses terminated so long as such parties remain in full compliance. 5. By copying, distributing or modifying the Program (or any work based on the Program) you indicate your acceptance of this license to do so, and all its terms and conditions. 6. Each time you redistribute the Program (or any work based on the Program), the recipient automatically receives a license from the original licensor to copy, distribute or modify the Program subject to these terms and conditions. You may not impose any further restrictions on the recipients' exercise of the rights granted herein. 7. The Free Software Foundation may publish revised and/or new versions of the General Public License from time to time. Such new versions will be similar in spirit to the present version, but may differ in detail to address new problems or concerns. Each version is given a distinguishing version number. If the Program specifies a version number of the license which applies to it and "any later version", you have the option of following the terms and conditions either of that version or of any later version published by the Free Software Foundation. If the Program does not specify a version number of the license, you may choose any version ever published by the Free Software Foundation. 8. If you wish to incorporate parts of the Program into other free programs whose distribution conditions are different, write to the author to ask for permission. For software which is copyrighted by the Free Software Foundation, write to the Free Software Foundation; we sometimes make exceptions for this. Our decision will be guided by the two goals of preserving the free status of all derivatives of our free software and of promoting the sharing and reuse of software generally. NO WARRANTY 9. BECAUSE THE PROGRAM IS LICENSED FREE OF CHARGE, THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING, REPAIR OR CORRECTION. 10. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY AND/OR REDISTRIBUTE THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. END OF TERMS AND CONDITIONS Appendix: How to Apply These Terms to Your New Programs If you develop a new program, and you want it to be of the greatest possible use to humanity, the best way to achieve this is to make it free software which everyone can redistribute and change under these terms. To do so, attach the following notices to the program. It is safest to attach them to the start of each source file to most effectively convey the exclusion of warranty; and each file should have at least the "copyright" line and a pointer to where the full notice is found. Copyright (C) 19yy This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 1, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston MA 02110-1301 USA Also add information on how to contact you by electronic and paper mail. If the program is interactive, make it output a short notice like this when it starts in an interactive mode: Gnomovision version 69, Copyright (C) 19xx name of author Gnomovision comes with ABSOLUTELY NO WARRANTY; for details type `show w'. This is free software, and you are welcome to redistribute it under certain conditions; type `show c' for details. The hypothetical commands `show w' and `show c' should show the appropriate parts of the General Public License. Of course, the commands you use may be called something other than `show w' and `show c'; they could even be mouse-clicks or menu items--whatever suits your program. You should also get your employer (if you work as a programmer) or your school, if any, to sign a "copyright disclaimer" for the program, if necessary. Here a sample; alter the names: Yoyodyne, Inc., hereby disclaims all copyright interest in the program `Gnomovision' (a program to direct compilers to make passes at assemblers) written by James Hacker. , 1 April 1989 Ty Coon, President of Vice That's all there is to it! --- The Perl Artistic License 1.0 --- This software is Copyright (c) 2023 by Ricardo Signes. This is free software, licensed under: The Perl Artistic License 1.0 The "Artistic License" Preamble The intent of this document is to state the conditions under which a Package may be copied, such that the Copyright Holder maintains some semblance of artistic control over the development of the package, while giving the users of the package the right to use and distribute the Package in a more-or-less customary fashion, plus the right to make reasonable modifications. Definitions: "Package" refers to the collection of files distributed by the Copyright Holder, and derivatives of that collection of files created through textual modification. "Standard Version" refers to such a Package if it has not been modified, or has been modified in accordance with the wishes of the Copyright Holder as specified below. "Copyright Holder" is whoever is named in the copyright or copyrights for the package. "You" is you, if you're thinking about copying or distributing this Package. "Reasonable copying fee" is whatever you can justify on the basis of media cost, duplication charges, time of people involved, and so on. (You will not be required to justify it to the Copyright Holder, but only to the computing community at large as a market that must bear the fee.) "Freely Available" means that no fee is charged for the item itself, though there may be fees involved in handling the item. It also means that recipients of the item may redistribute it under the same conditions they received it. 1. You may make and give away verbatim copies of the source form of the Standard Version of this Package without restriction, provided that you duplicate all of the original copyright notices and associated disclaimers. 2. You may apply bug fixes, portability fixes and other modifications derived from the Public Domain or from the Copyright Holder. A Package modified in such a way shall still be considered the Standard Version. 3. You may otherwise modify your copy of this Package in any way, provided that you insert a prominent notice in each changed file stating how and when you changed that file, and provided that you do at least ONE of the following: a) place your modifications in the Public Domain or otherwise make them Freely Available, such as by posting said modifications to Usenet or an equivalent medium, or placing the modifications on a major archive site such as uunet.uu.net, or by allowing the Copyright Holder to include your modifications in the Standard Version of the Package. b) use the modified Package only within your corporation or organization. c) rename any non-standard executables so the names do not conflict with standard executables, which must also be provided, and provide a separate manual page for each non-standard executable that clearly documents how it differs from the Standard Version. d) make other distribution arrangements with the Copyright Holder. 4. You may distribute the programs of this Package in object code or executable form, provided that you do at least ONE of the following: a) distribute a Standard Version of the executables and library files, together with instructions (in the manual page or equivalent) on where to get the Standard Version. b) accompany the distribution with the machine-readable source of the Package with your modifications. c) give non-standard executables non-standard names, and clearly document the differences in manual pages (or equivalent), together with instructions on where to get the Standard Version. d) make other distribution arrangements with the Copyright Holder. 5. You may charge a reasonable copying fee for any distribution of this Package. You may charge any fee you choose for support of this Package. You may not charge a fee for this Package itself. However, you may distribute this Package in aggregate with other (possibly commercial) programs as part of a larger (possibly commercial) software distribution provided that you do not advertise this Package as a product of your own. You may embed this Package's interpreter within an executable of yours (by linking); this shall be construed as a mere form of aggregation, provided that the complete Standard Version of the interpreter is so embedded. 6. The scripts and library files supplied as input to or produced as output from the programs of this Package do not automatically fall under the copyright of this Package, but belong to whoever generated them, and may be sold commercially, and may be aggregated with this Package. If such scripts or library files are aggregated with this Package via the so-called "undump" or "unexec" methods of producing a binary executable image, then distribution of such an image shall neither be construed as a distribution of this Package nor shall it fall under the restrictions of Paragraphs 3 and 4, provided that you do not represent such an executable image as a Standard Version of this Package. 7. C subroutines (or comparably compiled subroutines in other languages) supplied by you and linked into this Package in order to emulate subroutines and variables of the language defined by this Package shall not be considered part of this Package, but are the equivalent of input as in Paragraph 6, provided these subroutines do not change the language in any way that would cause it to fail the regression tests for the language. 8. Aggregation of this Package with a commercial distribution is always permitted provided that the use of this Package is embedded; that is, when no overt attempt is made to make this Package's interfaces visible to the end user of the commercial distribution. Such use shall not be construed as a distribution of this Package. 9. The name of the Copyright Holder may not be used to endorse or promote products derived from this software without specific prior written permission. 10. THIS PACKAGE IS PROVIDED "AS IS" AND WITHOUT ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. The End Email-MIME-Kit-3.000008/Changes000644 000765 000024 00000007500 14474753533 015664 0ustar00rjbsstaff000000 000000 Revision history for Email-MIME-Kit 3.000008 2023-09-02 20:46:18-04:00 America/New_York - update packaging and metadata 3.000007 2023-01-09 20:33:45-05:00 America/New_York - update packaging and metadata - minimum required Perl is now v5.12 3.000006 2018-03-10 16:45:07-05:00 America/New_York - add some docs on cid_for (thanks, Kaitlyn Parkhurst!) 3.000005 2016-09-20 11:22:25-04:00 America/New_York - set up kit_reader and manifest_reader with a helper attribute instead of the weird and rarely-seen Moose "initializer" system 3.000004 2016-08-03 22:48:27-04:00 America/New_York - require a newer Email::MIME so we can rely on the header_raw method 3.000003 2016-08-03 09:08:35-04:00 America/New_York - manifest.json is now properly decoded while being read, so UTF-8 strings in the manifest.json are treated the same way as \u.... sequences. If you had been doubly-UTF-8-encoding your manifest.json to work around this bug, your code is now broken because my code is now fixed. 3.000002 2015-02-19 11:02:14-05:00 America/New_York - immutabilize more classes 3.000001 2014-12-01 14:10:12-05:00 America/New_York [BREAKING CHANGES] - content read from disk (templates, for example) is now decoded as UTF-8 if and only if the content type for which it is being used is text/* - for more information on this change, consult the "ENCODING" section of the documentation for Email::MIME::Kit [BUG FIXES] - non-text parts are no longer padded with CRLFs 2.102015 2014-11-02 08:59:04-05:00 America/New_York - read kit entries in binary mode for the sake of Win32 (thanks, Octavian Rasnita!) 2.102014 2014-06-06 08:24:52-04:00 America/New_York - break a circular reference in the assembler (thanks, Charlie Garrison) 2.102013 2013-08-12 21:32:01 America/New_York update bugtracker and repo only call _set_attachment_info when it is present 2.102012 2013-04-08 15:29:38 America/New_York make tests for header encoding less specific: the header must be encoded, but we don't mind if it's B or Q 2.102011 2012-07-25 10:58:12 America/New_York stop failing with changed crlf detection 2.102010 2010-07-20 15:00:43 America/Los_Angeles eliminate use of auto_deref on some private attributes 2.101960 2010-07-15 09:04:53 America/New_York improve the chances of correctly bracketing message-ids avoid re-setting already set message-ids 2.093070 2009-11-03 improve handling of header and body encoding 2.091920 2009-07-10 add missing (test) prereq Test::Deep fix cid_for callbacks to exclude the content-id brackets (RT 47787) (reported by Jason Taylor; thanks!) 2.091410 2009-05-20 documentation improvements now packaged by Dist::Zilla 2.004 2009-04-09 fix bug in standard assembler that prevented renderer override 2.003 2009-03-12 fix bug in subassembly creation; assembler couldn't be parameterized move the TestRenderer out of t/lib to let other dists rely on it 2.002 2009-03-09 make it possible to specify an alternate kit_reader in the manifest fix some bugs in core component initialization 2.001 2009-01-28 alternatives now get a default charset of utf-8 (needs more work) fix autoencode tests for pre-perl5-8.009's qr{}m 2.000 2009-01-16 begin total rewrite 0.010_02 2006-03-22 Refactor into ::Component and ::Component::Data Make it possible to change INCLUDE_PATH for Renderer::TT. 0.010 2006-03-06 First version, released on an unsuspecting internal network. Email-MIME-Kit-3.000008/MANIFEST000644 000765 000024 00000002504 14474753533 015521 0ustar00rjbsstaff000000 000000 # This file was automatically generated by Dist::Zilla::Plugin::Manifest v6.030. Changes LICENSE MANIFEST META.json META.yml Makefile.PL README dist.ini lib/Email/MIME/Kit.pm lib/Email/MIME/Kit/Assembler/Standard.pm lib/Email/MIME/Kit/KitReader/Dir.pm lib/Email/MIME/Kit/ManifestReader/JSON.pm lib/Email/MIME/Kit/ManifestReader/YAML.pm lib/Email/MIME/Kit/Renderer/TestRenderer.pm lib/Email/MIME/Kit/Role/Assembler.pm lib/Email/MIME/Kit/Role/Component.pm lib/Email/MIME/Kit/Role/KitReader.pm lib/Email/MIME/Kit/Role/ManifestDesugarer.pm lib/Email/MIME/Kit/Role/ManifestReader.pm lib/Email/MIME/Kit/Role/Renderer.pm lib/Email/MIME/Kit/Role/Validator.pm t/00-report-prereqs.dd t/00-report-prereqs.t t/alt-kit-reader.t t/assemble.t t/autoencode.t t/borg.t t/kits/alt-kit-reader.mkit/manifest.json t/kits/borg.mkit/manifest.json t/kits/encode-file.mkit/manifest.json t/kits/encode-file.mkit/plain.txt t/kits/encode.mkit/manifest.json t/kits/single.mkit/manifest.json t/kits/test.mkit/better-alternative.html t/kits/test.mkit/bogus-report.pdf t/kits/test.mkit/logo.jpg t/kits/test.mkit/manifest.json t/kits/test.mkit/manifest.yaml t/lib/Email/MIME/Kit/Assembler/Borg.pm t/lib/Email/MIME/Kit/ConstKit.pm t/lib/Email/MIME/Kit/Validator/Simplest.pm t/read-json-manifest.t t/single.t t/test-renderer.t xt/author/pod-syntax.t xt/release/changes_has_content.t Email-MIME-Kit-3.000008/t/000755 000765 000024 00000000000 14474753533 014632 5ustar00rjbsstaff000000 000000 Email-MIME-Kit-3.000008/xt/000755 000765 000024 00000000000 14474753533 015022 5ustar00rjbsstaff000000 000000 Email-MIME-Kit-3.000008/README000644 000765 000024 00000000562 14474753533 015252 0ustar00rjbsstaff000000 000000 This archive contains the distribution Email-MIME-Kit, version 3.000008: build messages from templates This software is copyright (c) 2023 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. This README file was generated by Dist::Zilla::Plugin::Readme v6.030. Email-MIME-Kit-3.000008/META.yml000644 000765 000024 00000030240 14474753533 015637 0ustar00rjbsstaff000000 000000 --- abstract: 'build messages from templates' author: - 'Ricardo Signes ' build_requires: ExtUtils::MakeMaker: '0' File::Spec: '0' Test::Deep: '0' Test::More: '0.96' lib: '0' strict: '0' utf8: '0' warnings: '0' configure_requires: ExtUtils::MakeMaker: '6.78' dynamic_config: 0 generated_by: 'Dist::Zilla version 6.030, CPAN::Meta::Converter version 2.150010' license: perl meta-spec: url: http://module-build.sourceforge.net/META-spec-v1.4.html version: '1.4' name: Email-MIME-Kit requires: Email::MIME: '1.930' Email::MIME::Creator: '0' Email::MessageID: '1.400' Encode: '0' File::Basename: '0' File::Spec: '0' JSON: '2' Module::Runtime: '0' Moose: '0.65' Moose::Role: '0' Moose::Util::TypeConstraints: '0' String::RewritePrefix: '0' YAML::XS: '0' perl: v5.20.0 resources: bugtracker: https://github.com/rjbs/Email-MIME-Kit/issues homepage: https://github.com/rjbs/Email-MIME-Kit repository: https://github.com/rjbs/Email-MIME-Kit.git version: '3.000008' x_Dist_Zilla: perl: version: '5.038000' plugins: - class: Dist::Zilla::Plugin::Git::GatherDir config: Dist::Zilla::Plugin::GatherDir: exclude_filename: [] exclude_match: [] follow_symlinks: 0 include_dotfiles: 0 prefix: '' prune_directory: [] root: . Dist::Zilla::Plugin::Git::GatherDir: include_untracked: 0 name: '@RJBS/Git::GatherDir' version: '2.048' - class: Dist::Zilla::Plugin::CheckPrereqsIndexed name: '@RJBS/CheckPrereqsIndexed' version: '0.022' - class: Dist::Zilla::Plugin::CheckExtraTests name: '@RJBS/CheckExtraTests' version: '0.029' - class: Dist::Zilla::Plugin::PromptIfStale config: Dist::Zilla::Plugin::PromptIfStale: check_all_plugins: 0 check_all_prereqs: 0 modules: - Dist::Zilla::PluginBundle::RJBS phase: build run_under_travis: 0 skip: [] name: '@RJBS/RJBS-Outdated' version: '0.058' - class: Dist::Zilla::Plugin::PromptIfStale config: Dist::Zilla::Plugin::PromptIfStale: check_all_plugins: 1 check_all_prereqs: 0 modules: [] phase: release run_under_travis: 0 skip: - Dist::Zilla::Plugin::RJBSMisc name: '@RJBS/CPAN-Outdated' version: '0.058' - class: Dist::Zilla::Plugin::PruneCruft name: '@RJBS/@Filter/PruneCruft' version: '6.030' - class: Dist::Zilla::Plugin::ManifestSkip name: '@RJBS/@Filter/ManifestSkip' version: '6.030' - class: Dist::Zilla::Plugin::MetaYAML name: '@RJBS/@Filter/MetaYAML' version: '6.030' - class: Dist::Zilla::Plugin::License name: '@RJBS/@Filter/License' version: '6.030' - class: Dist::Zilla::Plugin::Readme name: '@RJBS/@Filter/Readme' version: '6.030' - class: Dist::Zilla::Plugin::ExecDir name: '@RJBS/@Filter/ExecDir' version: '6.030' - class: Dist::Zilla::Plugin::ShareDir name: '@RJBS/@Filter/ShareDir' version: '6.030' - class: Dist::Zilla::Plugin::Manifest name: '@RJBS/@Filter/Manifest' version: '6.030' - class: Dist::Zilla::Plugin::TestRelease name: '@RJBS/@Filter/TestRelease' version: '6.030' - class: Dist::Zilla::Plugin::ConfirmRelease name: '@RJBS/@Filter/ConfirmRelease' version: '6.030' - class: Dist::Zilla::Plugin::UploadToCPAN name: '@RJBS/@Filter/UploadToCPAN' version: '6.030' - class: Dist::Zilla::Plugin::MakeMaker config: Dist::Zilla::Role::TestRunner: default_jobs: 9 name: '@RJBS/MakeMaker' version: '6.030' - class: Dist::Zilla::Plugin::AutoPrereqs name: '@RJBS/AutoPrereqs' version: '6.030' - class: Dist::Zilla::Plugin::Git::NextVersion config: Dist::Zilla::Plugin::Git::NextVersion: first_version: '0.001' version_by_branch: 1 version_regexp: (?^:^([0-9]+\.[0-9]+)$) Dist::Zilla::Role::Git::Repo: git_version: 2.40.1 repo_root: . name: '@RJBS/Git::NextVersion' version: '2.048' - class: Dist::Zilla::Plugin::PkgVersion name: '@RJBS/PkgVersion' version: '6.030' - class: Dist::Zilla::Plugin::MetaConfig name: '@RJBS/MetaConfig' version: '6.030' - class: Dist::Zilla::Plugin::MetaJSON name: '@RJBS/MetaJSON' version: '6.030' - class: Dist::Zilla::Plugin::NextRelease name: '@RJBS/NextRelease' version: '6.030' - class: Dist::Zilla::Plugin::Test::ChangesHasContent name: '@RJBS/Test::ChangesHasContent' version: '0.011' - class: Dist::Zilla::Plugin::PodSyntaxTests name: '@RJBS/PodSyntaxTests' version: '6.030' - class: Dist::Zilla::Plugin::Test::ReportPrereqs name: '@RJBS/Test::ReportPrereqs' version: '0.029' - class: Dist::Zilla::Plugin::Git::Remote::Check name: '@RJBS/Git::Remote::Check' version: 0.1.2 - class: Dist::Zilla::Plugin::Prereqs config: Dist::Zilla::Plugin::Prereqs: phase: test type: requires name: '@RJBS/TestMoreWithSubtests' version: '6.030' - class: Dist::Zilla::Plugin::PodWeaver config: Dist::Zilla::Plugin::PodWeaver: config_plugins: - '@RJBS' finder: - ':InstallModules' - ':PerlExecFiles' plugins: - class: Pod::Weaver::Plugin::EnsurePod5 name: '@CorePrep/EnsurePod5' version: '4.019' - class: Pod::Weaver::Plugin::H1Nester name: '@CorePrep/H1Nester' version: '4.019' - class: Pod::Weaver::Plugin::SingleEncoding name: '@RJBS/SingleEncoding' version: '4.019' - class: Pod::Weaver::Section::Name name: '@RJBS/Name' version: '4.019' - class: Pod::Weaver::Section::Version name: '@RJBS/Version' version: '4.019' - class: Pod::Weaver::Section::Region name: '@RJBS/Prelude' version: '4.019' - class: Pod::Weaver::Section::Generic name: '@RJBS/Synopsis' version: '4.019' - class: Pod::Weaver::Section::Generic name: '@RJBS/Description' version: '4.019' - class: Pod::Weaver::Section::Generic name: '@RJBS/Overview' version: '4.019' - class: Pod::Weaver::Section::Generic name: '@RJBS/Stability' version: '4.019' - class: Pod::Weaver::Section::GenerateSection name: '@RJBS/PerlSupport' version: '4.019' - class: Pod::Weaver::Section::Collect name: Attributes version: '4.019' - class: Pod::Weaver::Section::Collect name: Methods version: '4.019' - class: Pod::Weaver::Section::Collect name: Functions version: '4.019' - class: Pod::Weaver::Section::Leftovers name: '@RJBS/Leftovers' version: '4.019' - class: Pod::Weaver::Section::Region name: '@RJBS/postlude' version: '4.019' - class: Pod::Weaver::Section::Authors name: '@RJBS/Authors' version: '4.019' - class: Pod::Weaver::Section::Contributors name: '@RJBS/Contributors' version: '0.009' - class: Pod::Weaver::Section::Legal name: '@RJBS/Legal' version: '4.019' - class: Pod::Weaver::Plugin::Transformer name: '@RJBS/List' version: '4.019' name: '@RJBS/PodWeaver' version: '4.010' - class: Dist::Zilla::Plugin::RJBSMisc name: '@RJBS/RJBSMisc' version: '5.024' - class: Dist::Zilla::Plugin::GithubMeta name: '@RJBS/GithubMeta' version: '0.58' - class: Dist::Zilla::Plugin::Git::Check config: Dist::Zilla::Plugin::Git::Check: untracked_files: die Dist::Zilla::Role::Git::DirtyFiles: allow_dirty: - Changes - dist.ini allow_dirty_match: [] changelog: Changes Dist::Zilla::Role::Git::Repo: git_version: 2.40.1 repo_root: . name: '@RJBS/@Git/Check' version: '2.048' - class: Dist::Zilla::Plugin::Git::Commit config: Dist::Zilla::Plugin::Git::Commit: add_files_in: [] commit_msg: v%V%n%n%c signoff: 0 Dist::Zilla::Role::Git::DirtyFiles: allow_dirty: - Changes - dist.ini allow_dirty_match: [] changelog: Changes Dist::Zilla::Role::Git::Repo: git_version: 2.40.1 repo_root: . Dist::Zilla::Role::Git::StringFormatter: time_zone: local name: '@RJBS/@Git/Commit' version: '2.048' - class: Dist::Zilla::Plugin::Git::Tag config: Dist::Zilla::Plugin::Git::Tag: branch: ~ changelog: Changes signed: 0 tag: '3.000008' tag_format: '%v' tag_message: v%V Dist::Zilla::Role::Git::Repo: git_version: 2.40.1 repo_root: . Dist::Zilla::Role::Git::StringFormatter: time_zone: local name: '@RJBS/@Git/Tag' version: '2.048' - class: Dist::Zilla::Plugin::Git::Push config: Dist::Zilla::Plugin::Git::Push: push_to: - 'github :' remotes_must_exist: 0 Dist::Zilla::Role::Git::Repo: git_version: 2.40.1 repo_root: . name: '@RJBS/@Git/Push' version: '2.048' - class: Dist::Zilla::Plugin::Git::Contributors config: Dist::Zilla::Plugin::Git::Contributors: git_version: 2.40.1 include_authors: 0 include_releaser: 1 order_by: name paths: [] name: '@RJBS/Git::Contributors' version: '0.036' - class: Dist::Zilla::Plugin::Encoding name: Encoding version: '6.030' - class: Dist::Zilla::Plugin::FinderCode name: ':InstallModules' version: '6.030' - class: Dist::Zilla::Plugin::FinderCode name: ':IncModules' version: '6.030' - class: Dist::Zilla::Plugin::FinderCode name: ':TestFiles' version: '6.030' - class: Dist::Zilla::Plugin::FinderCode name: ':ExtraTestFiles' version: '6.030' - class: Dist::Zilla::Plugin::FinderCode name: ':ExecFiles' version: '6.030' - class: Dist::Zilla::Plugin::FinderCode name: ':PerlExecFiles' version: '6.030' - class: Dist::Zilla::Plugin::FinderCode name: ':ShareFiles' version: '6.030' - class: Dist::Zilla::Plugin::FinderCode name: ':MainModule' version: '6.030' - class: Dist::Zilla::Plugin::FinderCode name: ':AllFiles' version: '6.030' - class: Dist::Zilla::Plugin::FinderCode name: ':NoFiles' version: '6.030' zilla: class: Dist::Zilla::Dist::Builder config: is_trial: 0 version: '6.030' x_contributors: - 'Charlie Garrison ' - 'fREW Schmidt ' - 'hdp ' - 'Kaitlyn Parkhurst ' - 'Ricardo Signes ' x_generated_by_perl: v5.38.0 x_rjbs_perl_window: long-term x_serialization_backend: 'YAML::Tiny version 1.74' x_spdx_expression: 'Artistic-1.0-Perl OR GPL-1.0-or-later' Email-MIME-Kit-3.000008/lib/000755 000765 000024 00000000000 14474753533 015135 5ustar00rjbsstaff000000 000000 Email-MIME-Kit-3.000008/Makefile.PL000644 000765 000024 00000003672 14474753533 016351 0ustar00rjbsstaff000000 000000 # This file was automatically generated by Dist::Zilla::Plugin::MakeMaker v6.030. use strict; use warnings; use 5.020000; use ExtUtils::MakeMaker 6.78; my %WriteMakefileArgs = ( "ABSTRACT" => "build messages from templates", "AUTHOR" => "Ricardo Signes ", "CONFIGURE_REQUIRES" => { "ExtUtils::MakeMaker" => "6.78" }, "DISTNAME" => "Email-MIME-Kit", "LICENSE" => "perl", "MIN_PERL_VERSION" => "5.020000", "NAME" => "Email::MIME::Kit", "PREREQ_PM" => { "Email::MIME" => "1.930", "Email::MIME::Creator" => 0, "Email::MessageID" => "1.400", "Encode" => 0, "File::Basename" => 0, "File::Spec" => 0, "JSON" => 2, "Module::Runtime" => 0, "Moose" => "0.65", "Moose::Role" => 0, "Moose::Util::TypeConstraints" => 0, "String::RewritePrefix" => 0, "YAML::XS" => 0 }, "TEST_REQUIRES" => { "ExtUtils::MakeMaker" => 0, "File::Spec" => 0, "Test::Deep" => 0, "Test::More" => "0.96", "lib" => 0, "strict" => 0, "utf8" => 0, "warnings" => 0 }, "VERSION" => "3.000008", "test" => { "TESTS" => "t/*.t" } ); my %FallbackPrereqs = ( "Email::MIME" => "1.930", "Email::MIME::Creator" => 0, "Email::MessageID" => "1.400", "Encode" => 0, "ExtUtils::MakeMaker" => 0, "File::Basename" => 0, "File::Spec" => 0, "JSON" => 2, "Module::Runtime" => 0, "Moose" => "0.65", "Moose::Role" => 0, "Moose::Util::TypeConstraints" => 0, "String::RewritePrefix" => 0, "Test::Deep" => 0, "Test::More" => "0.96", "YAML::XS" => 0, "lib" => 0, "strict" => 0, "utf8" => 0, "warnings" => 0 ); unless ( eval { ExtUtils::MakeMaker->VERSION(6.63_03) } ) { delete $WriteMakefileArgs{TEST_REQUIRES}; delete $WriteMakefileArgs{BUILD_REQUIRES}; $WriteMakefileArgs{PREREQ_PM} = \%FallbackPrereqs; } delete $WriteMakefileArgs{CONFIGURE_REQUIRES} unless eval { ExtUtils::MakeMaker->VERSION(6.52) }; WriteMakefile(%WriteMakefileArgs); Email-MIME-Kit-3.000008/META.json000644 000765 000024 00000046062 14474753533 016020 0ustar00rjbsstaff000000 000000 { "abstract" : "build messages from templates", "author" : [ "Ricardo Signes " ], "dynamic_config" : 0, "generated_by" : "Dist::Zilla version 6.030, CPAN::Meta::Converter version 2.150010", "license" : [ "perl_5" ], "meta-spec" : { "url" : "http://search.cpan.org/perldoc?CPAN::Meta::Spec", "version" : 2 }, "name" : "Email-MIME-Kit", "prereqs" : { "configure" : { "requires" : { "ExtUtils::MakeMaker" : "6.78" } }, "develop" : { "requires" : { "Test::More" : "0", "Test::Pod" : "1.41", "strict" : "0", "warnings" : "0" } }, "runtime" : { "requires" : { "Email::MIME" : "1.930", "Email::MIME::Creator" : "0", "Email::MessageID" : "1.400", "Encode" : "0", "File::Basename" : "0", "File::Spec" : "0", "JSON" : "2", "Module::Runtime" : "0", "Moose" : "0.65", "Moose::Role" : "0", "Moose::Util::TypeConstraints" : "0", "String::RewritePrefix" : "0", "YAML::XS" : "0", "perl" : "v5.20.0" } }, "test" : { "recommends" : { "CPAN::Meta" : "2.120900" }, "requires" : { "ExtUtils::MakeMaker" : "0", "File::Spec" : "0", "Test::Deep" : "0", "Test::More" : "0.96", "lib" : "0", "strict" : "0", "utf8" : "0", "warnings" : "0" } } }, "release_status" : "stable", "resources" : { "bugtracker" : { "web" : "https://github.com/rjbs/Email-MIME-Kit/issues" }, "homepage" : "https://github.com/rjbs/Email-MIME-Kit", "repository" : { "type" : "git", "url" : "https://github.com/rjbs/Email-MIME-Kit.git", "web" : "https://github.com/rjbs/Email-MIME-Kit" } }, "version" : "3.000008", "x_Dist_Zilla" : { "perl" : { "version" : "5.038000" }, "plugins" : [ { "class" : "Dist::Zilla::Plugin::Git::GatherDir", "config" : { "Dist::Zilla::Plugin::GatherDir" : { "exclude_filename" : [], "exclude_match" : [], "follow_symlinks" : 0, "include_dotfiles" : 0, "prefix" : "", "prune_directory" : [], "root" : "." }, "Dist::Zilla::Plugin::Git::GatherDir" : { "include_untracked" : 0 } }, "name" : "@RJBS/Git::GatherDir", "version" : "2.048" }, { "class" : "Dist::Zilla::Plugin::CheckPrereqsIndexed", "name" : "@RJBS/CheckPrereqsIndexed", "version" : "0.022" }, { "class" : "Dist::Zilla::Plugin::CheckExtraTests", "name" : "@RJBS/CheckExtraTests", "version" : "0.029" }, { "class" : "Dist::Zilla::Plugin::PromptIfStale", "config" : { "Dist::Zilla::Plugin::PromptIfStale" : { "check_all_plugins" : 0, "check_all_prereqs" : 0, "modules" : [ "Dist::Zilla::PluginBundle::RJBS" ], "phase" : "build", "run_under_travis" : 0, "skip" : [] } }, "name" : "@RJBS/RJBS-Outdated", "version" : "0.058" }, { "class" : "Dist::Zilla::Plugin::PromptIfStale", "config" : { "Dist::Zilla::Plugin::PromptIfStale" : { "check_all_plugins" : 1, "check_all_prereqs" : 0, "modules" : [], "phase" : "release", "run_under_travis" : 0, "skip" : [ "Dist::Zilla::Plugin::RJBSMisc" ] } }, "name" : "@RJBS/CPAN-Outdated", "version" : "0.058" }, { "class" : "Dist::Zilla::Plugin::PruneCruft", "name" : "@RJBS/@Filter/PruneCruft", "version" : "6.030" }, { "class" : "Dist::Zilla::Plugin::ManifestSkip", "name" : "@RJBS/@Filter/ManifestSkip", "version" : "6.030" }, { "class" : "Dist::Zilla::Plugin::MetaYAML", "name" : "@RJBS/@Filter/MetaYAML", "version" : "6.030" }, { "class" : "Dist::Zilla::Plugin::License", "name" : "@RJBS/@Filter/License", "version" : "6.030" }, { "class" : "Dist::Zilla::Plugin::Readme", "name" : "@RJBS/@Filter/Readme", "version" : "6.030" }, { "class" : "Dist::Zilla::Plugin::ExecDir", "name" : "@RJBS/@Filter/ExecDir", "version" : "6.030" }, { "class" : "Dist::Zilla::Plugin::ShareDir", "name" : "@RJBS/@Filter/ShareDir", "version" : "6.030" }, { "class" : "Dist::Zilla::Plugin::Manifest", "name" : "@RJBS/@Filter/Manifest", "version" : "6.030" }, { "class" : "Dist::Zilla::Plugin::TestRelease", "name" : "@RJBS/@Filter/TestRelease", "version" : "6.030" }, { "class" : "Dist::Zilla::Plugin::ConfirmRelease", "name" : "@RJBS/@Filter/ConfirmRelease", "version" : "6.030" }, { "class" : "Dist::Zilla::Plugin::UploadToCPAN", "name" : "@RJBS/@Filter/UploadToCPAN", "version" : "6.030" }, { "class" : "Dist::Zilla::Plugin::MakeMaker", "config" : { "Dist::Zilla::Role::TestRunner" : { "default_jobs" : 9 } }, "name" : "@RJBS/MakeMaker", "version" : "6.030" }, { "class" : "Dist::Zilla::Plugin::AutoPrereqs", "name" : "@RJBS/AutoPrereqs", "version" : "6.030" }, { "class" : "Dist::Zilla::Plugin::Git::NextVersion", "config" : { "Dist::Zilla::Plugin::Git::NextVersion" : { "first_version" : "0.001", "version_by_branch" : 1, "version_regexp" : "(?^:^([0-9]+\\.[0-9]+)$)" }, "Dist::Zilla::Role::Git::Repo" : { "git_version" : "2.40.1", "repo_root" : "." } }, "name" : "@RJBS/Git::NextVersion", "version" : "2.048" }, { "class" : "Dist::Zilla::Plugin::PkgVersion", "name" : "@RJBS/PkgVersion", "version" : "6.030" }, { "class" : "Dist::Zilla::Plugin::MetaConfig", "name" : "@RJBS/MetaConfig", "version" : "6.030" }, { "class" : "Dist::Zilla::Plugin::MetaJSON", "name" : "@RJBS/MetaJSON", "version" : "6.030" }, { "class" : "Dist::Zilla::Plugin::NextRelease", "name" : "@RJBS/NextRelease", "version" : "6.030" }, { "class" : "Dist::Zilla::Plugin::Test::ChangesHasContent", "name" : "@RJBS/Test::ChangesHasContent", "version" : "0.011" }, { "class" : "Dist::Zilla::Plugin::PodSyntaxTests", "name" : "@RJBS/PodSyntaxTests", "version" : "6.030" }, { "class" : "Dist::Zilla::Plugin::Test::ReportPrereqs", "name" : "@RJBS/Test::ReportPrereqs", "version" : "0.029" }, { "class" : "Dist::Zilla::Plugin::Git::Remote::Check", "name" : "@RJBS/Git::Remote::Check", "version" : "0.1.2" }, { "class" : "Dist::Zilla::Plugin::Prereqs", "config" : { "Dist::Zilla::Plugin::Prereqs" : { "phase" : "test", "type" : "requires" } }, "name" : "@RJBS/TestMoreWithSubtests", "version" : "6.030" }, { "class" : "Dist::Zilla::Plugin::PodWeaver", "config" : { "Dist::Zilla::Plugin::PodWeaver" : { "config_plugins" : [ "@RJBS" ], "finder" : [ ":InstallModules", ":PerlExecFiles" ], "plugins" : [ { "class" : "Pod::Weaver::Plugin::EnsurePod5", "name" : "@CorePrep/EnsurePod5", "version" : "4.019" }, { "class" : "Pod::Weaver::Plugin::H1Nester", "name" : "@CorePrep/H1Nester", "version" : "4.019" }, { "class" : "Pod::Weaver::Plugin::SingleEncoding", "name" : "@RJBS/SingleEncoding", "version" : "4.019" }, { "class" : "Pod::Weaver::Section::Name", "name" : "@RJBS/Name", "version" : "4.019" }, { "class" : "Pod::Weaver::Section::Version", "name" : "@RJBS/Version", "version" : "4.019" }, { "class" : "Pod::Weaver::Section::Region", "name" : "@RJBS/Prelude", "version" : "4.019" }, { "class" : "Pod::Weaver::Section::Generic", "name" : "@RJBS/Synopsis", "version" : "4.019" }, { "class" : "Pod::Weaver::Section::Generic", "name" : "@RJBS/Description", "version" : "4.019" }, { "class" : "Pod::Weaver::Section::Generic", "name" : "@RJBS/Overview", "version" : "4.019" }, { "class" : "Pod::Weaver::Section::Generic", "name" : "@RJBS/Stability", "version" : "4.019" }, { "class" : "Pod::Weaver::Section::GenerateSection", "name" : "@RJBS/PerlSupport", "version" : "4.019" }, { "class" : "Pod::Weaver::Section::Collect", "name" : "Attributes", "version" : "4.019" }, { "class" : "Pod::Weaver::Section::Collect", "name" : "Methods", "version" : "4.019" }, { "class" : "Pod::Weaver::Section::Collect", "name" : "Functions", "version" : "4.019" }, { "class" : "Pod::Weaver::Section::Leftovers", "name" : "@RJBS/Leftovers", "version" : "4.019" }, { "class" : "Pod::Weaver::Section::Region", "name" : "@RJBS/postlude", "version" : "4.019" }, { "class" : "Pod::Weaver::Section::Authors", "name" : "@RJBS/Authors", "version" : "4.019" }, { "class" : "Pod::Weaver::Section::Contributors", "name" : "@RJBS/Contributors", "version" : "0.009" }, { "class" : "Pod::Weaver::Section::Legal", "name" : "@RJBS/Legal", "version" : "4.019" }, { "class" : "Pod::Weaver::Plugin::Transformer", "name" : "@RJBS/List", "version" : "4.019" } ] } }, "name" : "@RJBS/PodWeaver", "version" : "4.010" }, { "class" : "Dist::Zilla::Plugin::RJBSMisc", "name" : "@RJBS/RJBSMisc", "version" : "5.024" }, { "class" : "Dist::Zilla::Plugin::GithubMeta", "name" : "@RJBS/GithubMeta", "version" : "0.58" }, { "class" : "Dist::Zilla::Plugin::Git::Check", "config" : { "Dist::Zilla::Plugin::Git::Check" : { "untracked_files" : "die" }, "Dist::Zilla::Role::Git::DirtyFiles" : { "allow_dirty" : [ "Changes", "dist.ini" ], "allow_dirty_match" : [], "changelog" : "Changes" }, "Dist::Zilla::Role::Git::Repo" : { "git_version" : "2.40.1", "repo_root" : "." } }, "name" : "@RJBS/@Git/Check", "version" : "2.048" }, { "class" : "Dist::Zilla::Plugin::Git::Commit", "config" : { "Dist::Zilla::Plugin::Git::Commit" : { "add_files_in" : [], "commit_msg" : "v%V%n%n%c", "signoff" : 0 }, "Dist::Zilla::Role::Git::DirtyFiles" : { "allow_dirty" : [ "Changes", "dist.ini" ], "allow_dirty_match" : [], "changelog" : "Changes" }, "Dist::Zilla::Role::Git::Repo" : { "git_version" : "2.40.1", "repo_root" : "." }, "Dist::Zilla::Role::Git::StringFormatter" : { "time_zone" : "local" } }, "name" : "@RJBS/@Git/Commit", "version" : "2.048" }, { "class" : "Dist::Zilla::Plugin::Git::Tag", "config" : { "Dist::Zilla::Plugin::Git::Tag" : { "branch" : null, "changelog" : "Changes", "signed" : 0, "tag" : "3.000008", "tag_format" : "%v", "tag_message" : "v%V" }, "Dist::Zilla::Role::Git::Repo" : { "git_version" : "2.40.1", "repo_root" : "." }, "Dist::Zilla::Role::Git::StringFormatter" : { "time_zone" : "local" } }, "name" : "@RJBS/@Git/Tag", "version" : "2.048" }, { "class" : "Dist::Zilla::Plugin::Git::Push", "config" : { "Dist::Zilla::Plugin::Git::Push" : { "push_to" : [ "github :" ], "remotes_must_exist" : 0 }, "Dist::Zilla::Role::Git::Repo" : { "git_version" : "2.40.1", "repo_root" : "." } }, "name" : "@RJBS/@Git/Push", "version" : "2.048" }, { "class" : "Dist::Zilla::Plugin::Git::Contributors", "config" : { "Dist::Zilla::Plugin::Git::Contributors" : { "git_version" : "2.40.1", "include_authors" : 0, "include_releaser" : 1, "order_by" : "name", "paths" : [] } }, "name" : "@RJBS/Git::Contributors", "version" : "0.036" }, { "class" : "Dist::Zilla::Plugin::Encoding", "name" : "Encoding", "version" : "6.030" }, { "class" : "Dist::Zilla::Plugin::FinderCode", "name" : ":InstallModules", "version" : "6.030" }, { "class" : "Dist::Zilla::Plugin::FinderCode", "name" : ":IncModules", "version" : "6.030" }, { "class" : "Dist::Zilla::Plugin::FinderCode", "name" : ":TestFiles", "version" : "6.030" }, { "class" : "Dist::Zilla::Plugin::FinderCode", "name" : ":ExtraTestFiles", "version" : "6.030" }, { "class" : "Dist::Zilla::Plugin::FinderCode", "name" : ":ExecFiles", "version" : "6.030" }, { "class" : "Dist::Zilla::Plugin::FinderCode", "name" : ":PerlExecFiles", "version" : "6.030" }, { "class" : "Dist::Zilla::Plugin::FinderCode", "name" : ":ShareFiles", "version" : "6.030" }, { "class" : "Dist::Zilla::Plugin::FinderCode", "name" : ":MainModule", "version" : "6.030" }, { "class" : "Dist::Zilla::Plugin::FinderCode", "name" : ":AllFiles", "version" : "6.030" }, { "class" : "Dist::Zilla::Plugin::FinderCode", "name" : ":NoFiles", "version" : "6.030" } ], "zilla" : { "class" : "Dist::Zilla::Dist::Builder", "config" : { "is_trial" : 0 }, "version" : "6.030" } }, "x_contributors" : [ "Charlie Garrison ", "fREW Schmidt ", "hdp ", "Kaitlyn Parkhurst ", "Ricardo Signes " ], "x_generated_by_perl" : "v5.38.0", "x_rjbs_perl_window" : "long-term", "x_serialization_backend" : "Cpanel::JSON::XS version 4.36", "x_spdx_expression" : "Artistic-1.0-Perl OR GPL-1.0-or-later" } Email-MIME-Kit-3.000008/dist.ini000644 000765 000024 00000000415 14474753533 016033 0ustar00rjbsstaff000000 000000 name = Email-MIME-Kit author = Ricardo Signes license = Perl_5 copyright_holder = Ricardo Signes [@RJBS] perl-window = long-term [Encoding] filename = t/kits/test.mkit/bogus-report.pdf filename = t/kits/test.mkit/logo.jpg encoding = bytes Email-MIME-Kit-3.000008/lib/Email/000755 000765 000024 00000000000 14474753533 016164 5ustar00rjbsstaff000000 000000 Email-MIME-Kit-3.000008/lib/Email/MIME/000755 000765 000024 00000000000 14474753533 016713 5ustar00rjbsstaff000000 000000 Email-MIME-Kit-3.000008/lib/Email/MIME/Kit.pm000644 000765 000024 00000032176 14474753533 020011 0ustar00rjbsstaff000000 000000 package Email::MIME::Kit 3.000008; # ABSTRACT: build messages from templates use v5.20.0; use Moose 0.65; # maybe_type use Moose::Util::TypeConstraints; use Email::MIME 1.930; # header_raw use Email::MessageID 1.400; # for in_brackets method use Module::Runtime (); use String::RewritePrefix; #pod =head1 SYNOPSIS #pod #pod use Email::MIME::Kit; #pod #pod my $kit = Email::MIME::Kit->new({ source => 'mkits/sample.mkit' }); #pod #pod my $email = $kit->assemble({ #pod account => $new_signup, #pod verification_code => $token, #pod ... and any other template vars ... #pod }); #pod #pod $transport->send($email, { ... }); #pod #pod =head1 DESCRIPTION #pod #pod Email::MIME::Kit is a templating system for email messages. Instead of trying #pod to be yet another templating system for chunks of text, it makes it easy to #pod build complete email messages. #pod #pod It handles the construction of multipart messages, text and HTML alternatives, #pod attachments, interpart linking, string encoding, and parameter validation. #pod #pod Although nearly every part of Email::MIME::Kit is a replaceable component, the #pod stock configuration is probably enough for most use. A message kit will be #pod stored as a directory that might look like this: #pod #pod sample.mkit/ #pod manifest.json #pod body.txt #pod body.html #pod logo.jpg #pod #pod The manifest file tells Email::MIME::Kit how to put it all together, and might #pod look something like this: #pod #pod { #pod "renderer": "TT", #pod "header": [ #pod { "From": "WY Corp " }, #pod { "Subject": "Welcome aboard, [% recruit.name %]!" } #pod ], #pod "alternatives": [ #pod { "type": "text/plain", "path": "body.txt" }, #pod { #pod "type": "text/html", #pod "path": "body.html", #pod "container_type": "multipart/related", #pod "attachments": [ { "type": "image/jpeg", "path": "logo.jpg" } ] #pod } #pod ] #pod } #pod #pod B may be accessed with the function C, for example to include the above logo.jpg: #pod #pod #pod #pod B the assembly of HTML documents as multipart/related bodies may #pod be simplified with an alternate assembler in the future. #pod #pod The above manifest would build a multipart alternative message. GUI mail #pod clients would see a rendered HTML document with the logo graphic visible from #pod the attachment. Text mail clients would see the plaintext. #pod #pod Both the HTML and text parts would be rendered using the named renderer, which #pod here is Template-Toolkit. #pod #pod The message would be assembled and returned as an Email::MIME object, just as #pod easily as suggested in the L above. #pod #pod =head1 ENCODING ISSUES #pod #pod In general, "it should all just work" ... starting in version v3. #pod #pod Email::MIME::Kit assumes that any file read for the purpose of becoming a #pod C-type part is encoded in UTF-8. It will decode them and work with #pod their contents as text strings. Renderers will be passed text strings to #pod render, and so on. This, further, means that strings passed to the C #pod method for use in rendering should also be text strings. #pod #pod In older versions of Email::MIME::Kit, files read from disk were read in raw #pod mode and then handled as octet strings. Meanwhile, the manifest's contents #pod (and, thus, any templates stored as strings in the manifest) were decoded into #pod text strings. This could lead to serious problems. For example: the #pod F file might contain: #pod #pod "header": [ #pod { "Subject": "Message for [% customer_name %]" }, #pod ... #pod ] #pod #pod ...while a template on disk might contain: #pod #pod Dear [% customer_name %], #pod ... #pod #pod If the customer's name isn't ASCII, there was no right way to pass it in. The #pod template on disk would expect UTF-8, but the template in the manifest would #pod expect Unicode text. Users prior to v3 may have taken strange steps to get #pod around this problem, understanding that some templates were treated differently #pod than others. This means that some review of kits is in order when upgrading #pod from earlier versions of Email::MIME::Kit. #pod #pod =cut has source => (is => 'ro', required => 1); has manifest => (reader => 'manifest', writer => '_set_manifest'); my @auto_attrs = ( [ manifest_reader => ManifestReader => JSON => [ 'read_manifest' ] ], [ kit_reader => KitReader => Dir => [ 'get_kit_entry', 'get_decoded_kit_entry' ] ], ); for my $tuple (@auto_attrs) { my ($attr, $role, $default, $handles) = @$tuple; my $seed = "_${attr}_seed"; my $base_ns = "Email::MIME::Kit::$role"; my $role_pkg = "Email::MIME::Kit::Role::$role"; has $seed => ( is => 'ro', init_arg => $attr, default => "=Email::MIME::Kit::${role}::$default", ); has $attr => ( reader => $attr, writer => "_set_$attr", isa => role_type($role_pkg), init_arg => undef, lazy => 1, default => sub { my ($self) = @_; my $comp = $self->_build_component($base_ns, $self->$seed); return $comp; }, handles => $handles, ); } has validator => ( is => 'ro', isa => maybe_type(role_type('Email::MIME::Kit::Role::Validator')), lazy => 1, # is this really needed? -- rjbs, 2009-01-20 default => sub { my ($self) = @_; return $self->_build_component( 'Email::MIME::Kit::Validator', $self->manifest->{validator}, ); }, ); sub _build_component { my ($self, $base_namespace, $entry, $extra) = @_; return unless $entry; my ($class, $arg); if (ref $entry) { ($class, $arg) = @$entry; } else { ($class, $arg) = ($entry, {}); } $class = String::RewritePrefix->rewrite( { '=' => '', '' => ($base_namespace . q{::}) }, $class, ); Module::Runtime::require_module($class); $class->new({ %$arg, %{ $extra || {} }, kit => $self }); } sub BUILD { my ($self) = @_; my $manifest = $self->read_manifest; $self->_set_manifest($manifest); if ($manifest->{kit_reader}) { my $kit_reader = $self->_build_component( 'Email::MIME::Kit::KitReader', $manifest->{kit_reader}, ); $self->_set_kit_reader($kit_reader); } $self->_setup_default_renderer; } sub _setup_default_renderer { my ($self) = @_; return unless my $renderer = $self->_build_component( 'Email::MIME::Kit::Renderer', $self->manifest->{renderer}, ); $self->_set_default_renderer($renderer); } sub assemble { my ($self, $stash) = @_; $self->validator->validate($stash) if $self->validator; # Do I really need or want to do this? Anything that alters the stash should # do so via localization. -- rjbs, 2009-01-20 my $copied_stash = { %{ $stash || {} } }; my $email = $self->assembler->assemble($copied_stash); my $header = $email->header('Message-ID'); $email->header_set('Message-ID' => $self->_generate_content_id->in_brackets) unless defined $header; return $email; } sub kit { $_[0] } sub _assembler_from_manifest { my ($self, $manifest, $parent) = @_; $self->_build_component( 'Email::MIME::Kit::Assembler', $manifest->{assembler} || 'Standard', { manifest => $manifest, parent => $parent, }, ); } has default_renderer => ( reader => 'default_renderer', writer => '_set_default_renderer', isa => role_type('Email::MIME::Kit::Role::Renderer'), ); has assembler => ( reader => 'assembler', isa => role_type('Email::MIME::Kit::Role::Assembler'), required => 1, lazy => 1, default => sub { my ($self) = @_; return $self->_assembler_from_manifest($self->manifest); } ); sub _generate_content_id { Email::MessageID->new; } #pod =head1 AUTHOR #pod #pod This code was written in 2009 by Ricardo SIGNES. It was based on a previous #pod implementation by Hans Dieter Pearcey written in 2006. #pod #pod The development of this code was sponsored by Pobox.com. Thanks, Pobox! #pod #pod =cut no Moose::Util::TypeConstraints; no Moose; __PACKAGE__->meta->make_immutable; 1; __END__ =pod =encoding UTF-8 =head1 NAME Email::MIME::Kit - build messages from templates =head1 VERSION version 3.000008 =head1 SYNOPSIS use Email::MIME::Kit; my $kit = Email::MIME::Kit->new({ source => 'mkits/sample.mkit' }); my $email = $kit->assemble({ account => $new_signup, verification_code => $token, ... and any other template vars ... }); $transport->send($email, { ... }); =head1 DESCRIPTION Email::MIME::Kit is a templating system for email messages. Instead of trying to be yet another templating system for chunks of text, it makes it easy to build complete email messages. It handles the construction of multipart messages, text and HTML alternatives, attachments, interpart linking, string encoding, and parameter validation. Although nearly every part of Email::MIME::Kit is a replaceable component, the stock configuration is probably enough for most use. A message kit will be stored as a directory that might look like this: sample.mkit/ manifest.json body.txt body.html logo.jpg The manifest file tells Email::MIME::Kit how to put it all together, and might look something like this: { "renderer": "TT", "header": [ { "From": "WY Corp " }, { "Subject": "Welcome aboard, [% recruit.name %]!" } ], "alternatives": [ { "type": "text/plain", "path": "body.txt" }, { "type": "text/html", "path": "body.html", "container_type": "multipart/related", "attachments": [ { "type": "image/jpeg", "path": "logo.jpg" } ] } ] } B may be accessed with the function C, for example to include the above logo.jpg: B the assembly of HTML documents as multipart/related bodies may be simplified with an alternate assembler in the future. The above manifest would build a multipart alternative message. GUI mail clients would see a rendered HTML document with the logo graphic visible from the attachment. Text mail clients would see the plaintext. Both the HTML and text parts would be rendered using the named renderer, which here is Template-Toolkit. The message would be assembled and returned as an Email::MIME object, just as easily as suggested in the L above. =head1 PERL VERSION This library should run on perls released even a long time ago. It should work on any version of perl released in the last five years. Although it may work on older versions of perl, no guarantee is made that the minimum required version will not be increased. The version may be increased for any reason, and there is no promise that patches will be accepted to lower the minimum required perl. =head1 ENCODING ISSUES In general, "it should all just work" ... starting in version v3. Email::MIME::Kit assumes that any file read for the purpose of becoming a C-type part is encoded in UTF-8. It will decode them and work with their contents as text strings. Renderers will be passed text strings to render, and so on. This, further, means that strings passed to the C method for use in rendering should also be text strings. In older versions of Email::MIME::Kit, files read from disk were read in raw mode and then handled as octet strings. Meanwhile, the manifest's contents (and, thus, any templates stored as strings in the manifest) were decoded into text strings. This could lead to serious problems. For example: the F file might contain: "header": [ { "Subject": "Message for [% customer_name %]" }, ... ] ...while a template on disk might contain: Dear [% customer_name %], ... If the customer's name isn't ASCII, there was no right way to pass it in. The template on disk would expect UTF-8, but the template in the manifest would expect Unicode text. Users prior to v3 may have taken strange steps to get around this problem, understanding that some templates were treated differently than others. This means that some review of kits is in order when upgrading from earlier versions of Email::MIME::Kit. =head1 AUTHOR This code was written in 2009 by Ricardo SIGNES. It was based on a previous implementation by Hans Dieter Pearcey written in 2006. The development of this code was sponsored by Pobox.com. Thanks, Pobox! =head1 AUTHOR Ricardo Signes =head1 CONTRIBUTORS =for stopwords Charlie Garrison fREW Schmidt hdp Kaitlyn Parkhurst Ricardo Signes =over 4 =item * Charlie Garrison =item * fREW Schmidt =item * hdp =item * Kaitlyn Parkhurst =item * Ricardo Signes =back =head1 COPYRIGHT AND LICENSE This software is copyright (c) 2023 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. =cut Email-MIME-Kit-3.000008/lib/Email/MIME/Kit/000755 000765 000024 00000000000 14474753533 017442 5ustar00rjbsstaff000000 000000 Email-MIME-Kit-3.000008/lib/Email/MIME/Kit/Renderer/000755 000765 000024 00000000000 14474753533 021210 5ustar00rjbsstaff000000 000000 Email-MIME-Kit-3.000008/lib/Email/MIME/Kit/Role/000755 000765 000024 00000000000 14474753533 020343 5ustar00rjbsstaff000000 000000 Email-MIME-Kit-3.000008/lib/Email/MIME/Kit/Assembler/000755 000765 000024 00000000000 14474753533 021357 5ustar00rjbsstaff000000 000000 Email-MIME-Kit-3.000008/lib/Email/MIME/Kit/KitReader/000755 000765 000024 00000000000 14474753533 021314 5ustar00rjbsstaff000000 000000 Email-MIME-Kit-3.000008/lib/Email/MIME/Kit/ManifestReader/000755 000765 000024 00000000000 14474753533 022333 5ustar00rjbsstaff000000 000000 Email-MIME-Kit-3.000008/lib/Email/MIME/Kit/ManifestReader/YAML.pm000644 000765 000024 00000002554 14474753533 023441 0ustar00rjbsstaff000000 000000 package Email::MIME::Kit::ManifestReader::YAML 3.000008; # ABSTRACT: read manifest.yaml files use v5.20.0; use Moose; with 'Email::MIME::Kit::Role::ManifestReader', 'Email::MIME::Kit::Role::ManifestDesugarer'; use YAML::XS (); sub read_manifest { my ($self) = @_; my $yaml_ref = $self->kit->kit_reader->get_kit_entry('manifest.yaml'); # YAML::XS is documented as expecting UTF-8 bytes, which we give it. my ($content) = YAML::XS::Load($$yaml_ref); return $content; } no Moose; __PACKAGE__->meta->make_immutable; 1; __END__ =pod =encoding UTF-8 =head1 NAME Email::MIME::Kit::ManifestReader::YAML - read manifest.yaml files =head1 VERSION version 3.000008 =head1 PERL VERSION This library should run on perls released even a long time ago. It should work on any version of perl released in the last five years. Although it may work on older versions of perl, no guarantee is made that the minimum required version will not be increased. The version may be increased for any reason, and there is no promise that patches will be accepted to lower the minimum required perl. =head1 AUTHOR Ricardo Signes =head1 COPYRIGHT AND LICENSE This software is copyright (c) 2023 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. =cut Email-MIME-Kit-3.000008/lib/Email/MIME/Kit/ManifestReader/JSON.pm000644 000765 000024 00000002423 14474753533 023443 0ustar00rjbsstaff000000 000000 package Email::MIME::Kit::ManifestReader::JSON 3.000008; # ABSTRACT: read manifest.json files use v5.20.0; use Moose; with 'Email::MIME::Kit::Role::ManifestReader', 'Email::MIME::Kit::Role::ManifestDesugarer'; use JSON 2; sub read_manifest { my ($self) = @_; my $json_ref = $self->kit->kit_reader->get_kit_entry('manifest.json'); my $content = JSON->new->utf8->decode($$json_ref); } no Moose; __PACKAGE__->meta->make_immutable; 1; __END__ =pod =encoding UTF-8 =head1 NAME Email::MIME::Kit::ManifestReader::JSON - read manifest.json files =head1 VERSION version 3.000008 =head1 PERL VERSION This library should run on perls released even a long time ago. It should work on any version of perl released in the last five years. Although it may work on older versions of perl, no guarantee is made that the minimum required version will not be increased. The version may be increased for any reason, and there is no promise that patches will be accepted to lower the minimum required perl. =head1 AUTHOR Ricardo Signes =head1 COPYRIGHT AND LICENSE This software is copyright (c) 2023 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. =cut Email-MIME-Kit-3.000008/lib/Email/MIME/Kit/KitReader/Dir.pm000644 000765 000024 00000002527 14474753533 022376 0ustar00rjbsstaff000000 000000 package Email::MIME::Kit::KitReader::Dir 3.000008; # ABSTRACT: read kit entries out of a directory use v5.20.0; use Moose; with 'Email::MIME::Kit::Role::KitReader'; use File::Spec; # cache sometimes sub get_kit_entry { my ($self, $path) = @_; my $fullpath = File::Spec->catfile($self->kit->source, $path); open my $fh, '<:raw', $fullpath or die "can't open $fullpath for reading: $!"; my $content = do { local $/; <$fh> }; return \$content; } no Moose; __PACKAGE__->meta->make_immutable; 1; __END__ =pod =encoding UTF-8 =head1 NAME Email::MIME::Kit::KitReader::Dir - read kit entries out of a directory =head1 VERSION version 3.000008 =head1 PERL VERSION This library should run on perls released even a long time ago. It should work on any version of perl released in the last five years. Although it may work on older versions of perl, no guarantee is made that the minimum required version will not be increased. The version may be increased for any reason, and there is no promise that patches will be accepted to lower the minimum required perl. =head1 AUTHOR Ricardo Signes =head1 COPYRIGHT AND LICENSE This software is copyright (c) 2023 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. =cut Email-MIME-Kit-3.000008/lib/Email/MIME/Kit/Assembler/Standard.pm000644 000765 000024 00000024710 14474753533 023461 0ustar00rjbsstaff000000 000000 package Email::MIME::Kit::Assembler::Standard 3.000008; # ABSTRACT: the standard kit assembler use v5.20.0; use Moose; use Moose::Util::TypeConstraints; #pod =head1 WARNING #pod #pod Email::MIME::Kit::Assembler::Standard works well, but is poorly decomposed, #pod internally. Its methods may change substantially in the future, so relying on #pod it as a base class is a bad idea. #pod #pod Because I rely on it would be so useful, its behaviors will in #pod the future be more reliable or factored out into roles. Until then, be #pod careful. #pod #pod =cut with 'Email::MIME::Kit::Role::Assembler'; use Email::MIME::Creator; use Encode (); use File::Basename; sub BUILD { my ($self) = @_; $self->_setup_content_ids; $self->_pick_and_set_renderer; $self->_build_subassemblies; } has parent => ( is => 'ro', isa => maybe_type(role_type('Email::MIME::Kit::Role::Assembler')), weak_ref => 1, ); has renderer => ( reader => 'renderer', writer => '_set_renderer', clearer => '_unset_renderer', isa => maybe_type(role_type('Email::MIME::Kit::Role::Renderer')), init_arg => undef, ); sub assemble { my ($self, $stash) = @_; my $manifest = $self->manifest; my $has_body = defined $manifest->{body}; my $has_path = defined $manifest->{path}; my $has_alts = @{ $manifest->{alternatives} || [] }; my $has_att = @{ $manifest->{attachments} || [] }; Carp::croak("neither body, path, nor alternatives provided") unless $has_body or $has_path or $has_alts; Carp::croak("you must provide only one of body, path, or alternatives") unless (grep {$_} $has_body, $has_path, $has_alts) == 1; my $assembly_method = $has_body ? '_assemble_from_manifest_body' : $has_path ? '_assemble_from_kit' : $has_alts ? '_assemble_mp_alt' : confess "unreachable code is a mistake"; $self->$assembly_method($stash); } sub _assemble_from_string { my ($self, $body, $stash) = @_; my %attr = %{ $self->manifest->{attributes} || {} }; $attr{content_type} ||= 'text/plain'; if ($attr{content_type} =~ m{^text/}) { # I really shouldn't have to do this, but I'm not going to go screw around # with @#$@#$ Email::Simple/MIME just to deal with it right now. -- rjbs, # 2009-01-19 $body .= "\x0d\x0a" unless $body =~ /[\x0d|\x0a]\z/; } my $body_ref = $self->render(\$body, $stash); my $email = $self->_contain_attachments({ attributes => \%attr, header => $self->manifest->{header}, stash => $stash, body => $$body_ref, container_type => $self->manifest->{container_type}, }); } sub _assemble_from_manifest_body { my ($self, $stash) = @_; $self->_assemble_from_string( $self->manifest->{body}, $stash, ); } sub _assemble_from_kit { my ($self, $stash) = @_; my $type = $self->manifest->{attributes}{content_type} || 'text/plain'; my $method = $type =~ m{^text/} ? 'get_decoded_kit_entry' : 'get_kit_entry'; my $body_ref = $self->kit->$method($self->manifest->{path}); $self->_assemble_from_string($$body_ref, $stash); } sub _assemble_mp_alt { my ($self, $stash) = @_; my %attr = %{ $self->manifest->{attributes} || {} }; $attr{content_type} = $attr{content_type} || 'multipart/alternative'; if ($attr{content_type} !~ qr{\Amultipart/alternative\b}) { confess "illegal content_type for mail with alts: $attr{content_type}"; } my $parts = [ map { $_->assemble($stash) } @{ $self->_alternatives } ]; my $email = $self->_contain_attachments({ attributes => \%attr, header => $self->manifest->{header}, stash => $stash, parts => $parts, }); } sub _renderer_from_override { my ($self, $override) = @_; # Allow an explicit undef to mean "no rendering is to be done." -- rjbs, # 2009-01-19 return undef unless defined $override; return $self->kit->_build_component( 'Email::MIME::Kit::Renderer', $override, ); } sub _pick_and_set_renderer { my ($self) = @_; # "renderer" entry at top-level sets the kit default_renderer, so trying to # look at the "renderer" entry at top-level for an override is nonsensical # -- rjbs, 2009-01-22 unless ($self->parent) { $self->_set_renderer($self->kit->default_renderer); return; } # If there's no override, we just use the parent. We don't need to worry # about the "there is no parent" case, because that was handled above. -- # rjbs, 2009-01-22 unless (exists $self->manifest->{renderer}) { $self->_set_renderer($self->parent->renderer); return; } my $renderer = $self->_renderer_from_override($self->manifest->{renderer}); $self->_set_renderer($renderer); } has manifest => ( is => 'ro', required => 1, ); has [ qw(_attachments _alternatives) ] => ( is => 'ro', isa => 'ArrayRef', init_arg => undef, default => sub { [] }, ); has _body => ( reader => 'body', writer => '_set_body', ); sub _build_subassemblies { my ($self) = @_; if (my $body = $self->manifest->{body}) { $self->_set_body($body); } for my $attach (@{ $self->manifest->{attachments} || [] }) { my $assembler = $self->kit->_assembler_from_manifest($attach, $self); $assembler->_set_attachment_info($attach) if $assembler->can('_set_attachment_info'); push @{ $self->_attachments }, $assembler; } for my $alt (@{ $self->manifest->{alternatives} || [] }) { push @{ $self->_alternatives }, $self->kit->_assembler_from_manifest($alt, $self); } } sub _set_attachment_info { my ($self, $manifest) = @_; my $attr = $manifest->{attributes} ||= {}; $attr->{encoding} = 'base64' unless exists $attr->{encoding}; $attr->{disposition} = 'attachment' unless exists $attr->{disposition}; unless (exists $attr->{filename}) { my $filename; ($filename) = File::Basename::fileparse($manifest->{path}) if $manifest->{path}; # XXX: Steal the attachment-name-generator from Email::MIME::Modifier, or # something. -- rjbs, 2009-01-20 $filename ||= "unknown-attachment"; $attr->{filename} = $filename; } } sub render { my ($self, $input_ref, $stash) = @_; local $stash->{cid_for} = sub { $self->cid_for_path($_[0]) }; return $input_ref unless my $renderer = $self->renderer; return $renderer->render($input_ref, $stash); } sub _prep_header { my ($self, $header, $stash) = @_; my @done_header; for my $entry (@$header) { confess "no field name candidates" unless my (@hval) = grep { /^[^:]/ } keys %$entry; confess "multiple field name candidates: @hval" if @hval > 1; my $value = $entry->{ $hval[ 0 ] }; if (ref $value) { my ($v, $p) = @$value; $value = join q{; }, $v, map { "$_=$p->{$_}" } keys %$p; } else { # I don't think I need to bother with $self->render, which will set up # the cid_for callback. Honestly, who is going to be referencing a # content-id from a header? Let's hope I never find out... -- rjbs, # 2009-01-22 my $renderer = exists $entry->{':renderer'} ? $self->_renderer_from_override($entry->{':renderer'}) : $self->renderer; $value = ${ $renderer->render(\$value, $stash) } if defined $renderer; } push @done_header, $hval[0] => $value; } return \@done_header; } sub _contain_attachments { my ($self, $arg) = @_; my @attachments = @{ $self->_attachments }; my $header = $self->_prep_header($arg->{header}, $arg->{stash}); my $ct = $arg->{container_type}; my %attr = %{ $arg->{attributes} }; my $body_type = 'body'; if ($attr{content_type} =~ m{^text/}) { $body_type = 'body_str'; $attr{encoding} ||= 'quoted-printable'; $attr{charset} ||= 'UTF-8' } elsif (($arg->{body} || '') =~ /\P{ASCII}/) { $attr{encoding} ||= 'base64'; } unless (@attachments) { confess "container_type given for single-part assembly" if $ct; return Email::MIME->create( attributes => \%attr, header_str => $header, $body_type => $arg->{body}, parts => $arg->{parts}, ); } my $email = Email::MIME->create( attributes => \%attr, $body_type => $arg->{body}, parts => $arg->{parts}, ); my @att_parts = map { $_->assemble($arg->{stash}) } @attachments; my $container = Email::MIME->create( attributes => { content_type => ($ct || 'multipart/mixed') }, header_str => $header, parts => [ $email, @att_parts ], ); return $container; } has _cid_registry => ( is => 'ro', init_arg => undef, default => sub { { } }, ); sub cid_for_path { my ($self, $path) = @_; my $cid = $self->_cid_registry->{ $path }; confess "no content-id for path $path" unless $cid; return $cid; } sub _setup_content_ids { my ($self) = @_; for my $att (@{ $self->manifest->{attachments} || [] }) { next unless $att->{path}; for my $header (@{ $att->{header} }) { my ($header) = grep { /^[^:]/ } keys %$header; Carp::croak("attachments must not supply content-id") if lc $header eq 'content-id'; } my $cid = $self->kit->_generate_content_id; push @{ $att->{header} }, { 'Content-Id' => $cid->in_brackets, ':renderer' => undef, }; $self->_cid_registry->{ $att->{path} } = $cid->as_string; } } no Moose::Util::TypeConstraints; no Moose; __PACKAGE__->meta->make_immutable; 1; __END__ =pod =encoding UTF-8 =head1 NAME Email::MIME::Kit::Assembler::Standard - the standard kit assembler =head1 VERSION version 3.000008 =head1 PERL VERSION This library should run on perls released even a long time ago. It should work on any version of perl released in the last five years. Although it may work on older versions of perl, no guarantee is made that the minimum required version will not be increased. The version may be increased for any reason, and there is no promise that patches will be accepted to lower the minimum required perl. =head1 WARNING Email::MIME::Kit::Assembler::Standard works well, but is poorly decomposed, internally. Its methods may change substantially in the future, so relying on it as a base class is a bad idea. Because I rely on it would be so useful, its behaviors will in the future be more reliable or factored out into roles. Until then, be careful. =head1 AUTHOR Ricardo Signes =head1 COPYRIGHT AND LICENSE This software is copyright (c) 2023 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. =cut Email-MIME-Kit-3.000008/lib/Email/MIME/Kit/Role/Validator.pm000644 000765 000024 00000003710 14474753533 022627 0ustar00rjbsstaff000000 000000 package Email::MIME::Kit::Role::Validator 3.000008; # ABSTRACT: things that validate assembly parameters use v5.20.0; use Moose::Role; #pod =head1 IMPLEMENTING #pod #pod This role also performs L. #pod #pod Classes implementing this role are used to validate that the arguments passed #pod to C<< $mkit->assemble >> are valid. Classes must provide a C method #pod which will be called with the hashref of values passed to the kit's C #pod method. If the arguments are not valid for the kit, the C method #pod should raise an exception. #pod #pod =cut with 'Email::MIME::Kit::Role::Component'; requires 'validate'; no Moose::Role; 1; __END__ =pod =encoding UTF-8 =head1 NAME Email::MIME::Kit::Role::Validator - things that validate assembly parameters =head1 VERSION version 3.000008 =head1 PERL VERSION This library should run on perls released even a long time ago. It should work on any version of perl released in the last five years. Although it may work on older versions of perl, no guarantee is made that the minimum required version will not be increased. The version may be increased for any reason, and there is no promise that patches will be accepted to lower the minimum required perl. =head1 IMPLEMENTING This role also performs L. Classes implementing this role are used to validate that the arguments passed to C<< $mkit->assemble >> are valid. Classes must provide a C method which will be called with the hashref of values passed to the kit's C method. If the arguments are not valid for the kit, the C method should raise an exception. =head1 AUTHOR Ricardo Signes =head1 COPYRIGHT AND LICENSE This software is copyright (c) 2023 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. =cut Email-MIME-Kit-3.000008/lib/Email/MIME/Kit/Role/KitReader.pm000644 000765 000024 00000004713 14474753533 022560 0ustar00rjbsstaff000000 000000 package Email::MIME::Kit::Role::KitReader 3.000008; # ABSTRACT: things that can read kit contents use v5.20.0; use Moose::Role; with 'Email::MIME::Kit::Role::Component'; #pod =head1 IMPLEMENTING #pod #pod This role also performs L. #pod #pod Classes implementing this role must provide a C method. It will #pod be called with one parameter, the name of a path to an entry in the kit. It #pod should return a reference to a scalar holding the contents (as octets) of the #pod named entry. If no entry is found, it should raise an exception. #pod #pod A method called C is provided. It behaves like #pod C, but assumes that the entry for that name is stored in UTF-8 #pod and will decode it to text before returning. #pod #pod =cut requires 'get_kit_entry'; sub get_decoded_kit_entry { my ($self, $name) = @_; my $content_ref = $self->get_kit_entry($name); require Encode; my $decoded = Encode::decode('utf-8', $$content_ref); return \$decoded; } no Moose::Role; 1; __END__ =pod =encoding UTF-8 =head1 NAME Email::MIME::Kit::Role::KitReader - things that can read kit contents =head1 VERSION version 3.000008 =head1 PERL VERSION This library should run on perls released even a long time ago. It should work on any version of perl released in the last five years. Although it may work on older versions of perl, no guarantee is made that the minimum required version will not be increased. The version may be increased for any reason, and there is no promise that patches will be accepted to lower the minimum required perl. =head1 IMPLEMENTING This role also performs L. Classes implementing this role must provide a C method. It will be called with one parameter, the name of a path to an entry in the kit. It should return a reference to a scalar holding the contents (as octets) of the named entry. If no entry is found, it should raise an exception. A method called C is provided. It behaves like C, but assumes that the entry for that name is stored in UTF-8 and will decode it to text before returning. =head1 AUTHOR Ricardo Signes =head1 COPYRIGHT AND LICENSE This software is copyright (c) 2023 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. =cut Email-MIME-Kit-3.000008/lib/Email/MIME/Kit/Role/Renderer.pm000644 000765 000024 00000003340 14474753533 022447 0ustar00rjbsstaff000000 000000 package Email::MIME::Kit::Role::Renderer 3.000008; # ABSTRACT: things that render templates into contents use v5.20.0; use Moose::Role; with 'Email::MIME::Kit::Role::Component'; #pod =head1 IMPLEMENTING #pod #pod This role also performs L. #pod #pod Classes implementing this role must provide a C method, which is #pod expected to turn a template and arguments into rendered output. The method is #pod used like this: #pod #pod my $output_ref = $renderer->render($input_ref, \%arg); #pod #pod =cut requires 'render'; no Moose::Role; 1; __END__ =pod =encoding UTF-8 =head1 NAME Email::MIME::Kit::Role::Renderer - things that render templates into contents =head1 VERSION version 3.000008 =head1 PERL VERSION This library should run on perls released even a long time ago. It should work on any version of perl released in the last five years. Although it may work on older versions of perl, no guarantee is made that the minimum required version will not be increased. The version may be increased for any reason, and there is no promise that patches will be accepted to lower the minimum required perl. =head1 IMPLEMENTING This role also performs L. Classes implementing this role must provide a C method, which is expected to turn a template and arguments into rendered output. The method is used like this: my $output_ref = $renderer->render($input_ref, \%arg); =head1 AUTHOR Ricardo Signes =head1 COPYRIGHT AND LICENSE This software is copyright (c) 2023 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. =cut Email-MIME-Kit-3.000008/lib/Email/MIME/Kit/Role/Assembler.pm000644 000765 000024 00000003211 14474753533 022613 0ustar00rjbsstaff000000 000000 package Email::MIME::Kit::Role::Assembler 3.000008; # ABSTRACT: things that assemble messages (or parts) use v5.20.0; use Moose::Role; with 'Email::MIME::Kit::Role::Component'; #pod =head1 IMPLEMENTING #pod #pod This role also performs L. #pod #pod Classes implementing this role must provide an C method. This method #pod will be passed a hashref of assembly parameters, and should return the fully #pod assembled Email::MIME object. #pod #pod =cut requires 'assemble'; no Moose::Role; 1; __END__ =pod =encoding UTF-8 =head1 NAME Email::MIME::Kit::Role::Assembler - things that assemble messages (or parts) =head1 VERSION version 3.000008 =head1 PERL VERSION This library should run on perls released even a long time ago. It should work on any version of perl released in the last five years. Although it may work on older versions of perl, no guarantee is made that the minimum required version will not be increased. The version may be increased for any reason, and there is no promise that patches will be accepted to lower the minimum required perl. =head1 IMPLEMENTING This role also performs L. Classes implementing this role must provide an C method. This method will be passed a hashref of assembly parameters, and should return the fully assembled Email::MIME object. =head1 AUTHOR Ricardo Signes =head1 COPYRIGHT AND LICENSE This software is copyright (c) 2023 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. =cut Email-MIME-Kit-3.000008/lib/Email/MIME/Kit/Role/ManifestDesugarer.pm000644 000765 000024 00000006137 14474753533 024320 0ustar00rjbsstaff000000 000000 package Email::MIME::Kit::Role::ManifestDesugarer 3.000008; # ABSTRACT: helper for desugaring manifests use v5.20.0; use Moose::Role; #pod =head1 IMPLEMENTING #pod #pod This role also performs L. #pod #pod This is a role more likely to be consumed than implemented. It wraps C #pod the C method in the consuming class, and "desugars" the contents #pod of the loaded manifest before returning it. #pod #pod At present, desugaring is what allows the C attribute in attachments and #pod alternatives to be given instead of a C entry in the #pod C entry. In other words, desugaring turns: #pod #pod { #pod header => [ ... ], #pod type => 'text/plain', #pod } #pod #pod Into: #pod #pod { #pod header => [ ... ], #pod attributes => { content_type => 'text/plain' }, #pod } #pod #pod More behavior may be added to the desugarer later. #pod #pod =cut my $ct_desugar; $ct_desugar = sub { my ($self, $content) = @_; for my $thing (qw(alternatives attachments)) { for my $part (@{ $content->{ $thing } }) { my $headers = $part->{header} ||= []; if (my $type = delete $part->{type}) { confess "specified both type and content_type attribute" if $part->{attributes}{content_type}; $part->{attributes}{content_type} = $type; } $self->$ct_desugar($part); } } }; around read_manifest => sub { my ($orig, $self, @args) = @_; my $content = $self->$orig(@args); $self->$ct_desugar($content); return $content; }; no Moose::Role; 1; __END__ =pod =encoding UTF-8 =head1 NAME Email::MIME::Kit::Role::ManifestDesugarer - helper for desugaring manifests =head1 VERSION version 3.000008 =head1 PERL VERSION This library should run on perls released even a long time ago. It should work on any version of perl released in the last five years. Although it may work on older versions of perl, no guarantee is made that the minimum required version will not be increased. The version may be increased for any reason, and there is no promise that patches will be accepted to lower the minimum required perl. =head1 IMPLEMENTING This role also performs L. This is a role more likely to be consumed than implemented. It wraps C the C method in the consuming class, and "desugars" the contents of the loaded manifest before returning it. At present, desugaring is what allows the C attribute in attachments and alternatives to be given instead of a C entry in the C 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. =head1 AUTHOR Ricardo Signes =head1 COPYRIGHT AND LICENSE This software is copyright (c) 2023 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. =cut Email-MIME-Kit-3.000008/lib/Email/MIME/Kit/Role/ManifestReader.pm000644 000765 000024 00000003354 14474753533 023577 0ustar00rjbsstaff000000 000000 package Email::MIME::Kit::Role::ManifestReader 3.000008; # ABSTRACT: things that read kit manifests use v5.20.0; use Moose::Role; with 'Email::MIME::Kit::Role::Component'; #pod =head1 IMPLEMENTING #pod #pod This role also performs L. #pod #pod Classes implementing this role must provide a C method, which is #pod expected to locate and read a manifest for the kit. Classes implementing this #pod role should probably include L, too. #pod #pod =cut requires 'read_manifest'; no Moose::Role; 1; __END__ =pod =encoding UTF-8 =head1 NAME Email::MIME::Kit::Role::ManifestReader - things that read kit manifests =head1 VERSION version 3.000008 =head1 PERL VERSION This library should run on perls released even a long time ago. It should work on any version of perl released in the last five years. Although it may work on older versions of perl, no guarantee is made that the minimum required version will not be increased. The version may be increased for any reason, and there is no promise that patches will be accepted to lower the minimum required perl. =head1 IMPLEMENTING This role also performs L. Classes implementing this role must provide a C method, which is expected to locate and read a manifest for the kit. Classes implementing this role should probably include L, too. =head1 AUTHOR Ricardo Signes =head1 COPYRIGHT AND LICENSE This software is copyright (c) 2023 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. =cut Email-MIME-Kit-3.000008/lib/Email/MIME/Kit/Role/Component.pm000644 000765 000024 00000003103 14474753533 022640 0ustar00rjbsstaff000000 000000 package Email::MIME::Kit::Role::Component 3.000008; # ABSTRACT: things that are kit components use v5.20.0; use Moose::Role; #pod =head1 DESCRIPTION #pod #pod All (or most, anyway) components of an Email::MIME::Kit will perform this role. #pod Its primary function is to provide a C attribute that refers back to the #pod Email::MIME::Kit into which the component was installed. #pod #pod =cut has kit => ( is => 'ro', isa => 'Email::MIME::Kit', required => 1, weak_ref => 1, ); no Moose::Role; 1; __END__ =pod =encoding UTF-8 =head1 NAME Email::MIME::Kit::Role::Component - things that are kit components =head1 VERSION version 3.000008 =head1 DESCRIPTION All (or most, anyway) components of an Email::MIME::Kit will perform this role. Its primary function is to provide a C attribute that refers back to the Email::MIME::Kit into which the component was installed. =head1 PERL VERSION This library should run on perls released even a long time ago. It should work on any version of perl released in the last five years. Although it may work on older versions of perl, no guarantee is made that the minimum required version will not be increased. The version may be increased for any reason, and there is no promise that patches will be accepted to lower the minimum required perl. =head1 AUTHOR Ricardo Signes =head1 COPYRIGHT AND LICENSE This software is copyright (c) 2023 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. =cut Email-MIME-Kit-3.000008/lib/Email/MIME/Kit/Renderer/TestRenderer.pm000644 000765 000024 00000006634 14474753533 024165 0ustar00rjbsstaff000000 000000 package Email::MIME::Kit::Renderer::TestRenderer 3.000008; # ABSTRACT: extremely simple renderer for testing purposes only use v5.20.0; use Moose; with 'Email::MIME::Kit::Role::Renderer'; #pod =head1 WARNING #pod #pod Seriously, this is horrible code. If you want, look at it. It's swell for #pod testing simple things, but if you use this for real mkits, you're going to be #pod upset by something horrible soon. #pod #pod =head1 DESCRIPTION #pod #pod The test renderer is like a version of Template Toolkit 2 that has had a crayon #pod shoved up its nose and into its brain. It can only do a very few things, but #pod it does them well enough to test simple kits. #pod #pod Given the following template: #pod #pod This will say "I love pie": [% actor %] [% m_obj.verb() %] [% z_by("me") %] #pod #pod ...and the following set of variables: #pod #pod { #pod actor => 'I', #pod m_obj => $object_whose_verb_method_returns_love, #pod z_by => sub { 'me' }, #pod } #pod #pod ..then it will be a true statement. #pod #pod In method calls, the parens are B optional. Anything between them (or #pod between the parens in a coderef call) is evaluated like perl code. For #pod example, this will actually get the OS: #pod #pod [% z_by($^O) %] #pod #pod =cut sub render { my ($self, $content_ref, $stash) = @_; my $output = $$content_ref; for my $key (sort %$stash) { $output =~ s<\[%\s+\Q$key\E(?:(?:\.(\w+))?\((.*?)\))?\s+%\]> [ defined $2 ? ($1 ? $stash->{$key}->$1(eval $2) : $stash->{$key}->(eval $2)) : $stash->{$key} ]ge; } return \$output; } no Moose; __PACKAGE__->meta->make_immutable; 1; __END__ =pod =encoding UTF-8 =head1 NAME Email::MIME::Kit::Renderer::TestRenderer - extremely simple renderer for testing purposes only =head1 VERSION version 3.000008 =head1 DESCRIPTION The test renderer is like a version of Template Toolkit 2 that has had a crayon shoved up its nose and into its brain. It can only do a very few things, but it does them well enough to test simple kits. Given the following template: This will say "I love pie": [% actor %] [% m_obj.verb() %] [% z_by("me") %] ...and the following set of variables: { actor => 'I', m_obj => $object_whose_verb_method_returns_love, z_by => sub { 'me' }, } ..then it will be a true statement. In method calls, the parens are B optional. Anything between them (or between the parens in a coderef call) is evaluated like perl code. For example, this will actually get the OS: [% z_by($^O) %] =head1 PERL VERSION This library should run on perls released even a long time ago. It should work on any version of perl released in the last five years. Although it may work on older versions of perl, no guarantee is made that the minimum required version will not be increased. The version may be increased for any reason, and there is no promise that patches will be accepted to lower the minimum required perl. =head1 WARNING Seriously, this is horrible code. If you want, look at it. It's swell for testing simple things, but if you use this for real mkits, you're going to be upset by something horrible soon. =head1 AUTHOR Ricardo Signes =head1 COPYRIGHT AND LICENSE This software is copyright (c) 2023 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. =cut Email-MIME-Kit-3.000008/xt/author/000755 000765 000024 00000000000 14474753533 016324 5ustar00rjbsstaff000000 000000 Email-MIME-Kit-3.000008/xt/release/000755 000765 000024 00000000000 14474753533 016442 5ustar00rjbsstaff000000 000000 Email-MIME-Kit-3.000008/xt/release/changes_has_content.t000644 000765 000024 00000002104 14474753533 022621 0ustar00rjbsstaff000000 000000 use Test::More tests => 2; note 'Checking Changes'; my $changes_file = 'Changes'; my $newver = '3.000008'; my $trial_token = '-TRIAL'; my $encoding = 'UTF-8'; SKIP: { ok(-e $changes_file, "$changes_file file exists") or skip 'Changes is missing', 1; ok(_get_changes($newver), "$changes_file has content for $newver"); } done_testing; sub _get_changes { my $newver = shift; # parse changelog to find commit message open(my $fh, '<', $changes_file) or die "cannot open $changes_file: $!"; my $changelog = join('', <$fh>); if ($encoding) { require Encode; $changelog = Encode::decode($encoding, $changelog, Encode::FB_CROAK()); } close $fh; my @content = grep { /^$newver(?:$trial_token)?(?:\s+|$)/ ... /^\S/ } # from newver to un-indented split /\n/, $changelog; shift @content; # drop the version line # drop unindented last line and trailing blank lines pop @content while ( @content && $content[-1] =~ /^(?:\S|\s*$)/ ); # return number of non-blank lines return scalar @content; } Email-MIME-Kit-3.000008/xt/author/pod-syntax.t000644 000765 000024 00000000252 14474753533 020616 0ustar00rjbsstaff000000 000000 #!perl # This file was automatically generated by Dist::Zilla::Plugin::PodSyntaxTests. use strict; use warnings; use Test::More; use Test::Pod 1.41; all_pod_files_ok(); Email-MIME-Kit-3.000008/t/alt-kit-reader.t000644 000765 000024 00000000755 14474753533 017633 0ustar00rjbsstaff000000 000000 use strict; use warnings; use Test::More tests => 4; use lib 't/lib'; use Email::MIME::Kit; my $kit = Email::MIME::Kit->new({ source => 't/kits/alt-kit-reader.mkit' }); my $manifest = $kit->manifest; ok($manifest, 'got a manifest'); my $email = $kit->assemble; my @parts = $email->subparts; is(@parts, 2, "we got two alternatives"); like($parts[0]->body, qr{first/text/alternative}, 'path used as content'); like($parts[1]->body, qr{second/text/alternative}, 'path used as content'); Email-MIME-Kit-3.000008/t/assemble.t000644 000765 000024 00000007413 14474753533 016617 0ustar00rjbsstaff000000 000000 use strict; use warnings; use Test::More tests => 2; use lib 't/lib'; use Email::MIME::Kit; # because there's no E:M method for this... ugh! -- rjbs, 2009-01-22 my $bare_ct = sub { shift->content_type =~ /\A(.+?)(?:;|\z)/; $1 }; { package TestFriend; sub new { bless { name => $_[1] } => $_[0] } sub name { return $_[0]->{name} } } for my $args ( [ yaml => [ manifest_reader => 'YAML' ] ], [ none => [ ] ], ) { subtest "building with $args->[0] arg set" => sub { plan tests => 25; my $kit = Email::MIME::Kit->new({ @{ $args->[1] }, source => 't/kits/test.mkit', }); my $manifest = $kit->manifest; ok($manifest, 'got a manifest'); { my $ok = eval { $kit->assemble; 1 }; my $err = $@; ok(! $ok, "we couldn't assemble the kit without needed params"); like($err, qr/friend/, "specifically, the 'friend' param"); } my $email = $kit->assemble({ friend => TestFriend->new('Jimbo Johnson'), how_long => '10 years', }); # diag $email->as_string; isa_ok($email, 'Email::MIME', 'product of kit assembly'); is($email->header('Subject'), 'Hello Jimbo Johnson', 'subject was rendered'); ok( (defined scalar $email->header('Message-Id')), "we have a message-id on the top level", ); subtest "non-ASCII headers from manifest" => sub { for (qw(Band-1 Band-2)) { is($email->header($_), "Queensr\xFFche", "$_ header decodes"); } is( $email->header_raw('Band-1'), $email->header_raw('Band-2'), "two forms of non-ASCII in JSON treated equivalently", ); }; like( $email->header('X-Test'), qr{\Qunrendered [% friend %] test}, 'we can override header rendering per-header', ); is($email->$bare_ct, 'multipart/mixed', "alts + parts = multipart/mixed"); my ($mp_alt, $pdf, @top_rest) = $email->subparts; is(@top_rest, 0, "we got exactly 2 top-level parts"); is($mp_alt->$bare_ct, 'multipart/alternative', 'first subpart is mp/a'); is($pdf->$bare_ct, 'application/pdf', '2nd subpart is application/pdf'); { my ($txt, $html, $mp_rel, @alt_rest) = $mp_alt->subparts; is(@alt_rest, 0, "we got exactly 3 subparts of the mp/a part"); is($txt->$bare_ct, 'text/plain', 'first subsubpart is t/plain'); is($html->$bare_ct, 'text/html', '2nd subsubpart is t/html'); is($mp_rel->$bare_ct, 'multipart/related', '3nd subsubpart is mp/rel'); like( $html->body, qr{\Qthe unrendered [% friend %] HTML part}, "per-part renderer override works", ); like( $html->header('x-cantata'), qr{\Q[% friend %] canta}, "per-part renderer override also affects the assembler's hdr render", ); { my ($better_html, $jpeg, @rel_rest) = $mp_rel->subparts; is(@rel_rest, 0, "we got exactly 2 subparts of the mp/rel part"); is($better_html->$bare_ct, 'text/html', 'mp/rel subpart 1 = t/html'); is($jpeg->$bare_ct, 'image/jpeg', 'mp/rel subpart 2 = i/jpeg'); like( $better_html->body, qr{Hello, Jimbo Johnson. It's}, "html body rendered", ); my ($cid) = $better_html->body =~ m/src='cid:(.+?)'/; is( "<$cid>", $jpeg->header('content-id'), "the html body references the jpeg's content id", ); open my $jpeg_fh, '<:raw', 't/kits/test.mkit/logo.jpg' or die "can't read logo.jpg: $!"; my $jpeg_bytes = do { local $/; <$jpeg_fh> }; ok($jpeg->body eq $jpeg_bytes, "jpeg is not corrupted by attaching"); is( length($jpeg->body), length($jpeg_bytes), "same length of jpegs", ); } } }; } Email-MIME-Kit-3.000008/t/kits/000755 000765 000024 00000000000 14474753533 015604 5ustar00rjbsstaff000000 000000 Email-MIME-Kit-3.000008/t/test-renderer.t000644 000765 000024 00000001124 14474753533 017600 0ustar00rjbsstaff000000 000000 #!perl use strict; use warnings; use Test::More tests => 1; use lib 't/lib'; use Email::MIME::Kit::Renderer::TestRenderer; my $template = 'This will say "I love pie": [% actor %] [% m_obj.verb() %] [% z_by("me") %]'; { package V; sub new { bless {} }; sub verb { 'love' } } my $output_ref = Email::MIME::Kit::Renderer::TestRenderer->render( \$template, { actor => 'I', m_obj => V->new, z_by => sub { return 'pie' if $_[0] eq 'me'; return 'cake' }, }, ); like( $$output_ref, qr{\Q"I love pie": I love pie\E\Z}, "our test renderer is good enough for our tests", ); Email-MIME-Kit-3.000008/t/read-json-manifest.t000644 000765 000024 00000001421 14474753533 020503 0ustar00rjbsstaff000000 000000 use strict; use warnings; use Test::More tests => 4; use Test::Deep; use lib 't/lib'; use Email::MIME::Kit; my $kit = Email::MIME::Kit->new({ source => 't/kits/test.mkit' }); my $manifest = $kit->manifest; ok($manifest, 'got a manifest'); isa_ok( $kit->validator, 'Email::MIME::Kit::Validator::Simplest', "kit's validator", ); cmp_deeply( $manifest->{alternatives}[0], superhashof({ attributes => { content_type => "text/plain" }, body => "We don't support tests.", }), "we have desugared the first alternative's c-t", ); cmp_deeply( $manifest->{alternatives}[2]{attachments}[0], superhashof({ attributes => { content_type => "image/jpeg" }, path => "logo.jpg", }), "the desugaring propagated down into an alt's attachment", ); Email-MIME-Kit-3.000008/t/borg.t000644 000765 000024 00000000661 14474753533 015753 0ustar00rjbsstaff000000 000000 use strict; use warnings; use Test::More tests => 2; use lib 't/lib'; use Email::MIME::Kit; my $kit = Email::MIME::Kit->new({ source => 't/kits/borg.mkit' }); my $manifest = $kit->manifest; ok($manifest, 'got a manifest'); my $email = $kit->assemble; like( $email->body, qr{We are borg. You will be assimilated. We will add your stash to our}, "the custom assembler was used, replacing anything the manifest said", ); Email-MIME-Kit-3.000008/t/00-report-prereqs.t000644 000765 000024 00000013601 14474753533 020227 0ustar00rjbsstaff000000 000000 #!perl use strict; use warnings; # This test was generated by Dist::Zilla::Plugin::Test::ReportPrereqs 0.029 use Test::More tests => 1; use ExtUtils::MakeMaker; use File::Spec; # from $version::LAX my $lax_version_re = qr/(?: undef | (?: (?:[0-9]+) (?: \. | (?:\.[0-9]+) (?:_[0-9]+)? )? | (?:\.[0-9]+) (?:_[0-9]+)? ) | (?: v (?:[0-9]+) (?: (?:\.[0-9]+)+ (?:_[0-9]+)? )? | (?:[0-9]+)? (?:\.[0-9]+){2,} (?:_[0-9]+)? ) )/x; # hide optional CPAN::Meta modules from prereq scanner # and check if they are available my $cpan_meta = "CPAN::Meta"; my $cpan_meta_pre = "CPAN::Meta::Prereqs"; my $HAS_CPAN_META = eval "require $cpan_meta; $cpan_meta->VERSION('2.120900')" && eval "require $cpan_meta_pre"; ## no critic # Verify requirements? my $DO_VERIFY_PREREQS = 1; sub _max { my $max = shift; $max = ( $_ > $max ) ? $_ : $max for @_; return $max; } sub _merge_prereqs { my ($collector, $prereqs) = @_; # CPAN::Meta::Prereqs object if (ref $collector eq $cpan_meta_pre) { return $collector->with_merged_prereqs( CPAN::Meta::Prereqs->new( $prereqs ) ); } # Raw hashrefs for my $phase ( keys %$prereqs ) { for my $type ( keys %{ $prereqs->{$phase} } ) { for my $module ( keys %{ $prereqs->{$phase}{$type} } ) { $collector->{$phase}{$type}{$module} = $prereqs->{$phase}{$type}{$module}; } } } return $collector; } my @include = qw( ); my @exclude = qw( ); # Add static prereqs to the included modules list my $static_prereqs = do './t/00-report-prereqs.dd'; # Merge all prereqs (either with ::Prereqs or a hashref) my $full_prereqs = _merge_prereqs( ( $HAS_CPAN_META ? $cpan_meta_pre->new : {} ), $static_prereqs ); # Add dynamic prereqs to the included modules list (if we can) my ($source) = grep { -f } 'MYMETA.json', 'MYMETA.yml'; my $cpan_meta_error; if ( $source && $HAS_CPAN_META && (my $meta = eval { CPAN::Meta->load_file($source) } ) ) { $full_prereqs = _merge_prereqs($full_prereqs, $meta->prereqs); } else { $cpan_meta_error = $@; # capture error from CPAN::Meta->load_file($source) $source = 'static metadata'; } my @full_reports; my @dep_errors; my $req_hash = $HAS_CPAN_META ? $full_prereqs->as_string_hash : $full_prereqs; # Add static includes into a fake section for my $mod (@include) { $req_hash->{other}{modules}{$mod} = 0; } for my $phase ( qw(configure build test runtime develop other) ) { next unless $req_hash->{$phase}; next if ($phase eq 'develop' and not $ENV{AUTHOR_TESTING}); for my $type ( qw(requires recommends suggests conflicts modules) ) { next unless $req_hash->{$phase}{$type}; my $title = ucfirst($phase).' '.ucfirst($type); my @reports = [qw/Module Want Have/]; for my $mod ( sort keys %{ $req_hash->{$phase}{$type} } ) { next if grep { $_ eq $mod } @exclude; my $want = $req_hash->{$phase}{$type}{$mod}; $want = "undef" unless defined $want; $want = "any" if !$want && $want == 0; if ($mod eq 'perl') { push @reports, ['perl', $want, $]]; next; } my $req_string = $want eq 'any' ? 'any version required' : "version '$want' required"; my $file = $mod; $file =~ s{::}{/}g; $file .= ".pm"; my ($prefix) = grep { -e File::Spec->catfile($_, $file) } @INC; if ($prefix) { my $have = MM->parse_version( File::Spec->catfile($prefix, $file) ); $have = "undef" unless defined $have; push @reports, [$mod, $want, $have]; if ( $DO_VERIFY_PREREQS && $HAS_CPAN_META && $type eq 'requires' ) { if ( $have !~ /\A$lax_version_re\z/ ) { push @dep_errors, "$mod version '$have' cannot be parsed ($req_string)"; } elsif ( ! $full_prereqs->requirements_for( $phase, $type )->accepts_module( $mod => $have ) ) { push @dep_errors, "$mod version '$have' is not in required range '$want'"; } } } else { push @reports, [$mod, $want, "missing"]; if ( $DO_VERIFY_PREREQS && $type eq 'requires' ) { push @dep_errors, "$mod is not installed ($req_string)"; } } } if ( @reports ) { push @full_reports, "=== $title ===\n\n"; my $ml = _max( map { length $_->[0] } @reports ); my $wl = _max( map { length $_->[1] } @reports ); my $hl = _max( map { length $_->[2] } @reports ); if ($type eq 'modules') { splice @reports, 1, 0, ["-" x $ml, "", "-" x $hl]; push @full_reports, map { sprintf(" %*s %*s\n", -$ml, $_->[0], $hl, $_->[2]) } @reports; } else { splice @reports, 1, 0, ["-" x $ml, "-" x $wl, "-" x $hl]; push @full_reports, map { sprintf(" %*s %*s %*s\n", -$ml, $_->[0], $wl, $_->[1], $hl, $_->[2]) } @reports; } push @full_reports, "\n"; } } } if ( @full_reports ) { diag "\nVersions for all modules listed in $source (including optional ones):\n\n", @full_reports; } if ( $cpan_meta_error || @dep_errors ) { diag "\n*** WARNING WARNING WARNING WARNING WARNING WARNING WARNING WARNING ***\n"; } if ( $cpan_meta_error ) { my ($orig_source) = grep { -f } 'MYMETA.json', 'MYMETA.yml'; diag "\nCPAN::Meta->load_file('$orig_source') failed with: $cpan_meta_error\n"; } if ( @dep_errors ) { diag join("\n", "\nThe following REQUIRED prerequisites were not satisfied:\n", @dep_errors, "\n" ); } pass('Reported prereqs'); # vim: ts=4 sts=4 sw=4 et: Email-MIME-Kit-3.000008/t/lib/000755 000765 000024 00000000000 14474753533 015400 5ustar00rjbsstaff000000 000000 Email-MIME-Kit-3.000008/t/00-report-prereqs.dd000644 000765 000024 00000004333 14474753533 020355 0ustar00rjbsstaff000000 000000 do { my $x = { 'configure' => { 'requires' => { 'ExtUtils::MakeMaker' => '6.78' } }, 'develop' => { 'requires' => { 'Test::More' => '0', 'Test::Pod' => '1.41', 'strict' => '0', 'warnings' => '0' } }, 'runtime' => { 'requires' => { 'Email::MIME' => '1.930', 'Email::MIME::Creator' => '0', 'Email::MessageID' => '1.400', 'Encode' => '0', 'File::Basename' => '0', 'File::Spec' => '0', 'JSON' => '2', 'Module::Runtime' => '0', 'Moose' => '0.65', 'Moose::Role' => '0', 'Moose::Util::TypeConstraints' => '0', 'String::RewritePrefix' => '0', 'YAML::XS' => '0', 'perl' => 'v5.20.0' } }, 'test' => { 'recommends' => { 'CPAN::Meta' => '2.120900' }, 'requires' => { 'ExtUtils::MakeMaker' => '0', 'File::Spec' => '0', 'Test::Deep' => '0', 'Test::More' => '0.96', 'lib' => '0', 'strict' => '0', 'utf8' => '0', 'warnings' => '0' } } }; $x; }Email-MIME-Kit-3.000008/t/single.t000644 000765 000024 00000000635 14474753533 016304 0ustar00rjbsstaff000000 000000 use strict; use warnings; use Test::More tests => 3; use lib 't/lib'; use Email::MIME::Kit; my $kit = Email::MIME::Kit->new({ source => 't/kits/single.mkit' }); my $manifest = $kit->manifest; ok($manifest, 'got a manifest'); my $email = $kit->assemble; my @parts = $email->subparts; is(@parts, 0, "no subparts on single-part email"); like($email->body, qr{never been harder}, "the body is right there!"); Email-MIME-Kit-3.000008/t/autoencode.t000644 000765 000024 00000002771 14474753533 017154 0ustar00rjbsstaff000000 000000 use strict; use warnings; use utf8; use Test::More tests => 2; use lib 't/lib'; use Email::MIME::Kit; { package TestFriend; sub new { bless { name => $_[1] } => $_[0] } sub name { return $_[0]->{name} } } for my $kit (qw(encode encode-file)) { subtest "encoding with $kit" => sub { my $kit = Email::MIME::Kit->new({ source => "t/kits/$kit.mkit", }); { my $email = $kit->assemble({ friend => TestFriend->new('Jimbo Johnson'), how_long => '10 years', }); like( $email->as_string, qr{(?m:^Subject: Hello Jimbo Johnson[\x0d\x0a])}, "plain ol' strings in the subject with 7-bit friend.name (qr{})", ); like( $email->body_raw, qr{This goes out to Jimbo Johnson}, "plain text body", ); } { my $email = $kit->assemble({ friend => TestFriend->new('Jÿmbo Jºhnsøn'), how_long => '10 years', }); like( $email->as_string, qr{^Subject: =\?UTF-8\?}m, "encoded words in the subject with 8-bit friend.name", ); like( $email->header_obj->header_raw('Subject'), qr{\A=\?UTF-8\?}m, "subject is encoded", ); is( $email->header_obj->header('Subject'), 'Hello Jÿmbo Jºhnsøn', "...subject decodes properly", ); like( $email->body_raw, qr{This goes out to J(?:=[0-9A-Fa-f]{2}){2}mbo}, "q-p encoded body", ); } }; } Email-MIME-Kit-3.000008/t/lib/Email/000755 000765 000024 00000000000 14474753533 016427 5ustar00rjbsstaff000000 000000 Email-MIME-Kit-3.000008/t/lib/Email/MIME/000755 000765 000024 00000000000 14474753533 017156 5ustar00rjbsstaff000000 000000 Email-MIME-Kit-3.000008/t/lib/Email/MIME/Kit/000755 000765 000024 00000000000 14474753533 017705 5ustar00rjbsstaff000000 000000 Email-MIME-Kit-3.000008/t/lib/Email/MIME/Kit/Validator/000755 000765 000024 00000000000 14474753533 021632 5ustar00rjbsstaff000000 000000 Email-MIME-Kit-3.000008/t/lib/Email/MIME/Kit/Assembler/000755 000765 000024 00000000000 14474753533 021622 5ustar00rjbsstaff000000 000000 Email-MIME-Kit-3.000008/t/lib/Email/MIME/Kit/ConstKit.pm000644 000765 000024 00000000251 14474753533 021777 0ustar00rjbsstaff000000 000000 package Email::MIME::Kit::ConstKit; use Moose; with 'Email::MIME::Kit::Role::KitReader'; sub get_kit_entry { my ($self, $path) = @_; return \$path; } no Moose; 1; Email-MIME-Kit-3.000008/t/lib/Email/MIME/Kit/Assembler/Borg.pm000644 000765 000024 00000001320 14474753533 023045 0ustar00rjbsstaff000000 000000 package Email::MIME::Kit::Assembler::Borg; use Moose; with 'Email::MIME::Kit::Role::Assembler'; use Email::MIME::Creator; my $i = 1; has number => ( is => 'ro', default => sub { $i++ }, init_arg => undef, ); sub assemble { my ($self, $stash) = @_; my $num = $self->number; my $email = Email::MIME->create( attributes => { content_type => 'text/plain', }, header => [ From => 'drone@borg.cube', To => 'earth@sector.000', Subject => 'You have no chance to survive, make your time.', ], body => <<'END_OF_BODY', We are borg. You will be assimilated. We will add your stash to our own. END_OF_BODY ); return $email; } no Moose; 1; Email-MIME-Kit-3.000008/t/lib/Email/MIME/Kit/Validator/Simplest.pm000644 000765 000024 00000000643 14474753533 023773 0ustar00rjbsstaff000000 000000 package Email::MIME::Kit::Validator::Simplest; use Moose; with 'Email::MIME::Kit::Role::Validator'; use File::Spec; has required_fields => ( reader => 'required_fields', writer => '_set_required_fields', isa => 'ArrayRef', ); sub validate { my ($self, $stash) = @_; for my $name (@{ $self->required_fields }) { confess "required field <$name> not provided" if ! exists $stash->{$name}; } } 1; Email-MIME-Kit-3.000008/t/kits/test.mkit/000755 000765 000024 00000000000 14474753533 017526 5ustar00rjbsstaff000000 000000 Email-MIME-Kit-3.000008/t/kits/borg.mkit/000755 000765 000024 00000000000 14474753533 017500 5ustar00rjbsstaff000000 000000 Email-MIME-Kit-3.000008/t/kits/encode.mkit/000755 000765 000024 00000000000 14474753533 020004 5ustar00rjbsstaff000000 000000 Email-MIME-Kit-3.000008/t/kits/alt-kit-reader.mkit/000755 000765 000024 00000000000 14474753533 021354 5ustar00rjbsstaff000000 000000 Email-MIME-Kit-3.000008/t/kits/encode-file.mkit/000755 000765 000024 00000000000 14474753533 020721 5ustar00rjbsstaff000000 000000 Email-MIME-Kit-3.000008/t/kits/single.mkit/000755 000765 000024 00000000000 14474753533 020030 5ustar00rjbsstaff000000 000000 Email-MIME-Kit-3.000008/t/kits/single.mkit/manifest.json000644 000765 000024 00000000306 14474753533 022530 0ustar00rjbsstaff000000 000000 { "header": [ { "Subject": "hard math tests!" }, { "From": "Professor Difficult " } ], "type": "text/plain", "body": "Our math tests have never been harder!" } Email-MIME-Kit-3.000008/t/kits/encode-file.mkit/manifest.json000644 000765 000024 00000000326 14474753533 023423 0ustar00rjbsstaff000000 000000 { "validator": [ "Simplest", { "required_fields": [ "friend" ] } ], "renderer": "TestRenderer", "header": [ { "Subject": "Hello [% friend.name() %]" } ], "type": "text/plain", "path": "plain.txt" } Email-MIME-Kit-3.000008/t/kits/encode-file.mkit/plain.txt000644 000765 000024 00000000045 14474753533 022564 0ustar00rjbsstaff000000 000000 This goes out to [% friend.name() %] Email-MIME-Kit-3.000008/t/kits/alt-kit-reader.mkit/manifest.json000644 000765 000024 00000000551 14474753533 024056 0ustar00rjbsstaff000000 000000 { "kit_reader": "=Email::MIME::Kit::ConstKit", "header": [ { "Subject": "Hello" }, { "From" : "Test Sender " } ], "alternatives": [ { "type": "text/plain", "path": "first/text/alternative.txt" }, { "type": "text/plain", "path": "second/text/alternative.txt" } ] } Email-MIME-Kit-3.000008/t/kits/encode.mkit/manifest.json000644 000765 000024 00000000361 14474753533 022505 0ustar00rjbsstaff000000 000000 { "validator": [ "Simplest", { "required_fields": [ "friend" ] } ], "renderer": "TestRenderer", "header": [ { "Subject": "Hello [% friend.name() %]" } ], "type": "text/plain", "body": "This goes out to [% friend.name() %]" } Email-MIME-Kit-3.000008/t/kits/borg.mkit/manifest.json000644 000765 000024 00000000335 14474753533 022202 0ustar00rjbsstaff000000 000000 { "assembler": "Borg", "header": [ { "Subject": "hard math tests!" }, { "From": "Professor Difficult " } ], "type": "text/plain", "body": "Our math tests have never been harder!" } Email-MIME-Kit-3.000008/t/kits/test.mkit/bogus-report.pdf000644 000765 000024 00000025630 14474753533 022657 0ustar00rjbsstaff000000 000000 %PDF-1.3 % 4 0 obj << /Length 5 0 R /Filter /FlateDecode >> stream xm1O0![ #*1dĀJHJE5_<9P#/K8xF&3ejŬaQh8; XoZ(AN%g0+=ntVg-.&=y]-_kRQIvł?="1 0fD mˆ"h'U/uZ%=/Y Y,y+r3pd+wAN(hbDRS"fb6b|I?gBߥu endstream endobj 5 0 obj 271 endobj 2 0 obj << /Type /Page /Parent 3 0 R /Resources 6 0 R /Contents 4 0 R /MediaBox [0 0 612 792] >> endobj 6 0 obj << /ProcSet [ /PDF /Text ] /ColorSpace << /Cs1 7 0 R >> /ExtGState << /Gs2 9 0 R /Gs1 10 0 R >> /Font << /F1.0 8 0 R >> >> endobj 9 0 obj << /Type /ExtGState /AAPL:AA true >> endobj 10 0 obj << /Type /ExtGState /AAPL:AA false >> endobj 11 0 obj << /Length 12 0 R /N 1 /Alternate /DeviceGray /Filter /FlateDecode >> stream xROHQ6Axw )vuYm[Ңgߺ3ӛ5œ]`鲙}v*b{a[QÓ'a?dy֭S{=5ڊ^-CT#hsM9s1F9 1w7;aYf ]%{w;ћ9 \Ir< X}I<>Uw(gRVzWOelπ~v{|u׶>UEP>,l%KTn)=J+vp,ZSk9xw"zmMWzmʨ)(ͳDf[xf8:罊ZIE?9Z*UVPog~~\?A< =ѯ tIsQIi!3NTc)[d@f endstream endobj 12 0 obj 704 endobj 7 0 obj [ /ICCBased 11 0 R ] endobj 3 0 obj << /Type /Pages /MediaBox [0 0 612 792] /Count 1 /Kids [ 2 0 R ] >> endobj 13 0 obj << /Type /Catalog /Pages 3 0 R >> endobj 14 0 obj << /Length 15 0 R /Length1 11516 /Filter /FlateDecode >> stream xzy|TE]5tz˾YH MH`  `@,?QYEЁAmƕAy93EN̛gv=S眪[#(<}nSA[NMhwjusf5Wūo |Lqל3Ό\!5e̖o߀ τ Y2W=N9ޖҤsMoȬ?K<HP*mB@9S]gv or5 Ckt},nC $#iAgl<Kcx3JMKz!;^]ncO?9u|F z]A0 }ٱ2<NOj>ߥ? R HQ&j? 6Jo@ e)iK}lZlmxqwy$̔1NmCЃ0Y;Π^p. <I|DZR0RfNRӨT'!I'ѩz }3FA똹vxv1{nʎa'Zv=}HTA-FW.q`v^}Y\7<n4ih Ӹ uw55W t zu;Zw)sN)Cv+r \M$ naOY-fѠi5J\&9 FFwa| 4AFM7dUZ'&횠薚a9'5ÉၚX.A% ;r;rO;+GGĸ ntWD*;fvU4g0!H'#޴dR"bWDChj_WQ$Y=h4? i$tG]nP/mZ)}i1y#Vlj验pIAjdVE~"RBn8z<3f5hB]-l4Gиnk*&2{,K}Oưa$,,KJp0y茸/k)D] 'cf+3 8^E]p$ q|1Ĺ8@hRq腅0;'O+hʘ bO^eFpja4N{aʢEVjKZژK(ktoN^0 ՘Jzlb;9h q*-cfn&훅-}c*Z/RCAsu݆԰˺'l^JR,rgCqAo_/*->/ BIJ|R/3,8F1z <@Z4a≿eMZ G nO;@'(O25Mytxq䥱?bK[K;pkڔUCb/N+q/؇~M26 ;D}n8/`Np[X$A^-@ W6vw]*^p%]1L%3۹ȹT~uuuE+g2.:Y/ Yk MU~2WarJ'^ͷQiI_IiVW3auEEZP*Z\ pFlЄ-Kz|1l\ŵ mz ^iȕ':ލ]}EU-s&'R? g*'iպ5.HQK J)djjNשnCzEqrئ|Pr&>PjB˅XȠ2gvYFRrL__eX(8>[mBV;gL bD0C4B{Mrc0D$&opOQ?IFZVEޒ TNvkC{`uFܰMT$dRP,nf6 /N([lиZpރ#ԯ{Aw3߁}!*Zu tL0ӰpSȰJĈD`Cc3^d5X~Xؼ_ϗ\ݧJ +CAy4^A ;Hm>׏>垥;/7֎׭͞}=KuC6,q"bx,ʯjI2 JFdc#V+c7bZkgUw_S6 &%aZ(vFjM&ԫY`5[v %%,c--1bnKϊ^RsިY[[Ξ޾sS]?U,ۈtiR %paj6iI ?Z*xBJ'r)RF(N2NJTNñݟlGq L9K I M G!C=x qlN]0R2 3{3{&Ԛ>_`LFjYI2 Q% ,GSpC 轂!XEx0,҂ʅW5I@U揹~03wZ|dQТłlgNv,0{Nmj!$-x{Ƿv3%fףFDg݅閌;jGfGud^yճ^\Y=Hx#9e_/&Nlyb2;XN+s:rmLDZ˽Z8 |x1Ĉ*Q[t&$1N3^X zL<-B%R0zRD m|ݖ[U¾_zcWbHg%_N=$=2c=YxeB; 4m8la'qIIf_i?9d~b0ɏkd4h@"D*2R50JZY!"ZbhICjxRć,n HJi" ٓ z"/!5(>`>k6=d=avfL홻k λ0st/̫9}Ujj77J 2aLMP~Z-/y0?[.!-rTyld+ؑТNDSR{= `T&%U 2<ѬDyX47%|T\}d۲ 9Z/'FXjsF3 UŏfkQ,[Pp>O @}4!9h6 L:NVTj^Z`"P7+`Nd6u!1mO(/6l'to̖ 6\o@`hH BUXxt5I{{za6%UeɠRIa2u&LSfFe+T~Pnʾi\-m߂HhL"iOtOkS <\% J:}؟9Ё1P$?nĽ9l1h"E QbSBJbZuL;am 0w?KM_{)z[v7wǷ9D.Y? 'ֳrv֛4p1Y H Cαeh@\fl6Jmvi Z5 ̺[$!Zԏr00yd Gyq\1GppDaF6uSIxfZIT =Gy-M1{](1+b0/qX8C'rVmIRj}~p0ґRZʇ93X%da x Z(G]5- D٣?e3pzŮcݟ%XkǮwH} fR_v0 sMmdibTRTieM]:}W Nlb;]z4=qOX lgg&If&'EDSm#k$HY83B6vq6TI **)w**:<)v.t= `2fL2- Cf@-o}|/MVʘ47vcYT8%d\oq-Gk"5;{@^K" p&lT$3(oK@R'`: CyId *% pl%AZ&DU/'r -ߗEԻxa6q%#&֓)h -Ӽm_Nc}CZs+e~YdO|{E XGɩ5˶jÔCrƄ+SzGVzcxӝK7+g‹L)LKT2 ? "ʨ]4E_7Y6OAj.h}rh}c `}_:G)7U E$5ʬݴNuɷHK!tf9V !-$~J \mߵ\?:P_X*dEap2G#a _`'A H{e ob UC;Cg (p-I+{p:!'2'Jn+(NHծS']vz DѾ 8ݮ6&hz57՜#w|RX/\!EW?cHg8FRs~JP zZݱ5 `p'> nWrQ(_{\`Iq+۹a\.@qI^+xM?]꒜Q)0/ ɜxx/(FpF9*c(>Hց #F,0)y X(G%hR-,F/Y#D9DUa/ -eii#',<6kxS"wuinYmw|Ӧ$_Z"m,OP؎dT<wxn)wTkXo]k5쟼t6k'j ȻȻȻ"T֖ WP6R3~Jī/]2 endstream endobj 15 0 obj 7887 endobj 16 0 obj << /Type /FontDescriptor /Ascent 770 /CapHeight 727 /Descent -230 /Flags 32 /FontBBox [-951 -481 1445 1122] /FontName /NXJBXK+Helvetica /ItalicAngle 0 /StemV 98 /MaxWidth 1500 /StemH 85 /XHeight 531 /FontFile2 14 0 R >> endobj 17 0 obj [ 278 0 0 0 0 0 0 0 0 0 0 0 0 333 278 0 556 556 556 0 0 556 556 0 556 556 278 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 667 0 0 0 611 722 0 0 0 0 0 0 0 0 0 0 0 556 556 500 556 556 278 556 556 222 0 500 222 0 556 556 0 0 333 500 278 ] endobj 8 0 obj << /Type /Font /Subtype /TrueType /BaseFont /NXJBXK+Helvetica /FontDescriptor 16 0 R /Widths 17 0 R /FirstChar 32 /LastChar 116 /Encoding /MacRomanEncoding >> endobj 1 0 obj << /Title (Untitled) /Author (Ricardo Signes) /Subject () /AAPL:Keywords [ () ] /Keywords () /Creator (TextEdit) /Producer (Mac OS X 10.5.6 Quartz PDFContext) /CreationDate (D:20090116231137Z00'00') /ModDate (D:20090116231137Z00'00') >> endobj xref 0 18 0000000000 65535 f 0000010390 00000 n 0000000386 00000 n 0000001598 00000 n 0000000022 00000 n 0000000367 00000 n 0000000490 00000 n 0000001562 00000 n 0000010216 00000 n 0000000628 00000 n 0000000680 00000 n 0000000734 00000 n 0000001542 00000 n 0000001681 00000 n 0000001731 00000 n 0000009709 00000 n 0000009730 00000 n 0000009966 00000 n trailer << /Size 18 /Root 13 0 R /Info 1 0 R /ID [ <5edf68a500972e900b75ef9c0699c1be> <5edf68a500972e900b75ef9c0699c1be> ] >> startxref 10642 %%EOF Email-MIME-Kit-3.000008/t/kits/test.mkit/better-alternative.html000644 000765 000024 00000000350 14474753533 024213 0ustar00rjbsstaff000000 000000 Hello, [% friend.name() %]. It's been [% how_long %] since we saw you last.
Here is our logo:

Isn't it great?
Email-MIME-Kit-3.000008/t/kits/test.mkit/logo.jpg000644 000765 000024 00000017171 14474753533 021177 0ustar00rjbsstaff000000 000000 JFIFHHTICC_PROFILEDapplmntrRGB XYZ   acspAPPL-applrXYZ,gXYZ@bXYZTwtpthchad|,rTRCgTRCbTRCvcgtndin>desc,ddscmhmmod(cprt $XYZ ar7XYZ mXYZ 'wXYZ Rsf32 B&lcurvcurvcurvvcgtN>+j<}sm ~ % HI28 "d#%q&(* +,./=0n1245V679 :C;{<=?9@kABCDFG H9IZJKLMiNAOOPQRSrTNU'UVWXYZ{[t\m]k^l_j`jafbacTdNeghikHlmo.pgqrstuvwxz{|}&~/33.$"7SlÌ܍'Zšśǜŝա$/5666;CPXC갽e9ߵw?ùA̼g7 xE"(KmLjȜɭʻ5[a? ժ|P"ڋR߽y]A& Ol6M _0UW JQ ^rG^y 2 "[$ %'9(*S+-s.0N1w23467C8j9:;<=?@0AWBwCDEFGHIJL M'NO OPQRSTUVWmXSY1ZZ[\]^_`a|btcjd`ePfIgi jskm>noq0rpstuwxy)z@{\|x}~Հ%7EWΊ0Usڒ&N^VKDAABCCB?9/4Z¨өߪ(ȵzaG) g<§Â^8dzȊ{zwm^L7"ֽׄMڱ}IޙXtHrS3x1f#T o"PtEhG?GNnl j oHC.9 !#$Z%&()*+,-./0112345678{9]:;;;<=>?d@JAABcCCD|E2EFGSHHIeJJKrL%LMNENOPgQQRsSSTfUUVrW$WXY7YZ[%[\P\]^U^_`5`ab;ccdegh3ibjklmop?qjrsu v#wxyz*{@|b}~݁&AW| +DRWRB* Ǔ\0ʛZ!鞲xQ"y:Iάq:ϰml}Œâ8Y{ˢ5tѵTڔ=ޟoC`+/y5ndin6_XS,(l`P T9\.p =0.a:Xv ,R{*Z,eYY 7 N h & N [2):Fb"i1 O!!"#b$%$%&v'B(()*Q*+y,,-?-.}/$/0191234b5>6"7789:;L?F@GAOBIC,DEEFGHIJKLMNpOOPHQ_RySTUVWYZ/[T\]^_`bcd?ehfgij?krlmo pzr suvx;y{p}~πd,쇡Sm*e.}՛2VSeE%۲gi1Ȣs5ϥшӾ=dދJmD 7~KDl#?[x:_+Y XD@  p / T  d O?%%=Zu5E]_0  !"r#@$ $%&o'@(()*X*+,,-G-./(/014123x4F55678v9L:":;<=>i?O@:A*BBCDE\F;G"HHIJKLMNOPQRT U)VEWcXYZ[]'^\_t`maqb|cdegh0ibjklnoIprstviwyEz|;}N낌)ÇX튈$ˏ{4U7Eٝp~n\F/&E 㿯tpgX;Vժ@܊/h9h 9D?r Gn 2a1k(mG*w & n Q = ; Lf] gpL:' !"#*$9%K&d'()+3,n-.01]24#578i9;i<>8?o@ABiC7RWfTOq mE>Hh"Շ9PEɥX!y\Ph෸ؙd5f PPt8_cκ (k('@ 4dn p@%}F@5=S!1;P.QMgT>,qguPzq>dr(&7Wǡ# g*),((`ҳ*hS$82H89c>[c怸'r>$`Ӯ_ʶ~,HrISUǡ:«-n"`31N$BC>o@шoHGoV[ Dgc?J[upz(1 nA=i؀,->6zl?ʇ'pHL76ِp޳$iuK݈AZHȷ?COqo\Nm4U)[jXg~[9+ o? u{Ƃ53~v  /oA߁X۫|-+.: M H:0'Ԯ,`G*+J'8ey-nXLcӄcZ89z_h"Ҡn?]q3 4%U<$01mNwy /a*[)cهFmջmޅN "7vuϢ^44Y80+ U(yڄӞU2qm1 y-buRťFG ;T?oꭒp =%(Is%wGS/3y隇Kv$tZOqGAB)ݽ]HvtT_|K'EG:1+t+rX5wH`zUKNSQk~c_G\n-j֒25415 ypu@KYZbYW:qkf`~sk;M֦ʋ:"C>abm8M]ϲ/!ڦUT`(osư*Yx HaB/즋@ gҷ9- LsO Cǯ\υvZ驱QHaEPySD:>Ywq o+~ɐrr}3<зƧlnmHASZKo8`@kj t+\sTbh/~V>jŃ-"Q#{mTjjZ9vE ѱѨI YsJSNp!mLd3ڳPɥJ?L(]a))jУ.1g=֨iɝ$kb;XrB<:Cm-֭Y΃;Fm^#WZuY-dm ۏI5k0S2K+P3 P !bF ="("W=p:Ԕ7=`?]DXj(Q)8Ht3MSǑy ˳6bV-=@@50v'~ꢺ 6 #TZe1>֯%6VϿ5b|ş#ZU5Lx{h2["UzRirݳiiVD|sR3_4/B"r _"i*j%ⲋ&`H~ʆl+ <ǡ!?VEu \Sl-V8OY$cVQs$ <S}xVyBBZp/USެS`QE ( |+ub(0I 0 }PEPEPEPEPEPEPEP[..bm,}N?:EQEQEQEQEժ] I?)!ac\Q} (RLyWwuEi=ECHj}P0Oiz U(Oiz U(((((((((((((((((((((((((((((((((((((((((((((((((Email-MIME-Kit-3.000008/t/kits/test.mkit/manifest.yaml000644 000765 000024 00000001533 14474753533 022222 0ustar00rjbsstaff000000 000000 --- validator: - Simplest - required_fields: - friend renderer: TestRenderer header: - Subject: "Hello [% friend.name() %]" - From: "Test Sender " - X-Test: "This is an unrendered [% friend %] test." ":renderer": ~ - Band-1: "Queensrÿche" - Band-2: "Queensr\u00FFche" alternatives: - type: text/plain body: "We don't support tests." - attributes: content_type: text/html charset: utf-8 header: - X-Cantata: "[% friend %] canta y no llores" body: |

This is the unrendered [% friend %] HTML part. Renderer: null

renderer: ~ - container_type: multipart/related type: text/html path: better-alternative.html attributes: charset: utf-8 attachments: - type: image/jpeg path: logo.jpg attachments: - type: application/pdf path: bogus-report.pdf attributes: filename: report.pdf Email-MIME-Kit-3.000008/t/kits/test.mkit/manifest.json000644 000765 000024 00000002264 14474753533 022233 0ustar00rjbsstaff000000 000000 { "validator": [ "Simplest", { "required_fields": [ "friend" ] } ], "renderer": "TestRenderer", "header": [ { "Subject": "Hello [% friend.name() %]" }, { "From": "Test Sender " }, { "X-Test": "This is an unrendered [% friend %] test.", ":renderer": null }, { "Band-1": "Queensrÿche" }, { "Band-2": "Queensr\u00FFche" } ], "alternatives": [ { "type": "text/plain", "body": "We don't support tests." }, { "attributes": { "content_type": "text/html", "charset": "utf-8" }, "header": [ { "X-Cantata": "[% friend %] canta y no llores" } ], "body": "

This is the unrendered [% friend %] HTML part. Renderer: null

", "renderer": null }, { "container_type": "multipart/related", "type": "text/html", "path": "better-alternative.html", "attributes": { "charset": "utf-8" }, "attachments": [ { "type": "image/jpeg", "path": "logo.jpg" } ] } ], "attachments": [ { "type": "application/pdf", "path": "bogus-report.pdf", "attributes": { "filename": "report.pdf" } } ] }