public
Description: perl library for stripping MIME attachments
Homepage:
Clone URL: git://github.com/rjbs/email-mime-attachment-stripper.git
Ricardo SIGNES (author)
Fri Jan 23 19:21:13 -0800 2009
commit  88c7a9828a22335b04a5446661dcaff39b24fb86
tree    1d11f321a6e009eb43b500334d7d1ac3863978cc
parent  41c7b95b9c499f1c8fcd326088f93351155ace34
name age message
file Changes Fri Jan 23 19:21:13 -0800 2009 add repo md [rjbs]
file LICENSE Mon Nov 20 06:44:48 -0800 2006 r28280@minion101: rjbs | 2006-11-20 07:25:54 ... [rjbs]
file MANIFEST Tue Jul 08 18:26:57 -0700 2008 man [rjbs]
file Makefile.PL Fri Jan 23 19:21:13 -0800 2009 add repo md [rjbs]
file README Fri Jul 21 05:18:53 -0700 2006 r23593@knight: rjbs | 2006-07-21 07:13:49 -04... [rjbs]
directory lib/ Fri Jan 23 19:21:13 -0800 2009 add repo md [rjbs]
directory t/ Tue Jul 08 18:19:01 -0700 2008 rt 20536 and other tests [rjbs]
README
NAME
    Email::MIME::Attachment::Stripper - Strip the attachments from a mail

SYNOPSIS
            my $stripper = Email::MIME::Attachment::Stripper->new($mail);

            my Email::MIME $msg = $stripper->message;
            my @attachments       = $stripper->attachments;

DESCRIPTION
    Given a Email::MIME object, detach all attachments from the message.
    These are then available separately.

METHODS
  new
            my $stripper = Email::MIME::Attachment::Stripper->new($mail, %args);

    This should be instantiated with a Email::MIME object. Current arguments
    supported:

    force_filename
       Try harder to get a filename, making one up if necessary.

  message
            my Email::MIME $msg = $stripper->message;

    This returns the message with all the attachments detached. This will
    alter both the body and the header of the message.

  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 }.

PERL EMAIL PROJECT

This module is maintained by the Perl Email Project

  http://emailproject.perl.org/wiki/Email::MIME::Attachment::Stripper

AUTHOR
    Casey West <casey@geeknest.com>

CREDITS AND LICENSE
    This module is incredibly closely derived from Tony Bowden's
    Mail::Message::Attachment::Stripper; this derivation was done by Simon
    Cozens ("simon@cpan.org"), and you receive this under the same terms as
    Tony's original module.