t000755000766000766 012210534043 16452 5ustar00rjbsrjbs000000000000Email-MIME-Attachment-Stripper-1.31701.t100644000766000766 536712210534043 17232 0ustar00rjbsrjbs000000000000Email-MIME-Attachment-Stripper-1.317/t use strict; use warnings; use Test::More tests => 38; use_ok "Email::MIME::Attachment::Stripper"; use Email::MIME; open IN, "t/Mail/attached1" or die "Can't read mail"; my $message = do { local $/; ; }; { my $msg = Email::MIME->new($message); isa_ok $msg => "Email::MIME"; ok $msg->parts > 1, "Message has attachments"; ok my $strp = Email::MIME::Attachment::Stripper->new($msg), "Get stripper"; isa_ok $strp => "Email::MIME::Attachment::Stripper"; ok my $detached = $strp->message, "Get detached message"; isa_ok $detached => "Email::MIME"; ok !($detached->parts > 1), "Message no longer has attachments"; ok my @att = $strp->attachments, "Get attachments"; is @att, 3, "Got 3 attachments"; is $att[0]->{content_type}, "text/plain", "First attachment is plain"; is $att[1]->{content_type}, "application/postscript", "2nd is .ps"; is $att[2]->{content_type}, "text/html", "3rd is html"; is $att[0]->{filename}, "wzl.dot", "First attachment named OK"; is $att[1]->{filename}, "wzl.ps", "As is 2nd"; is $att[2]->{filename}, "zeldo.html", "And 3rd"; like $att[0]->{payload}, qr/^digraph G/, "First attachment has contains the right stuff"; like $att[1]->{payload}, qr/^%!PS-Adobe-2\.0/, "...As does second"; } open IN, "t/Mail/attached2" or die "Can't read mail"; $message = do { local $/; ; }; { my $msg = Email::MIME->new($message); isa_ok $msg => "Email::MIME"; ok $msg->parts >1, "Message has attachments"; ok my $strp = Email::MIME::Attachment::Stripper->new($msg), "Get stripper"; isa_ok $strp => "Email::MIME::Attachment::Stripper"; ok my $detached = $strp->message, "Get detached message"; isa_ok $detached => "Email::MIME"; ok !($detached->parts > 1), "Message no longer has attachments"; is $strp->attachments, 1, "Got 1 attachment"; my ($att) = $strp->attachments; is $att->{content_type}, "message/rfc822", "attachment is another message"; is $att->{filename}, "", "With no name"; } open IN, "t/Mail/attached3" or die "Can't read mail"; $message = do { local $/; ; }; { my $msg = Email::MIME->new($message); isa_ok $msg => "Email::MIME"; ok $msg->parts >1, "Message has attachments"; ok my $strp = Email::MIME::Attachment::Stripper->new($msg), "Get stripper"; isa_ok $strp => "Email::MIME::Attachment::Stripper"; ok my $detached = $strp->message, "Get detached message"; #use Data::Dumper;print Dumper $detached->as_string; isa_ok $detached => "Email::MIME"; ok !($detached->parts > 1), "Message no longer has attachments"; like($detached->as_string, qr/pointless/); is(($strp->attachments)[1]->{filename}, "", "No filename"); $msg = Email::MIME->new($message); my $strp2 = Email::MIME::Attachment::Stripper->new($msg, force_filename=>1); like(($strp2->attachments)[1]->{filename}, qr/png/, "Got filename"); } 02.t100644000766000766 535712210534043 17232 0ustar00rjbsrjbs000000000000Email-MIME-Attachment-Stripper-1.317/tuse Test::More tests => 1; use Email::MIME; use Email::MIME::Attachment::Stripper; use Data::Dumper; use Email::Simple; { local $/; $mess = ; } my $msg = Email::MIME->new($mess); $mm = Email::MIME::Attachment::Stripper->new( $msg ); do{ok(0); require Data::Dumper;warn Data::Dumper::Dumper($_);} for $mm->attachments; like($mm->message->body, qr/\S/, "We have a body"); __DATA__ Return-Path: Mailing-List: contact perl6-internals-help@perl.org; run by ezmlm Delivered-To: mailing list perl6-internals@perl.org Received: (qmail 15206 invoked from network); 2 Aug 2000 21:04:45 -0000 Received: from jtobey.ne.mediaone.net (HELO feynman.localnet) (24.147.19.222) by tmtowtdi.perl.org with SMTP; 2 Aug 2000 21:04:45 -0000 Received: by ne.mediaone.net via sendmail from stdin id (Debian Smail3.2.0.102) for perl6-internals@perl.org; Wed, 2 Aug 2000 17:09:12 -0400 (EDT) Message-Id: Date: Wed, 2 Aug 2000 17:09:12 -0400 (EDT) From: John Tobey To: dan@sidhe.org CC: perl6-internals@perl.org, brent.fulgham@xpsystems.com In-reply-to: <4.3.2.7.0.20000802165315.00d4fdd0@24.8.96.48> (message from Dan Sugalski on Wed, 02 Aug 2000 16:55:16 -0400) Subject: Pickle now Helmi (was Re: GC) References: <4.3.2.7.0.20000802165315.00d4fdd0@24.8.96.48> Dan Sugalski wrote: > At 04:38 PM 8/2/00 -0400, John Tobey wrote: > >Can I safely assume that we will be counting references for garbage > >collection? > > No. > > In fact, you can safely assume that GC will be handled by some non-refcount > method, and that GC and end-of-scope action will be decoupled. (Whether > that *happens* is a separate issue, but it was the plan) No problem. I'll have both an addref()/delref() pair and a protect()/unprotect() pair and use all four functions where appropriate. One of the pairs will be no-ops, depending on which GC we use. Pickle may end up bringing mark+sweep to Perl 5 as a viable option... By the way, an announcement: Pickle is now called HELMI, at the suggestion of Brent Fulgham, who has volunteered to get in on SourceForge. Brent explains: HELMI (Helmi is Finnish for 'pearl'). We can then create some stupid acronym: _H_euristic _E_xtension _L_anguage and _M_odular _I_nterpreter coupled with the more whimsical version: _H_orrifyingly _E_clectic _L_anguage of _M_ass _I_nsanity Thanks, Brent! -- John Tobey, late nite hacker \\\ /// ]]] With enough bugs, all eyes are shallow. [[[ /// \\\ Email-MIME-Attachment-Stripper-1.317000755000766000766 012210534043 16266 5ustar00rjbsrjbs000000000000README100644000766000766 47712210534043 17217 0ustar00rjbsrjbs000000000000Email-MIME-Attachment-Stripper-1.317 This archive contains the distribution Email-MIME-Attachment-Stripper, version 1.317: strip the attachments from an email This software is copyright (c) 2004 by Simon Cozens. This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself. Changes100644000766000766 267612210534043 17655 0ustar00rjbsrjbs000000000000Email-MIME-Attachment-Stripper-1.317Revision history for Email-MIME-Attachment-Stripper 1.317 2013-08-31 23:44:32 America/New_York update repo and bugtracker information no significant changes, but please see a note on the future: https://github.com/rjbs/Email-MIME-Attachment-Stripper/issues/2 1.316 2009-01-22 add repo location metadata 1.315 2008-07-08 http://rt.cpan.org/Public/Bug/Display.html?id=20536 improve docs, improve handling of nested multipart thanks to DROLSKY and to the guys at Best Practical 1.314 2007-10-02 bug fix: bump up prereq on Email::MIME::Modifier (fixes a scalar deref issue, reported by JESSE) 1.313 2006-11-25 resolve bug 19988, make content-type check for inline text case-insens packaging improvements 1.311 2006-08-01 no code changes update Makefile.PL to be more mine-able 1.31 2004-12-23 Rebuilt to use the Perl Email Project more effectively. Change author. WARNING: Interface will probably change in next release to return parts as Email::MIME objects! 1.3 Wed Aug 25 12:26:34 BST 2004 force_filename option 1.2 Sun Jul 11 17:24:34 BST 2004 Work OK on things that aren't even MIME messages. 1.1 Sat Jul 3 17:52:40 BST 2004 We never checked the ->body! Horrors! 1.00 first CPAN release. LICENSE100644000766000766 4365312210534043 17407 0ustar00rjbsrjbs000000000000Email-MIME-Attachment-Stripper-1.317This software is copyright (c) 2004 by Simon Cozens. This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself. 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) 2004 by Simon Cozens. 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, Suite 500, Boston, MA 02110-1335 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 Artistic License 1.0 --- This software is Copyright (c) 2004 by Simon Cozens. This is free software, licensed under: The 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. - "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 ftp.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) accompany any non-standard executables with their corresponding Standard Version executables, giving the non-standard executables non-standard names, and clearly documenting 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. 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 whomever generated them, and may be sold commercially, and may be aggregated with this Package. 7. C or perl subroutines supplied by you and linked into this Package shall not be considered part of this Package. 8. The name of the Copyright Holder may not be used to endorse or promote products derived from this software without specific prior written permission. 9. THIS PACKAGE IS PROVIDED "AS IS" AND WITHOUT ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED WARRANTIES OF MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE. The End dist.ini100644000766000766 22212210534043 17767 0ustar00rjbsrjbs000000000000Email-MIME-Attachment-Stripper-1.317name = Email-MIME-Attachment-Stripper author = Simon Cozens license = Perl_5 copyright_holder = Simon Cozens copyright_year = 2004 [@RJBS] META.yml100644000766000766 1243612210534043 17646 0ustar00rjbsrjbs000000000000Email-MIME-Attachment-Stripper-1.317--- abstract: 'strip the attachments from an email' author: - 'Simon Cozens' build_requires: Capture::Tiny: 0 Data::Dumper: 0 Email::Simple: 0 Test::More: 0.96 blib: 0 configure_requires: ExtUtils::MakeMaker: 6.30 dynamic_config: 0 generated_by: 'Dist::Zilla version 4.300035, CPAN::Meta::Converter version 2.132140' license: perl meta-spec: url: http://module-build.sourceforge.net/META-spec-v1.4.html version: 1.4 name: Email-MIME-Attachment-Stripper requires: Carp: 0 Email::Abstract: 0 Email::MIME: 1.861 Email::MIME::ContentType: 1.016 strict: 0 warnings: 0 resources: bugtracker: https://github.com/rjbs/Email-MIME-Attachment-Stripper/issues homepage: https://github.com/rjbs/Email-MIME-Attachment-Stripper repository: https://github.com/rjbs/Email-MIME-Attachment-Stripper.git version: 1.317 x_Dist_Zilla: perl: version: 5.019003 plugins: - class: Dist::Zilla::Plugin::Git::GatherDir name: '@RJBS/Git::GatherDir' version: 2.014 - class: Dist::Zilla::Plugin::CheckPrereqsIndexed name: '@RJBS/CheckPrereqsIndexed' version: 0.009 - class: Dist::Zilla::Plugin::CheckExtraTests name: '@RJBS/CheckExtraTests' version: 0.011 - class: Dist::Zilla::Plugin::PruneCruft name: '@RJBS/@Filter/PruneCruft' version: 4.300035 - class: Dist::Zilla::Plugin::ManifestSkip name: '@RJBS/@Filter/ManifestSkip' version: 4.300035 - class: Dist::Zilla::Plugin::MetaYAML name: '@RJBS/@Filter/MetaYAML' version: 4.300035 - class: Dist::Zilla::Plugin::License name: '@RJBS/@Filter/License' version: 4.300035 - class: Dist::Zilla::Plugin::Readme name: '@RJBS/@Filter/Readme' version: 4.300035 - class: Dist::Zilla::Plugin::ExecDir name: '@RJBS/@Filter/ExecDir' version: 4.300035 - class: Dist::Zilla::Plugin::ShareDir name: '@RJBS/@Filter/ShareDir' version: 4.300035 - class: Dist::Zilla::Plugin::MakeMaker name: '@RJBS/@Filter/MakeMaker' version: 4.300035 - class: Dist::Zilla::Plugin::Manifest name: '@RJBS/@Filter/Manifest' version: 4.300035 - class: Dist::Zilla::Plugin::TestRelease name: '@RJBS/@Filter/TestRelease' version: 4.300035 - class: Dist::Zilla::Plugin::ConfirmRelease name: '@RJBS/@Filter/ConfirmRelease' version: 4.300035 - class: Dist::Zilla::Plugin::UploadToCPAN name: '@RJBS/@Filter/UploadToCPAN' version: 4.300035 - class: Dist::Zilla::Plugin::AutoPrereqs name: '@RJBS/AutoPrereqs' version: 4.300035 - class: Dist::Zilla::Plugin::Git::NextVersion name: '@RJBS/Git::NextVersion' version: 2.014 - class: Dist::Zilla::Plugin::PkgVersion name: '@RJBS/PkgVersion' version: 4.300035 - class: Dist::Zilla::Plugin::MetaConfig name: '@RJBS/MetaConfig' version: 4.300035 - class: Dist::Zilla::Plugin::MetaJSON name: '@RJBS/MetaJSON' version: 4.300035 - class: Dist::Zilla::Plugin::NextRelease name: '@RJBS/NextRelease' version: 4.300035 - class: Dist::Zilla::Plugin::Test::ChangesHasContent name: '@RJBS/Test::ChangesHasContent' version: 0.006 - class: Dist::Zilla::Plugin::PodSyntaxTests name: '@RJBS/PodSyntaxTests' version: 4.300035 - class: Dist::Zilla::Plugin::Test::Compile config: Dist::Zilla::Plugin::Test::Compile: module_finder: - ':InstallModules' script_finder: - ':ExecFiles' name: '@RJBS/Test::Compile' version: 2.018 - class: Dist::Zilla::Plugin::ReportVersions::Tiny name: '@RJBS/ReportVersions::Tiny' version: 1.09 - class: Dist::Zilla::Plugin::Prereqs config: Dist::Zilla::Plugin::Prereqs: phase: test type: requires name: '@RJBS/TestMoreWithSubtests' version: 4.300035 - class: Dist::Zilla::Plugin::PodWeaver name: '@RJBS/PodWeaver' version: 3.101642 - class: Dist::Zilla::Plugin::GithubMeta name: '@RJBS/GithubMeta' version: 0.30 - class: Dist::Zilla::Plugin::Git::Check name: '@RJBS/@Git/Check' version: 2.014 - class: Dist::Zilla::Plugin::Git::Commit name: '@RJBS/@Git/Commit' version: 2.014 - class: Dist::Zilla::Plugin::Git::Tag name: '@RJBS/@Git/Tag' version: 2.014 - class: Dist::Zilla::Plugin::Git::Push name: '@RJBS/@Git/Push' version: 2.014 - class: Dist::Zilla::Plugin::FinderCode name: ':InstallModules' version: 4.300035 - class: Dist::Zilla::Plugin::FinderCode name: ':IncModules' version: 4.300035 - class: Dist::Zilla::Plugin::FinderCode name: ':TestFiles' version: 4.300035 - class: Dist::Zilla::Plugin::FinderCode name: ':ExecFiles' version: 4.300035 - class: Dist::Zilla::Plugin::FinderCode name: ':ShareFiles' version: 4.300035 - class: Dist::Zilla::Plugin::FinderCode name: ':MainModule' version: 4.300035 zilla: class: Dist::Zilla::Dist::Builder config: is_trial: 0 version: 4.300035 MANIFEST100644000766000766 55612210534043 17466 0ustar00rjbsrjbs000000000000Email-MIME-Attachment-Stripper-1.317Changes LICENSE MANIFEST META.json META.yml Makefile.PL README dist.ini lib/Email/MIME/Attachment/Stripper.pm t/00-compile.t t/000-report-versions-tiny.t t/01.t t/02.t t/Mail/altern.msg t/Mail/attached1 t/Mail/attached2 t/Mail/attached3 t/Mail/attached4 t/Mail/mixed.msg t/altern.t t/mixed.t t/nested-parts.t xt/release/changes_has_content.t xt/release/pod-syntax.t mixed.t100644000766000766 164212210534043 20110 0ustar00rjbsrjbs000000000000Email-MIME-Attachment-Stripper-1.317/t#!perl use strict; use warnings; use Test::More tests => 3; use_ok "Email::MIME::Attachment::Stripper"; use Email::MIME; open IN, "t/Mail/mixed.msg" or die "Can't read mail"; my $message = do { local $/; ; }; sub parts { my ($msg) = @_; my ($ct) = ($msg->content_type =~ /^(.+?);/); my @parts = ($ct, [ map { parts($_) } $msg->subparts ]); return \@parts; } { my $msg = Email::MIME->new($message); my $want = [ 'multipart/mixed' => [ [ 'text/plain' => [] ], [ 'application/octet-stream' => [] ], ], ]; is_deeply( parts($msg), $want, "the structure of the msg from disk is what we expect", ); my $stripper = Email::MIME::Attachment::Stripper->new($msg); my $want_stripped = [ 'multipart/mixed' => [ [ 'text/plain' => [] ], ], ]; is_deeply( parts($stripper->message), $want_stripped, "the structure of the msg after stripping", ); } META.json100644000766000766 2043012210534043 20007 0ustar00rjbsrjbs000000000000Email-MIME-Attachment-Stripper-1.317{ "abstract" : "strip the attachments from an email", "author" : [ "Simon Cozens" ], "dynamic_config" : 0, "generated_by" : "Dist::Zilla version 4.300035, CPAN::Meta::Converter version 2.132140", "license" : [ "perl_5" ], "meta-spec" : { "url" : "http://search.cpan.org/perldoc?CPAN::Meta::Spec", "version" : "2" }, "name" : "Email-MIME-Attachment-Stripper", "prereqs" : { "configure" : { "requires" : { "ExtUtils::MakeMaker" : "6.30" } }, "develop" : { "requires" : { "Test::Pod" : "1.41", "version" : "0.9901" } }, "runtime" : { "requires" : { "Carp" : "0", "Email::Abstract" : "0", "Email::MIME" : "1.861", "Email::MIME::ContentType" : "1.016", "strict" : "0", "warnings" : "0" } }, "test" : { "requires" : { "Capture::Tiny" : "0", "Data::Dumper" : "0", "Email::Simple" : "0", "Test::More" : "0.96", "blib" : "0" } } }, "release_status" : "stable", "resources" : { "bugtracker" : { "web" : "https://github.com/rjbs/Email-MIME-Attachment-Stripper/issues" }, "homepage" : "https://github.com/rjbs/Email-MIME-Attachment-Stripper", "repository" : { "type" : "git", "url" : "https://github.com/rjbs/Email-MIME-Attachment-Stripper.git", "web" : "https://github.com/rjbs/Email-MIME-Attachment-Stripper" } }, "version" : "1.317", "x_Dist_Zilla" : { "perl" : { "version" : "5.019003" }, "plugins" : [ { "class" : "Dist::Zilla::Plugin::Git::GatherDir", "name" : "@RJBS/Git::GatherDir", "version" : "2.014" }, { "class" : "Dist::Zilla::Plugin::CheckPrereqsIndexed", "name" : "@RJBS/CheckPrereqsIndexed", "version" : "0.009" }, { "class" : "Dist::Zilla::Plugin::CheckExtraTests", "name" : "@RJBS/CheckExtraTests", "version" : "0.011" }, { "class" : "Dist::Zilla::Plugin::PruneCruft", "name" : "@RJBS/@Filter/PruneCruft", "version" : "4.300035" }, { "class" : "Dist::Zilla::Plugin::ManifestSkip", "name" : "@RJBS/@Filter/ManifestSkip", "version" : "4.300035" }, { "class" : "Dist::Zilla::Plugin::MetaYAML", "name" : "@RJBS/@Filter/MetaYAML", "version" : "4.300035" }, { "class" : "Dist::Zilla::Plugin::License", "name" : "@RJBS/@Filter/License", "version" : "4.300035" }, { "class" : "Dist::Zilla::Plugin::Readme", "name" : "@RJBS/@Filter/Readme", "version" : "4.300035" }, { "class" : "Dist::Zilla::Plugin::ExecDir", "name" : "@RJBS/@Filter/ExecDir", "version" : "4.300035" }, { "class" : "Dist::Zilla::Plugin::ShareDir", "name" : "@RJBS/@Filter/ShareDir", "version" : "4.300035" }, { "class" : "Dist::Zilla::Plugin::MakeMaker", "name" : "@RJBS/@Filter/MakeMaker", "version" : "4.300035" }, { "class" : "Dist::Zilla::Plugin::Manifest", "name" : "@RJBS/@Filter/Manifest", "version" : "4.300035" }, { "class" : "Dist::Zilla::Plugin::TestRelease", "name" : "@RJBS/@Filter/TestRelease", "version" : "4.300035" }, { "class" : "Dist::Zilla::Plugin::ConfirmRelease", "name" : "@RJBS/@Filter/ConfirmRelease", "version" : "4.300035" }, { "class" : "Dist::Zilla::Plugin::UploadToCPAN", "name" : "@RJBS/@Filter/UploadToCPAN", "version" : "4.300035" }, { "class" : "Dist::Zilla::Plugin::AutoPrereqs", "name" : "@RJBS/AutoPrereqs", "version" : "4.300035" }, { "class" : "Dist::Zilla::Plugin::Git::NextVersion", "name" : "@RJBS/Git::NextVersion", "version" : "2.014" }, { "class" : "Dist::Zilla::Plugin::PkgVersion", "name" : "@RJBS/PkgVersion", "version" : "4.300035" }, { "class" : "Dist::Zilla::Plugin::MetaConfig", "name" : "@RJBS/MetaConfig", "version" : "4.300035" }, { "class" : "Dist::Zilla::Plugin::MetaJSON", "name" : "@RJBS/MetaJSON", "version" : "4.300035" }, { "class" : "Dist::Zilla::Plugin::NextRelease", "name" : "@RJBS/NextRelease", "version" : "4.300035" }, { "class" : "Dist::Zilla::Plugin::Test::ChangesHasContent", "name" : "@RJBS/Test::ChangesHasContent", "version" : "0.006" }, { "class" : "Dist::Zilla::Plugin::PodSyntaxTests", "name" : "@RJBS/PodSyntaxTests", "version" : "4.300035" }, { "class" : "Dist::Zilla::Plugin::Test::Compile", "config" : { "Dist::Zilla::Plugin::Test::Compile" : { "module_finder" : [ ":InstallModules" ], "script_finder" : [ ":ExecFiles" ] } }, "name" : "@RJBS/Test::Compile", "version" : "2.018" }, { "class" : "Dist::Zilla::Plugin::ReportVersions::Tiny", "name" : "@RJBS/ReportVersions::Tiny", "version" : "1.09" }, { "class" : "Dist::Zilla::Plugin::Prereqs", "config" : { "Dist::Zilla::Plugin::Prereqs" : { "phase" : "test", "type" : "requires" } }, "name" : "@RJBS/TestMoreWithSubtests", "version" : "4.300035" }, { "class" : "Dist::Zilla::Plugin::PodWeaver", "name" : "@RJBS/PodWeaver", "version" : "3.101642" }, { "class" : "Dist::Zilla::Plugin::GithubMeta", "name" : "@RJBS/GithubMeta", "version" : "0.30" }, { "class" : "Dist::Zilla::Plugin::Git::Check", "name" : "@RJBS/@Git/Check", "version" : "2.014" }, { "class" : "Dist::Zilla::Plugin::Git::Commit", "name" : "@RJBS/@Git/Commit", "version" : "2.014" }, { "class" : "Dist::Zilla::Plugin::Git::Tag", "name" : "@RJBS/@Git/Tag", "version" : "2.014" }, { "class" : "Dist::Zilla::Plugin::Git::Push", "name" : "@RJBS/@Git/Push", "version" : "2.014" }, { "class" : "Dist::Zilla::Plugin::FinderCode", "name" : ":InstallModules", "version" : "4.300035" }, { "class" : "Dist::Zilla::Plugin::FinderCode", "name" : ":IncModules", "version" : "4.300035" }, { "class" : "Dist::Zilla::Plugin::FinderCode", "name" : ":TestFiles", "version" : "4.300035" }, { "class" : "Dist::Zilla::Plugin::FinderCode", "name" : ":ExecFiles", "version" : "4.300035" }, { "class" : "Dist::Zilla::Plugin::FinderCode", "name" : ":ShareFiles", "version" : "4.300035" }, { "class" : "Dist::Zilla::Plugin::FinderCode", "name" : ":MainModule", "version" : "4.300035" } ], "zilla" : { "class" : "Dist::Zilla::Dist::Builder", "config" : { "is_trial" : "0" }, "version" : "4.300035" } } } altern.t100644000766000766 174512210534043 20273 0ustar00rjbsrjbs000000000000Email-MIME-Attachment-Stripper-1.317/t#!perl use strict; use warnings; use Test::More tests => 3; use_ok "Email::MIME::Attachment::Stripper"; use Email::MIME; open IN, "t/Mail/altern.msg" or die "Can't read mail"; my $message = do { local $/; ; }; sub parts { my ($msg) = @_; my ($ct) = ($msg->content_type =~ /^(.+?)(;|$)/); my @parts = ($ct, [ map { parts($_) } $msg->subparts ]); return \@parts; } { my $msg = Email::MIME->new($message); my $want = [ 'multipart/mixed' => [ [ 'multipart/alternative' => [ [ 'text/plain' => [] ], [ 'text/html' => [] ], ], ], [ 'application/pdf' => [], ] ] ]; is_deeply(parts($msg), $want, "the msg from disk is what we expect"); my $stripper = Email::MIME::Attachment::Stripper->new($msg); my $want_stripped = [ 'multipart/mixed' => [ [ 'text/plain' => [] ], ], ]; is_deeply( parts($stripper->message), $want_stripped, "we strip down to what we want", ); } Makefile.PL100644000766000766 314612210534043 20325 0ustar00rjbsrjbs000000000000Email-MIME-Attachment-Stripper-1.317 use strict; use warnings; use ExtUtils::MakeMaker 6.30; my %WriteMakefileArgs = ( "ABSTRACT" => "strip the attachments from an email", "AUTHOR" => "Simon Cozens", "BUILD_REQUIRES" => {}, "CONFIGURE_REQUIRES" => { "ExtUtils::MakeMaker" => "6.30" }, "DISTNAME" => "Email-MIME-Attachment-Stripper", "EXE_FILES" => [], "LICENSE" => "perl", "NAME" => "Email::MIME::Attachment::Stripper", "PREREQ_PM" => { "Carp" => 0, "Email::Abstract" => 0, "Email::MIME" => "1.861", "Email::MIME::ContentType" => "1.016", "strict" => 0, "warnings" => 0 }, "TEST_REQUIRES" => { "Capture::Tiny" => 0, "Data::Dumper" => 0, "Email::Simple" => 0, "Test::More" => "0.96", "blib" => 0 }, "VERSION" => "1.317", "test" => { "TESTS" => "t/*.t" } ); unless ( eval { ExtUtils::MakeMaker->VERSION(6.63_03) } ) { my $tr = delete $WriteMakefileArgs{TEST_REQUIRES}; my $br = $WriteMakefileArgs{BUILD_REQUIRES}; for my $mod ( keys %$tr ) { if ( exists $br->{$mod} ) { $br->{$mod} = $tr->{$mod} if $tr->{$mod} > $br->{$mod}; } else { $br->{$mod} = $tr->{$mod}; } } } unless ( eval { ExtUtils::MakeMaker->VERSION(6.56) } ) { my $br = delete $WriteMakefileArgs{BUILD_REQUIRES}; my $pp = $WriteMakefileArgs{PREREQ_PM}; for my $mod ( keys %$br ) { if ( exists $pp->{$mod} ) { $pp->{$mod} = $br->{$mod} if $br->{$mod} > $pp->{$mod}; } else { $pp->{$mod} = $br->{$mod}; } } } delete $WriteMakefileArgs{CONFIGURE_REQUIRES} unless eval { ExtUtils::MakeMaker->VERSION(6.52) }; WriteMakefile(%WriteMakefileArgs); 00-compile.t100644000766000766 115012210534043 20641 0ustar00rjbsrjbs000000000000Email-MIME-Attachment-Stripper-1.317/tuse strict; use warnings; # This test was generated via Dist::Zilla::Plugin::Test::Compile 2.018 use Test::More 0.88; use Capture::Tiny qw{ capture }; my @module_files = qw( Email/MIME/Attachment/Stripper.pm ); my @scripts = qw( ); # no fake home requested my @warnings; for my $lib (@module_files) { my ($stdout, $stderr, $exit) = capture { system($^X, '-Mblib', '-e', qq{require q[$lib]}); }; is($?, 0, "$lib loaded ok"); warn $stderr if $stderr; push @warnings, $stderr if $stderr; } is(scalar(@warnings), 0, 'no warnings found') if $ENV{AUTHOR_TESTING}; done_testing; Mail000755000766000766 012210534043 17334 5ustar00rjbsrjbs000000000000Email-MIME-Attachment-Stripper-1.317/tattached1100644000766000766 4046712210534043 21310 0ustar00rjbsrjbs000000000000Email-MIME-Attachment-Stripper-1.317/t/MailFrom simon@netthink.co.uk Tue Dec 10 11:07:36 2002 Return-Path: Delivered-To: simon@soto.kasei.com Received: by soto.kasei.com (Postfix, from userid 65534) id 17FCF1C6AF; Tue, 10 Dec 2002 11:07:38 +0000 (GMT) Received: from deep-dark-truthful-mirror.pad (simoncozens-2.dsl.easynet.co.uk [217.204.174.162]) by soto.kasei.com (Postfix) with ESMTP id C5D021C699 for ; Tue, 10 Dec 2002 11:07:36 +0000 (GMT) Received: from simon by deep-dark-truthful-mirror.pad with local (Exim 3.36 #1 (Debian)) id 18LiEi-0008WN-00 for ; Tue, 10 Dec 2002 11:07:36 +0000 Date: Tue, 10 Dec 2002 11:07:36 +0000 From: Simon Cozens To: simon@kasei.com Subject: Test Message Message-ID: <20021210110736.GA32736@deep-dark-truthful-mirror.pad> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="3V7upXqbjpZ4EhLz" Content-Disposition: inline User-Agent: Mutt/1.4i-ja.1 X-Operating-System: Linux deep-dark-truthful-mirror 2.4.9 X-POM: The Moon is Waxing Crescent (38% of Full) X-Addresses: The simon@cozens.net address is deprecated due to being broken. simon@brecon.co.uk still works, but simon-cozens.org or netthink.co.uk are preferred. Sender: Simon Cozens X-Spam-Status: No, hits=-0.6 required=5.0 tests=SPAM_PHRASE_03_05,USER_AGENT,USER_AGENT_MUTT version=2.43 X-Spam-Level: --3V7upXqbjpZ4EhLz Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Here is a test message with several attachments. -- perl -le 'print (@) - $; +$ (- % _); * *+* *' --3V7upXqbjpZ4EhLz Content-Type: text/plain; charset=iso-2022-jp Content-Disposition: attachment; filename="wzl.dot" digraph G { rankdir=LR; node [shape=record]; list_post [ label = "list_post | id | mail | list "]; addressee [ label = "addressee | id | email_name |
email_address | organisation "]; correspondent [ label = "correspondent | id | mail | type | addressee "]; email [ label = "email | id |
address "]; embedded_url [ label = "embedded_url | urlid | mail | uri "]; mail [ label = "mail | id | messageid | message_date | index_date | subject | message" ]; mailing_list [ label = "mailing_list | id | name "]; name_ [ label = "name | id | name "]; organisation [ label = "organisation | id | name "]; list_post:mail -> mail:id; list_post:list -> mailing_list:id; correspondent:addressee -> addressee:id; correspondent:mail -> mail:id; addressee:address -> email:id; addressee:name -> name_:id; embedded_url:mail -> mail:id; } --3V7upXqbjpZ4EhLz Content-Type: application/postscript Content-Disposition: attachment; filename="wzl.ps" Content-Transfer-Encoding: quoted-printable %!PS-Adobe-2.0=0A%%Creator: dot version 1.8.9 (Wed Oct 2 09:41:21 MDT 2002= )=0A%%For: (simon) Simon Cozens=0A%%Title: G=0A%%Pages: (atend)=0A%%Boundin= gBox: 35 35 415 500=0A%%EndComments=0Asave=0A%%BeginProlog=0A/DotDict 200 d= ict def=0ADotDict begin=0A=0A/setupLatin1 {=0Amark=0A/EncodingVector 256 ar= ray def=0A EncodingVector 0=0A=0AISOLatin1Encoding 0 255 getinterval putint= erval=0A=0AEncodingVector=0A dup 306 /AE=0A dup 301 /Aacute=0A dup 302 /= Acircumflex=0A dup 304 /Adieresis=0A dup 300 /Agrave=0A dup 305 /Aring= =0A dup 303 /Atilde=0A dup 307 /Ccedilla=0A dup 311 /Eacute=0A dup 312 = /Ecircumflex=0A dup 313 /Edieresis=0A dup 310 /Egrave=0A dup 315 /Iacute= =0A dup 316 /Icircumflex=0A dup 317 /Idieresis=0A dup 314 /Igrave=0A du= p 334 /Udieresis=0A dup 335 /Yacute=0A dup 376 /thorn=0A dup 337 /german= dbls=0A dup 341 /aacute=0A dup 342 /acircumflex=0A dup 344 /adieresis=0A= dup 346 /ae=0A dup 340 /agrave=0A dup 345 /aring=0A dup 347 /ccedilla= =0A dup 351 /eacute=0A dup 352 /ecircumflex=0A dup 353 /edieresis=0A du= p 350 /egrave=0A dup 355 /iacute=0A dup 356 /icircumflex=0A dup 357 /idi= eresis=0A dup 354 /igrave=0A dup 360 /dcroat=0A dup 361 /ntilde=0A dup = 363 /oacute=0A dup 364 /ocircumflex=0A dup 366 /odieresis=0A dup 362 /og= rave=0A dup 365 /otilde=0A dup 370 /oslash=0A dup 372 /uacute=0A dup 37= 3 /ucircumflex=0A dup 374 /udieresis=0A dup 371 /ugrave=0A dup 375 /yacu= te=0A dup 377 /ydieresis =0A=0A% Set up ISO Latin 1 character encoding=0A= /starnetISO {=0A dup dup findfont dup length dict begin=0A { = 1 index /FID ne { def }{ pop pop } ifelse=0A } forall=0A /Enc= oding EncodingVector def=0A currentdict end definefont=0A} def=0A/Ti= mes-Roman starnetISO def=0A/Times-Italic starnetISO def=0A/Times-Bold starn= etISO def=0A/Times-BoldItalic starnetISO def=0A/Helvetica starnetISO def=0A= /Helvetica-Oblique starnetISO def=0A/Helvetica-Bold starnetISO def=0A/Helve= tica-BoldOblique starnetISO def=0A/Courier starnetISO def=0A/Courier-Obliqu= e starnetISO def=0A/Courier-Bold starnetISO def=0A/Courier-BoldOblique star= netISO def=0Acleartomark=0A} bind def=0A=0A%%BeginResource: procset=0A/coor= d-font-family /Times-Roman def=0A/default-font-family /Times-Roman def=0A/c= oordfont coord-font-family findfont 8 scalefont def=0A=0A/InvScaleFactor 1.= 0 def=0A/set_scale {=0A dup 1 exch div /InvScaleFactor exch def=0A dup scal= e=0A} bind def=0A=0A% styles=0A/solid { [] 0 setdash } bind def=0A/dashed {= [9 InvScaleFactor mul dup ] 0 setdash } bind def=0A/dotted { [1 InvScaleFa= ctor mul 6 InvScaleFactor mul] 0 setdash } bind def=0A/invis {/fill {newpat= h} def /stroke {newpath} def /show {pop newpath} def} bind def=0A/bold { 2 = setlinewidth } bind def=0A/filled { } bind def=0A/unfilled { } bind def=0A/= rounded { } bind def=0A/diagonals { } bind def=0A=0A% hooks for setting col= or =0A/nodecolor { sethsbcolor } bind def=0A/edgecolor { sethsbcolor } bind= def=0A/graphcolor { sethsbcolor } bind def=0A/nopcolor {pop pop pop} bind = def=0A=0A/beginpage { % i j npages=0A /npages exch def=0A /j exch def=0A /i= exch def=0A /str 10 string def=0A npages 1 gt {=0A gsave=0A coordfont s= etfont=0A 0 0 moveto=0A (\() show i str cvs show (,) show j str cvs sho= w (\)) show=0A grestore=0A } if=0A} bind def=0A=0A/set_font {=0A findfont = exch=0A scalefont setfont=0A} def=0A=0A% draw aligned label in bounding box= aligned to current point=0A/alignedtext { % width adj text=0A /text exch= def=0A /adj exch def=0A /width exch def=0A gsave=0A width 0 gt {=0A tex= t stringwidth pop adj mul 0 rmoveto=0A } if=0A [] 0 setdash=0A text show= =0A grestore=0A} def=0A=0A/boxprim { % xcorner ycorner xsize ysize=0A 4= 2 roll=0A moveto=0A 2 copy=0A exch 0 rlineto=0A 0 exch rlineto=0A pop= neg 0 rlineto=0A closepath=0A} bind def=0A=0A/ellipse_path {=0A /ry exch = def=0A /rx exch def=0A /y exch def=0A /x exch def=0A matrix currentmatrix= =0A newpath=0A x y translate=0A rx ry scale=0A 0 0 1 0 360 arc=0A setmatrix= =0A} bind def=0A=0A/endpage { showpage } bind def=0A=0A/layercolorseq=0A [ = % layer color sequence - darkest to lightest=0A [0 0 0]=0A [.2 .8 .8]=0A = [.4 .8 .8]=0A [.6 .8 .8]=0A [.8 .8 .8]=0A ]=0Adef=0A=0A/setlayer {/maxla= yer exch def /curlayer exch def=0A layercolorseq curlayer get=0A aload pop = sethsbcolor=0A /nodecolor {nopcolor} def=0A /edgecolor {nopcolor} def=0A /g= raphcolor {nopcolor} def=0A} bind def=0A=0A/onlayer { curlayer ne {invis} i= f } def=0A=0A/onlayers {=0A /myupper exch def=0A /mylower exch def=0A curla= yer mylower lt=0A curlayer myupper gt=0A or=0A {invis} if=0A} def=0A=0A/cur= layer 0 def=0A=0A%%EndResource=0A%%EndProlog=0A%%BeginSetup=0A14 default-fo= nt-family set_font=0A1 setmiterlimit=0A% /arrowlength 10 def=0A% /arrowwidt= h 5 def=0A=0A% make sure pdfmark is harmless for PS-interpreters other than= Distiller=0A/pdfmark where {pop} {userdict /pdfmark /cleartomark load put}= ifelse=0A% make '<<' and '>>' safe on PS Level 1 devices=0A/languagelevel = where {pop languagelevel}{1} ifelse=0A2 lt {=0A userdict (<<) cvn ([) cv= n load put=0A userdict (>>) cvn ([) cvn load put=0A} if=0A=0A%%EndSetup= =0A%%Page: 1 1=0A%%PageBoundingBox: 36 36 415 500=0A%%PageOrientation: Port= rait=0Agsave=0A35 35 380 465 boxprim clip newpath=0A36 36 translate=0A0 0 1= beginpage=0A0 0 translate 0 rotate=0A0.000 0.000 0.000 graphcolor=0A14.00 = /Times-Roman set_font=0A=0A% list_post=0Agsave 10 dict begin=0Anewpath 30 2= 07 moveto=0A100 207 lineto=0A100 287 lineto=0A30 287 lineto=0Aclosepath=0As= troke=0Agsave 10 dict begin=0A65 272 moveto 56 -0.5 (list_post) alignedtext= =0Aend grestore=0Anewpath 30 267 moveto=0A100 267 lineto=0Astroke=0Agsave 1= 0 dict begin=0A65 252 moveto 12 -0.5 (id) alignedtext=0Aend grestore=0Anewp= ath 30 247 moveto=0A100 247 lineto=0Astroke=0Agsave 10 dict begin=0A65 232 = moveto 30 -0.5 (mail) alignedtext=0Aend grestore=0Anewpath 30 227 moveto=0A= 100 227 lineto=0Astroke=0Agsave 10 dict begin=0A65 212 moveto 19 -0.5 (list= ) alignedtext=0Aend grestore=0Aend grestore=0A=0A% mail=0Agsave 10 dict beg= in=0Anewpath 160 225 moveto=0A268 225 lineto=0A268 365 lineto=0A160 365 lin= eto=0Aclosepath=0Astroke=0Agsave 10 dict begin=0A214 350 moveto 30 -0.5 (ma= il) alignedtext=0Aend grestore=0Anewpath 160 345 moveto=0A268 345 lineto=0A= stroke=0Agsave 10 dict begin=0A214 330 moveto 12 -0.5 (id) alignedtext=0Aen= d grestore=0Anewpath 160 325 moveto=0A268 325 lineto=0Astroke=0Agsave 10 di= ct begin=0A214 310 moveto 69 -0.5 (messageid) alignedtext=0Aend grestore=0A= newpath 160 305 moveto=0A268 305 lineto=0Astroke=0Agsave 10 dict begin=0A21= 4 290 moveto 94 -0.5 (message_date) alignedtext=0Aend grestore=0Anewpath 16= 0 285 moveto=0A268 285 lineto=0Astroke=0Agsave 10 dict begin=0A214 270 move= to 76 -0.5 (index_date) alignedtext=0Aend grestore=0Anewpath 160 265 moveto= =0A268 265 lineto=0Astroke=0Agsave 10 dict begin=0A214 250 moveto 48 -0.5 (= subject) alignedtext=0Aend grestore=0Anewpath 160 245 moveto=0A268 245 line= to=0Astroke=0Agsave 10 dict begin=0A214 230 moveto 56 -0.5 (message) aligne= dtext=0Aend grestore=0Aend grestore=0A=0A% list_post -> mail=0Anewpath 100 = 238 moveto=0A108 239 116 242 122 247 curveto=0A151 268 131 297 152 320 curv= eto=0Astroke=0Agsave 10 dict begin=0Asolid=0A0.000 0.000 0.000 edgecolor=0A= newpath 151 322 moveto=0A160 326 lineto=0A153 318 lineto=0Aclosepath=0Afill= =0A0.000 0.000 0.000 edgecolor=0Aend grestore=0A=0A% mailing_list=0Agsave 1= 0 dict begin=0Anewpath 167 147 moveto=0A262 147 lineto=0A262 207 lineto=0A1= 67 207 lineto=0Aclosepath=0Astroke=0Agsave 10 dict begin=0A214 192 moveto 8= 1 -0.5 (mailing_list) alignedtext=0Aend grestore=0Anewpath 167 187 moveto= =0A262 187 lineto=0Astroke=0Agsave 10 dict begin=0A214 172 moveto 12 -0.5 (= id) alignedtext=0Aend grestore=0Anewpath 167 167 moveto=0A262 167 lineto=0A= stroke=0Agsave 10 dict begin=0A214 152 moveto 38 -0.5 (name) alignedtext=0A= end grestore=0Aend grestore=0A=0A% list_post -> mailing_list=0Anewpath 100 = 212 moveto=0A108 211 115 209 122 207 curveto=0A140 200 141 193 157 187 curv= eto=0Astroke=0Agsave 10 dict begin=0Asolid=0A0.000 0.000 0.000 edgecolor=0A= newpath 158 189 moveto=0A167 184 lineto=0A157 184 lineto=0Aclosepath=0Afill= =0A0.000 0.000 0.000 edgecolor=0Aend grestore=0A=0A% addressee=0Agsave 10 d= ict begin=0Anewpath 159 29 moveto=0A270 29 lineto=0A270 129 lineto=0A159 12= 9 lineto=0Aclosepath=0Astroke=0Agsave 10 dict begin=0A214 114 moveto 64 -0.= 5 (addressee) alignedtext=0Aend grestore=0Anewpath 159 109 moveto=0A270 109= lineto=0Astroke=0Agsave 10 dict begin=0A214 94 moveto 12 -0.5 (id) aligned= text=0Aend grestore=0Anewpath 159 89 moveto=0A270 89 lineto=0Astroke=0Agsav= e 10 dict begin=0A214 74 moveto 85 -0.5 (email_name) alignedtext=0Aend gres= tore=0Anewpath 159 69 moveto=0A270 69 lineto=0Astroke=0Agsave 10 dict begin= =0A214 54 moveto 97 -0.5 (email_address) alignedtext=0Aend grestore=0Anewpa= th 159 49 moveto=0A270 49 lineto=0Astroke=0Agsave 10 dict begin=0A214 34 mo= veto 84 -0.5 (organisation) alignedtext=0Aend grestore=0Aend grestore=0A=0A= % email=0Agsave 10 dict begin=0Anewpath 306 0 moveto=0A370 0 lineto=0A370 6= 0 lineto=0A306 60 lineto=0Aclosepath=0Astroke=0Agsave 10 dict begin=0A338 4= 5 moveto 37 -0.5 (email) alignedtext=0Aend grestore=0Anewpath 306 40 moveto= =0A370 40 lineto=0Astroke=0Agsave 10 dict begin=0A338 25 moveto 12 -0.5 (id= ) alignedtext=0Aend grestore=0Anewpath 306 20 moveto=0A370 20 lineto=0Astro= ke=0Agsave 10 dict begin=0A338 5 moveto 50 -0.5 (address) alignedtext=0Aend= grestore=0Aend grestore=0A=0A% addressee -> email=0Anewpath 270 49 moveto= =0A279 48 288 45 297 43 curveto=0Astroke=0Agsave 10 dict begin=0Asolid=0A0.= 000 0.000 0.000 edgecolor=0Anewpath 297 46 moveto=0A306 40 lineto=0A296 41 = lineto=0Aclosepath=0Afill=0A0.000 0.000 0.000 edgecolor=0Aend grestore=0A= =0A% name_=0Agsave 10 dict begin=0Anewpath 311 78 moveto=0A365 78 lineto=0A= 365 138 lineto=0A311 138 lineto=0Aclosepath=0Astroke=0Agsave 10 dict begin= =0A338 123 moveto 38 -0.5 (name) alignedtext=0Aend grestore=0Anewpath 311 1= 18 moveto=0A365 118 lineto=0Astroke=0Agsave 10 dict begin=0A338 103 moveto = 12 -0.5 (id) alignedtext=0Aend grestore=0Anewpath 311 98 moveto=0A365 98 li= neto=0Astroke=0Agsave 10 dict begin=0A338 83 moveto 38 -0.5 (name) alignedt= ext=0Aend grestore=0Aend grestore=0A=0A% addressee -> name_=0Anewpath 270 8= 9 moveto=0A281 91 292 94 302 97 curveto=0Astroke=0Agsave 10 dict begin=0Aso= lid=0A0.000 0.000 0.000 edgecolor=0Anewpath 301 99 moveto=0A311 100 lineto= =0A302 94 lineto=0Aclosepath=0Afill=0A0.000 0.000 0.000 edgecolor=0Aend gre= store=0A=0A% correspondent=0Agsave 10 dict begin=0Anewpath 10 89 moveto=0A1= 21 89 lineto=0A121 189 lineto=0A10 189 lineto=0Aclosepath=0Astroke=0Agsave = 10 dict begin=0A65 174 moveto 97 -0.5 (correspondent) alignedtext=0Aend gre= store=0Anewpath 10 169 moveto=0A121 169 lineto=0Astroke=0Agsave 10 dict beg= in=0A65 154 moveto 12 -0.5 (id) alignedtext=0Aend grestore=0Anewpath 10 149= moveto=0A121 149 lineto=0Astroke=0Agsave 10 dict begin=0A65 134 moveto 30 = -0.5 (mail) alignedtext=0Aend grestore=0Anewpath 10 129 moveto=0A121 129 li= neto=0Astroke=0Agsave 10 dict begin=0A65 114 moveto 30 -0.5 (type) alignedt= ext=0Aend grestore=0Anewpath 10 109 moveto=0A121 109 lineto=0Astroke=0Agsav= e 10 dict begin=0A65 94 moveto 64 -0.5 (addressee) alignedtext=0Aend gresto= re=0Aend grestore=0A=0A% correspondent -> addressee=0Anewpath 121 99 moveto= =0A130 99 139 99 149 99 curveto=0Astroke=0Agsave 10 dict begin=0Asolid=0A0.= 000 0.000 0.000 edgecolor=0Anewpath 149 102 moveto=0A159 99 lineto=0A149 97= lineto=0Aclosepath=0Afill=0A0.000 0.000 0.000 edgecolor=0Aend grestore=0A= =0A% correspondent -> mail=0Anewpath 121 148 moveto=0A121 148 122 149 122 1= 49 curveto=0A178 202 106 265 153 320 curveto=0Astroke=0Agsave 10 dict begin= =0Asolid=0A0.000 0.000 0.000 edgecolor=0Anewpath 151 322 moveto=0A160 327 l= ineto=0A155 318 lineto=0Aclosepath=0Afill=0A0.000 0.000 0.000 edgecolor=0Ae= nd grestore=0A=0A% embedded_url=0Agsave 10 dict begin=0Anewpath 8 305 movet= o=0A122 305 lineto=0A122 385 lineto=0A8 385 lineto=0Aclosepath=0Astroke=0Ag= save 10 dict begin=0A65 370 moveto 100 -0.5 (embedded_url) alignedtext=0Aen= d grestore=0Anewpath 8 365 moveto=0A122 365 lineto=0Astroke=0Agsave 10 dict= begin=0A65 350 moveto 32 -0.5 (urlid) alignedtext=0Aend grestore=0Anewpath= 8 345 moveto=0A122 345 lineto=0Astroke=0Agsave 10 dict begin=0A65 330 move= to 30 -0.5 (mail) alignedtext=0Aend grestore=0Anewpath 8 325 moveto=0A122 3= 25 lineto=0Astroke=0Agsave 10 dict begin=0A65 310 moveto 19 -0.5 (uri) alig= nedtext=0Aend grestore=0Aend grestore=0A=0A% embedded_url -> mail=0Anewpath= 122 335 moveto=0A131 335 140 335 150 335 curveto=0Astroke=0Agsave 10 dict = begin=0Asolid=0A0.000 0.000 0.000 edgecolor=0Anewpath 150 338 moveto=0A160 = 335 lineto=0A150 333 lineto=0Aclosepath=0Afill=0A0.000 0.000 0.000 edgecolo= r=0Aend grestore=0A=0A% organisation=0Agsave 10 dict begin=0Anewpath 16 403= moveto=0A114 403 lineto=0A114 463 lineto=0A16 463 lineto=0Aclosepath=0Astr= oke=0Agsave 10 dict begin=0A65 448 moveto 84 -0.5 (organisation) alignedtex= t=0Aend grestore=0Anewpath 16 443 moveto=0A114 443 lineto=0Astroke=0Agsave = 10 dict begin=0A65 428 moveto 12 -0.5 (id) alignedtext=0Aend grestore=0Anew= path 16 423 moveto=0A114 423 lineto=0Astroke=0Agsave 10 dict begin=0A65 408= moveto 38 -0.5 (name) alignedtext=0Aend grestore=0Aend grestore=0Aendpage= =0Agrestore=0A%%PageTrailer=0A%%EndPage: 1=0A%%Trailer=0A%%Pages: 1=0Aend= =0Arestore=0A%%EOF=0A --3V7upXqbjpZ4EhLz Content-Type: text/html; charset=us-ascii Content-Disposition: attachment; filename="zeldo.html" Hello World

Hello World

--3V7upXqbjpZ4EhLz-- attached2100644000766000766 250312210534043 21256 0ustar00rjbsrjbs000000000000Email-MIME-Attachment-Stripper-1.317/t/MailFrom tony@kasei.com Sun Oct 26 13:14:34 2003 Return-Path: X-Original-To: tony@tmtm.com Delivered-To: tony+tmtm-tony@soto.kasei.com Received: by soto.kasei.com (Postfix, from userid 1011) id EB6491C336; Sun, 26 Oct 2003 13:14:34 +0000 (GMT) Date: Sun, 26 Oct 2003 13:14:34 +0000 From: Tony Bowden To: tony@tmtm.com Subject: [tony@kasei.com: Test Message] Message-ID: <20031026131434.GB11674@soto.kasei.com> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="bg08WKrSYDhXBjb5" Content-Disposition: inline User-Agent: Mutt/1.5.4i Status: RO Content-Length: 744 --bg08WKrSYDhXBjb5 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Message from me to me, forwarded to me... Tony --bg08WKrSYDhXBjb5 Content-Type: message/rfc822 Content-Disposition: inline Return-Path: X-Original-To: tony@kasei.com Delivered-To: tony@soto.kasei.com Received: by soto.kasei.com (Postfix, from userid 1011) id 2D7381C336; Sun, 26 Oct 2003 13:14:09 +0000 (GMT) Date: Sun, 26 Oct 2003 13:14:09 +0000 From: Tony Bowden To: tony@kasei.com Subject: Test Message Message-ID: <20031026131409.GA11674@soto.kasei.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.5.4i This is a test. --bg08WKrSYDhXBjb5-- attached3100644000766000766 1505012210534043 21300 0ustar00rjbsrjbs000000000000Email-MIME-Attachment-Stripper-1.317/t/MailFrom: Simon Cozens To: test@test.com Bcc: lathos@gmail.com Subject: Test attachment Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="n8g4imXOkfNTN/H1" Content-Disposition: inline X-Mutt-Fcc: =outbox-200406 Status: RO Content-Length: 6431 Lines: 102 --n8g4imXOkfNTN/H1 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline I am attaching two pointless attachments for your pleasure. --n8g4imXOkfNTN/H1 Content-Type: application/x-tex Content-Disposition: attachment; filename="foo.tex" Content-Transfer-Encoding: quoted-printable Foo bar baz=0A --n8g4imXOkfNTN/H1 Content-Type: image/png Content-Disposition: attachment Content-Transfer-Encoding: base64 iVBORw0KGgoAAAANSUhEUgAAAcEAAAFrBAMAAABbEi9TAAAAJFBMVEX///4AAP//AABfX1+f n58fHx/f398/Pz9/f3+/v78AAAD////0RIvuAAAAAXRSTlMBN+Ho8AAAEMJJREFUeJztnU1z 2zYax/sVfPbN15yTmcjHTicz9rHLNiGPrpMd8Rq7U+ucnWl8zHSctU67NqWauqwtkZaFL7cE +AaQAAiQAAWIeqa1KAoA8SMegCBe/vkB7Lj974dt50C37Qnttz2h/bYntN/2hPbbntB+2xOW ttGZDY0mQLgJCeshU0qtiTDBW5BnbIPkE26qeKlZxcgjZPBBs4iRQ8jma/7VIGMSbppKqTGA IcYi3AgUkR2IDEIxH7TCU+mEolm3AZFKKOKiqVngqDRCcUAbEGmEMrmWuRvbMQqhXBfb+A55 nVC2VEz3UwqhZAqmF2KdULpiGV4Ta4TyRWJ4IdYIi2r1fcKJtroojw1vTmuERXbPeRmPA1oU I61KWBZIxM04Tmh2a1ojLI7ECc2uiFzCl4v3AHxx3mxC7zlA3+KLELheFIDgZj6txzHRuITj 69vT5Wx1B65A7KFvz9MxGHtJLQz+PJnV45hoVcKyTiWEIxB5Sy/xyNvT1Sn6tjldgw08E4D1 XR7S7MaUW4au43gAfAtANFkC9O35zs8J43k9jonGJUTNybvTpLxm/0wbl/jqzs8IwS4Quj7w 1zNIc/cvgL6BlTvJy/CuHsdE4z4PR5fxMeIBX48B+rYG40VGuHrIQ9r1PCw7KNEMjEN3Gs1W gQ/GpwB920zHk2i2DkA4Pb+uRTHS2P1SN3kCXn1I3PLtxRSskxPw2yb42X9x/pifnjmf84Bm N6VDfLfY/ffDAbzj7/44ze6PtQ1gvHQAY967P28xgLmnAcwfDmAOeADz+GD312KAAaynAbu/ Jgrarq9rQ1Zbm/jUQ77Umdj60k32f8r29Ep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HJO77/bZo0gl98JGUKk3qe+fXbCSr+k14G6aRC1VR4DBN5 CfzbtGps0rysAh8Pe/tLEqKeJKNf6n75GYC/fr39DFVHkRBp9gf8dHfzwQ2ROOmCFhP/CpVL wSfnTSplCpNa5beF3S/Nr4V0Uk8u02OYCLiZn7xNc4eUUd23F3/hYV+uPt9N67eZ8W7hAhmz 5t2CkPRulVqeUGOMLb0f4mLJmEM3mj3v+ISUsERyfY7TONAaQzHHaXZ/rK238dL/vqKc7GW8 VNWYd8Od2uaYd9d5i8weReYtqvaql3mLrnNPj+kc4KHI3FN1PyWcs+ph7qnj/OFjBig8f4hh ptNy+ucPgdQccPXMYzFVLTMHnFo2L6d/DhjIzOMTyyfA4+FjASgzj48KMpt6POpjHh9IrsVA SIfZcbmgQnYtxhG2Eln3WgzQeB+ZP2MrRmTX05ANj+71NGk81iU4F68s+6m+dEhVscblTkKB Wq5rY1plcr79urbMtK5rKy9RX5sobu3WJrKSUL02EbdOvQ11u0Q0rC+13vaE9tue0H7bE9pv e0L7bU9ov+0J7bf//R9ggMNMNGhCWAAAAABJRU5ErkJggg== --n8g4imXOkfNTN/H1-- attached4100644000766000766 202112210534043 21253 0ustar00rjbsrjbs000000000000Email-MIME-Attachment-Stripper-1.317/t/MailFrom: example@example.example.com Date: Fri, 4 Aug 2006 19:07:26 -0400 MIME-Version: 1.0 Content-Disposition: inline Content-Type: multipart/mixed; boundary="1154732846.36fb2.2841"; charset="us-ascii" --1154732846.36fb2.2841 Date: Fri, 4 Aug 2006 19:07:26 -0400 MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="1154732846.De2211.2841"; charset="us-ascii" Content-Disposition: attachment --1154732846.De2211.2841 Date: Fri, 4 Aug 2006 19:07:26 -0400 MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="1154732846.0C1FE0.2841"; charset="US-ASCII" Content-Disposition: attachment --1154732846.0C1FE0.2841 Date: Fri, 4 Aug 2006 19:07:26 -0400 MIME-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Disposition: attachment HELLO THERE! --1154732846.0C1FE0.2841 Date: Fri, 4 Aug 2006 19:07:26 -0400 MIME-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Disposition: attachment GOODBYE THERE! --1154732846.0C1FE0.2841-- --1154732846.De2211.2841-- --1154732846.36fb2.2841-- mixed.msg100644000766000766 151712210534043 21316 0ustar00rjbsrjbs000000000000Email-MIME-Attachment-Stripper-1.317/t/MailFrom: Sartak Subject: Fwd: This is a banana MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="----=_Part_347_2143023.1212112482563" ------=_Part_347_2143023.1212112482563 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline ---------- Forwarded message ---------- From: Sartak Date: May 29, 2008 9:53 PM Subject: This is a banana To: sartak@example.com, sartak@example.biz Peel it before you enjoy. ------=_Part_347_2143023.1212112482563 Content-Type: application/octet-stream; name=banana.pl Content-Transfer-Encoding: base64 X-Attachment-Id: f_fgu4erjf Content-Disposition: attachment; filename=banana.pl IyEvdXNyL2Jpbi9lbnYgcGVybAp1c2Ugc3RyaWN0Owp1c2Ugd2FybmluZ3M7CgpkaWUgImJhbmFu YVxuIjsKCg== ------=_Part_347_2143023.1212112482563-- nested-parts.t100644000766000766 117312210534043 21412 0ustar00rjbsrjbs000000000000Email-MIME-Attachment-Stripper-1.317/tuse Test::More 'no_plan'; use strict; use warnings; use_ok 'Email::MIME::Attachment::Stripper'; use Email::MIME; open IN, 't/Mail/attached4' or die "Can't read mail"; my $message = do { local $/; ; }; my $msg = Email::MIME->new($message); isa_ok($msg => 'Email::MIME'); is($msg->parts, 1); my $strp = Email::MIME::Attachment::Stripper->new($msg); isa_ok($strp,'Email::MIME::Attachment::Stripper'); my $detached = $strp->message; isa_ok( $detached, 'Email::MIME' ); my @attachments = $strp->attachments; TODO: { local $TODO = 'Nested MIME parts are incorrectly handled'; is(scalar(@attachments),2,'attachment count'); } altern.msg100644000766000766 77412210534043 21461 0ustar00rjbsrjbs000000000000Email-MIME-Attachment-Stripper-1.317/t/MailFrom: Sartak Subject: Fwd: This is a banana MIME-Version: 1.0 Content-Type: multipart/mixed; boundary=xyzzy --xyzzy Content-Type: multipart/alternative; boundary=plugh --plugh Content-Type: text/plain Foo. --plugh Content-Type: text/html Bar. --plugh-- --xyzzy Content-Type: application/pdf Content-Transfer-Encoding: base64 Content-Disposition: attachment; filename=banana.pdf IyEvdXNyL2Jpbi9lbnYgcGVybAp1c2Ugc3RyaWN0Owp1c2Ugd2FybmluZ3M7CgpkaWUgImJhbmFu YVxuIjsKCg== --xyzzy-- release000755000766000766 012210534043 20262 5ustar00rjbsrjbs000000000000Email-MIME-Attachment-Stripper-1.317/xtpod-syntax.t100644000766000766 21212210534043 22670 0ustar00rjbsrjbs000000000000Email-MIME-Attachment-Stripper-1.317/xt/release#!perl use Test::More; eval "use Test::Pod 1.41"; plan skip_all => "Test::Pod 1.41 required for testing POD" if $@; all_pod_files_ok(); 000-report-versions-tiny.t100644000766000766 477412210534043 23452 0ustar00rjbsrjbs000000000000Email-MIME-Attachment-Stripper-1.317/tuse strict; use warnings; use Test::More 0.88; # This is a relatively nice way to avoid Test::NoWarnings breaking our # expectations by adding extra tests, without using no_plan. It also helps # avoid any other test module that feels introducing random tests, or even # test plans, is a nice idea. our $success = 0; END { $success && done_testing; } # List our own version used to generate this my $v = "\nGenerated by Dist::Zilla::Plugin::ReportVersions::Tiny v1.09\n"; eval { # no excuses! # report our Perl details my $want = "any version"; $v .= "perl: $] (wanted $want) on $^O from $^X\n\n"; }; defined($@) and diag("$@"); # Now, our module version dependencies: sub pmver { my ($module, $wanted) = @_; $wanted = " (want $wanted)"; my $pmver; eval "require $module;"; if ($@) { if ($@ =~ m/Can't locate .* in \@INC/) { $pmver = 'module not found.'; } else { diag("${module}: $@"); $pmver = 'died during require.'; } } else { my $version; eval { $version = $module->VERSION; }; if ($@) { diag("${module}: $@"); $pmver = 'died during VERSION check.'; } elsif (defined $version) { $pmver = "$version"; } else { $pmver = ''; } } # So, we should be good, right? return sprintf('%-45s => %-10s%-15s%s', $module, $pmver, $wanted, "\n"); } eval { $v .= pmver('Capture::Tiny','any version') }; eval { $v .= pmver('Carp','any version') }; eval { $v .= pmver('Data::Dumper','any version') }; eval { $v .= pmver('Email::Abstract','any version') }; eval { $v .= pmver('Email::MIME','1.861') }; eval { $v .= pmver('Email::MIME::ContentType','1.016') }; eval { $v .= pmver('Email::Simple','any version') }; eval { $v .= pmver('ExtUtils::MakeMaker','6.30') }; eval { $v .= pmver('Test::More','0.96') }; eval { $v .= pmver('Test::Pod','1.41') }; eval { $v .= pmver('blib','any version') }; eval { $v .= pmver('strict','any version') }; eval { $v .= pmver('version','0.9901') }; eval { $v .= pmver('warnings','any version') }; # All done. $v .= <<'EOT'; Thanks for using my code. I hope it works for you. If not, please try and include this output in the bug report. That will help me reproduce the issue and solve your problem. EOT diag($v); ok(1, "we really didn't test anything, just reporting data"); $success = 1; # Work around another nasty module on CPAN. :/ no warnings 'once'; $Template::Test::NO_FLUSH = 1; exit 0; changes_has_content.t100644000766000766 201112210534043 24576 0ustar00rjbsrjbs000000000000Email-MIME-Attachment-Stripper-1.317/xt/release#!perl use Test::More tests => 2; note 'Checking Changes'; my $changes_file = 'Changes'; my $newver = '1.317'; my $trial_token = '-TRIAL'; 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; # _get_changes copied and adapted from Dist::Zilla::Plugin::Git::Commit # by Jerome Quelin 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>); 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; } Attachment000755000766000766 012210534043 22623 5ustar00rjbsrjbs000000000000Email-MIME-Attachment-Stripper-1.317/lib/Email/MIMEStripper.pm100644000766000766 1036212210534043 25153 0ustar00rjbsrjbs000000000000Email-MIME-Attachment-Stripper-1.317/lib/Email/MIME/Attachmentuse strict; use warnings; package Email::MIME::Attachment::Stripper; { $Email::MIME::Attachment::Stripper::VERSION = '1.317'; } # ABSTRACT: strip the attachments from an email use Email::MIME 1.861; # new(\$str) use Email::MIME::ContentType 1.016; # type/subtype use Carp; sub new { my ($class, $email, %attr) = @_; $email = Email::MIME->new($email) if (ref($email) || 'SCALAR') eq 'SCALAR'; croak "Need a message" unless ref($email) || do { require Email::Abstract; $email = Email::Abstract->cast($email, 'Email::MIME'); }; bless { message => $email, attr => \%attr }, $class; } sub message { my ($self) = @_; $self->_detach_all unless exists $self->{attach}; return $self->{message}; } sub attachments { my $self = shift; $self->_detach_all unless exists $self->{attach}; return $self->{attach} ? @{ $self->{attach} } : (); } sub _detach_all { my ($self, $part) = @_; $part ||= $self->{message}; return if $part->parts == 1; my @attach = (); my @keep = (); foreach ( $part->parts ) { my $ct = $_->content_type || 'text/plain'; my $dp = $_->header('Content-Disposition') || 'inline'; push(@keep, $_) and next if $ct =~ m[text/plain]i && $dp =~ /inline/i; push @attach, $_; if ($_->parts > 1) { my @kept=$self->_detach_all($_); push(@keep,@kept) if @kept; } } $part->parts_set(\@keep); push @{$self->{attach}}, map {; my $content_type = parse_content_type($_->content_type); { content_type => join('/', @{$content_type}{qw[type subtype]}), payload => $_->body, filename => $self->{attr}->{force_filename} ? $_->filename(1) : ($_->filename || ''), } } @attach; return @keep; } 1; __END__ =pod =head1 NAME Email::MIME::Attachment::Stripper - strip the attachments from an email =head1 VERSION version 1.317 =head1 SYNOPSIS my $stripper = Email::MIME::Attachment::Stripper->new($mail); my $msg = $stripper->message; my @attachments = $stripper->attachments; =head1 DESCRIPTION Given a Email::MIME object, detach all attachments from the message and make them available separately. The message you're left with might still be multipart, but it should only be multipart/alternative or multipart/related. Given this message: + multipart/mixed - text/plain - application/pdf; disposition=attachment The PDF will be stripped. Whether the returned message is a single text/plain part or a multipart/mixed message with only the text/plain part remaining in it is not yet guaranteed one way or the other. =head1 METHODS =head2 new my $stripper = Email::MIME::Attachment::Stripper->new($email, %args); The constructor may be passed an Email::MIME object, a reference to a string, or any other value that Email::Abstract (if available) can cast to an Email::MIME object. Valid arguments include: force_filename - try harder to get a filename, making one up if necessary =head2 message my $email_mime = $stripper->message; This returns the message with all the attachments detached. This will alter both the body and the header of the message. =head2 attachments my @attachments = $stripper->attachments; This returns a list of all the attachments we found in the message, as a hash of { filename, content_type, payload }. This may contain parts that might not normally be considered attachments, like text/html or multipart/alternative. =head1 ATTENTION! This module's behavior has never been very clearly spelled out, and it has led to misunderstandings and bug reports, which may or may not be actual bugs. I plan to take some significant action to address this. To read more or comment, please see L =head1 CREDITS AND LICENSE This module is incredibly closely derived from Tony Bowden's L; this derivation was done by Simon Cozens (C), and you receive this under the same terms as Tony's original module. =head1 AUTHOR Simon Cozens =head1 COPYRIGHT AND LICENSE This software is copyright (c) 2004 by Simon Cozens. This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself. =cut